Comments (7)
After a little more research, the issue seems to stem from something in the cache (in the prepare-environment
step of the golangci-lint-action
):
Finding needed golangci-lint version...
Setup go stable version spec 1
Found in cache @ /opt/hostedtoolcache/go/1.15.2/x64
Warning: The `set-env` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
Warning: The `add-path` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
Added go to the path
Warning: The `add-path` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
Successfully setup go version 1
go version go1.15.2 linux/amd64
So, maybe bumping up a cache version somewhere to invalidate old stuff might be the correct fix.
from golangci-lint-action.
🎉 Now it doesn't generate the deprecation notices anymore! Thank you for the quick support 👍
from golangci-lint-action.
I think it's used internally in one of dependency (e.g. actions/*), currently latest version is used based on my understanding.
A quick grep
for both set-env and add-path didn't help much, do you have do any specific place ?
from golangci-lint-action.
Please upgrade to the latest version v2.2.1, sample run is available here https://github.com/golangci/golangci-lint/runs/1261488064
> prepare environment
Finding needed golangci-lint version...
Setup go stable version spec 1
Found in cache @ /opt/hostedtoolcache/go/1.15.2/x64
Added go to the path
Successfully setup go version 1
go version go1.15.2 linux/amd64
from golangci-lint-action.
Ah, I was under the impression that the @v2
specified as the action's version would always use the latest version from the 2.x branch.
So if I understood your pointer correctly, we shall replace uses: golangci/golangci-lint-action@v2
with uses: golangci/[email protected]
?
from golangci-lint-action.
currently, v2 is pointing to v2.0 or v2.1 only I think. I think github action convention is to tag only major version, which I don't prefer personally :).
Let me point v2 to v2.2.1 shortly, it was pending action in my note while released v2.2.1 recently. Thanks for reminder 💯
from golangci-lint-action.
Done, now v2 points to latest release v2.2.1.
from golangci-lint-action.
Related Issues (20)
- Caching of the linting data causing timeout.
- Add skip-dir support HOT 1
- golangci-lint is failing with go version 1.20 HOT 4
- make it possible to set the GOOS / GOARCH HOT 4
- The linter does not print line number nor filename HOT 8
- Action failed in [email protected] HOT 3
- Issue running golangci-lint 1.53 via the action HOT 1
- Github Actions lint failures on 1.53.0 HOT 5
- Remove dependabot entries from changelog HOT 2
- stale caches -- any way to avoid or flush? HOT 3
- typecheck error is not resulting in useful annotation HOT 2
- annotations display on 2 PR (develop and staging, although I don't run golangci-lint in staging)
- "File exists" errors when un-taring golangci-lint on upgrading to setup-go@v4 from setup-go@v3 HOT 4
- lint failures do not report which file or line failed HOT 4
- Add support for `new-from-rev` HOT 3
- bug: The file exists in scripts/golangci.yml, but it still gives an error HOT 1
- buildir: failed to load package pebble: could not load export data: no export data for "github.com/ethereum/go-ethereum/ethdb/pebble"
- caches: Do we really need them anymore? The current implementation conflicts with automatic caching in latest `setup-go`. HOT 4
- typecheck fails on first CI run HOT 6
- Incompatibility with go 1.21 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from golangci-lint-action.