Comments (4)
I believe the cache does not simply contain Go's build artifacts: it also caches the analyzer facts / reporting for each package and reuses cached outputs when the dependency closure for a package doesn't change.
It might warrant creating an option to skip the go build cache specifically though.
from golangci-lint-action.
On second thought. The combination of telling setup-go
to not cache and then using this action regularly is another solution. I guess I'm wondering if for simpler cases there should be a similar cache: false
for this action in case one wants to use the default one from setup-go
.
from golangci-lint-action.
We're seeing this as well. Related to #387 and #807 (among probably others).
from golangci-lint-action.
Yes, or even potentially just writing to a path that won't conflict. You could even provide an option to summarise the exit 2
from tar
as "some cache paths could not be written due to the file already existing", since not doing it generates screeds of warnings/errors. It's also worth noting that our very rough testing showed that jobs where these errors occurred were also slower than those which completed without error.
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 4
- 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) HOT 1
- "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"
- 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.