Comments (3)
Hi, @bdd!
Thanks for your request!
Answers to your questions:
How does /opt/hostedtoolcache get populated?
A cache of the virtual environment machine is set up by the virtual-environments team. And it isn't a "globally shared cache".
What cache gets updated by installGoVersion()?
All compilers are cached on the virtual machine image used to run your WF. For example, this is a list of all cached tools on the ubuntu-latest
VM:
https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md
Is checking the cache with a version spec intentional?
Yes, you are right. The "checking the cache with a version spec is intentional". It's made to reduce the go compiler installation time if the specified version matched the cached one. Or when a user doesn't specify any version and the default one is used.
If you use a fully specified version, e.g. 1.17.3
, this version will be installed if there is such version in "go-versions manifest file", or on Google server.
We are considering whether to add check latest version functionality.
from setup-go.
We are considering whether to add check latest version functionality.
For more context, setup-node
does this today: https://github.com/actions/setup-node/blob/d08cf222111d5c1d21b3cd4b958937f818d10d9a/docs/advanced-usage.md#check-latest-version
from setup-go.
Hello @bdd. We released a new version and updated tag v2 with adding check-latest input. For now I'm going to close the issue. If you have any concerns feel free to ping us.
from setup-go.
Related Issues (20)
- Feature - enhance action to support configuration of private package authentication HOT 3
- Long post job cleanup HOT 8
- v4 cache attempt to write to non existent drive on windows HOT 13
- setup-go does not pick up recent Go version leading to create vulnerable builds HOT 6
- support: gotip HOT 6
- https://salla.sa/bero2030.com HOT 1
- Berroe8 HOT 1
- caches grow unbounded HOT 6
- ENOENT: no such file or directory, mkdir '/home/runner' in macos-latest HOT 3
- Use version from module and another version in matrix testing HOT 1
- Allow for collapsing log output HOT 2
- go 1.22.0-rc.1 is not found HOT 2
- setup-go does not work on macos-14 (M1) HOT 6
- How to run tests with latest golang version HOT 9
- More specific handling/detection of Go toolchain versions HOT 2
- Inaccurate description of version in go.mod HOT 2
- Please upgrade `go-actions` to 1.21.8 / 1.22.1 HOT 3
- Signing key has expired HOT 2
- Node16 deprecated HOT 1
- Support custom distribution location override 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 setup-go.