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
I can confirm bumping the tenv version fixes the issue:
# In golangci-lint codebase
go get github.com/sivchari/tenv@v1.7.0
go mod tidy
go install ./cmd/golangci-lint
# In affected codebase~/go/bin/golangci-lint run
# ... runs successfully without panic ...
ldez
changed the title
New 1.47.0 Panic: tenv: package "..." (isInitialPkg: true, needAnalyzeSource: true): runtime error: index out of range [0] with length 0
tenv: package "..." (isInitialPkg: true, needAnalyzeSource: true): runtime error: index out of range [0] with length 0
Jul 18, 2022
Welcome
Description of the problem
Our GitHub Actions workflow using golangci-lint-action automatically upgrading from 1.46.2 to 1.47.0 today and began receiving
tenv
linter panics:It appears that there was a
tenv
release a few minutes ago, 1.7.0, that may fix this issue.Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository
https://github.com/hashicorp/terraform-plugin-sdk/runs/7394086947?check_suite_focus=true
The text was updated successfully, but these errors were encountered: