Coder Social home page Coder Social logo

Comments (3)

Sergey-Murtazin avatar Sergey-Murtazin commented on June 21, 2024

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.

brcrista avatar brcrista commented on June 21, 2024

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.

dmitry-shibanov avatar dmitry-shibanov commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.