You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/var/folders/p8/jznrcvb54gl91s6fg50bznhm0000gn/T/try-go
❯ golangci-lint run
main.go:4:2: SA5002: this loop will spin, using 100% CPU (staticcheck)
for {
^
When I run golangci-lint run $PWD, resolved to golangci-lint run /var/folders/p8/jznrcvb54gl91s6fg50bznhm0000gn/T/try-go, same output.
Running golangci-lint run /private/var/folders/p8/jznrcvb54gl91s6fg50bznhm0000gn/T/try-go produces error output:
/var/folders/p8/jznrcvb54gl91s6fg50bznhm0000gn/T/try-go
❯ golangci-lint run /private/var/folders/p8/jznrcvb54gl91s6fg50bznhm0000gn/T/try-go
ERRO [linters_context] typechecking error: directory /private/var/folders/p8/jznrcvb54gl91s6fg50bznhm0000gn/T/try-go outside main module or its selected dependencies
Version of golangci-lint
$ golangci-lint --version
golangci-lint has version 1.54.2 built with go1.21.0 from 411e0bbb on 2023-08-21T12:04:32Z
Configuration
golangci-lint run /private/var/folders/p8/jznrcvb54gl91s6fg50bznhm0000gn/T/try-go
golangci-lint run $PWD # golangci-lint run /var/folders/p8/jznrcvb54gl91s6fg50bznhm0000gn/T/try-go
golangci-lint run
Welcome
Description of the problem
I have the following structure inside macOS temp directory (
/var/folders/p8/jznrcvb54gl91s6fg50bznhm0000gn/T/
in my case):main.go
:When I run
golangci-lint run
, it works okay:When I run
golangci-lint run $PWD
, resolved togolangci-lint run /var/folders/p8/jznrcvb54gl91s6fg50bznhm0000gn/T/try-go
, same output.Now the same directory with resolved symlink:
Running
golangci-lint run /private/var/folders/p8/jznrcvb54gl91s6fg50bznhm0000gn/T/try-go
produces error output:Version of golangci-lint
Configuration
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
main.go
:go.mod
:Validation
The text was updated successfully, but these errors were encountered: