Comments (9)
Run
from setup-go.
It definitely helps make workflow definitions platform agnostic. For example, it would allow all three platform specific cache action examples to be replaced with a single more robust example:
- uses: actions/cache@v2
with:
path: |
${{ steps.setup_go.outputs.GOCACHE }}
${{ steps.setup_go.outputs.GOMODCACHE }}
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
This particular use case may not be as relevant if setup-go
had a cache
input (like setup-node
) to handle cache setup.
from setup-go.
Hi @Sergey-Murtazin 👋 Certainly still valid for our use cases, mostly to help with platform agnostic workflows as mentioned above. Thanks!
from setup-go.
It'd be helpful to have go env
as outputs from this action so that it's not necessary to solve for GOBIN, GOPATH, GOCACHE in the worflow.
from setup-go.
Hi @bflad ! Sorry for the late response!
Could you please clarify if the issue is still actual for you?
Thanks!
from setup-go.
I was about to open a similar issue 🙂
I'm interested in GOPATH
and I know it's pretty simple to retrieve it, but having it as an output of the action would make the workflows cleaner IMHO.
A JSON output of go env
would work too.
from setup-go.
I've opened a #334 with some default outputs that I think will cover 99% of the cases, let me know what you think 🙏
from setup-go.
Would love this as well. I currently have extra steps like echo "dir=$(go env GOMODCACHE)" >> ${GITHUB_OUTPUT}
, which are verbose and wasteful, since setup-go has already run go env
.
from setup-go.
The issue is waiting for the merge of the PR #334
from setup-go.
Related Issues (20)
- 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 2
- 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 3
- 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
- Can't cache dependencies from a composite action HOT 9
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.