Open thejan2009 opened 1 year ago
The issue was introduced with #25. Cmd breaks when the go.mod is located in a subpath. Example structure:
project ├── .git └── go ├── go.mod └── main.go
One way to solve this would be finding the go mod root. go env GOMOD returns the correct value or os.DevNull if if can't find one.
go env GOMOD
os.DevNull
I opened a fix PR in golangci-lint https://github.com/golangci/golangci-lint/pull/3748 and propose the changes from v0.0.8 are partially reverted.
The issue was introduced with #25. Cmd breaks when the go.mod is located in a subpath. Example structure:
One way to solve this would be finding the go mod root.
go env GOMOD
returns the correct value oros.DevNull
if if can't find one.