Comments (6)
Hello @Le0Developer
Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback.
from setup-go.
The action should be using the darwin-arm64 ? @Le0Developer have you tried specifying a version?
According to the official docs the arm64 m1 based images do not come with golang preinstalled.
Source: https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
Try the following and it should work:
jobs:
build:
name: Build on macOS 14 (M1)
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22.x'
check-latest: true
- run: go run hello.go
from setup-go.
@HarithaVattikuti This action should default to installing the latest Golang on darwin platforms.
from setup-go.
@HarithaVattikuti This action should default to installing the latest Golang on darwin platforms.
🤔 how should this action behaviour in general when Golang is not installed in the system and not version is given. At the moment: the line
Line 65 in 6c1fd22
goPath == ''
and run:
cp.execSync(` version`)
Resulting in the rather unclear error /bin/sh: version: command not found
(i.e. the error from the issue)
In this case I suppose the action could:
- Install some reasonable default version (I'm not sure any of the other
setup-*
actions do this) - Fail with a clearer error:
setup-java
does something similar (but from what I can see it doesn't fallback to trying to use any system install) https://github.com/actions/setup-java/blob/7a445ee88d4e23b52c33fdc7601e40278616c7f8/src/setup-java.ts#L40 - Continue in a safer manner, expecting there is a system installation: this is what
setup-python
does: https://github.com/actions/setup-python/blob/871daa956ca9ea99f3c3e30acb424b7960676734/src/setup-python.ts#L148 when things will just fail later with some error likego: No such file or directory
whengo
is invoked
from setup-go.
Related Issues (20)
- Error with no go.sum file HOT 6
- 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 2
- Allow for collapsing log output HOT 2
- go 1.22.0-rc.1 is not found HOT 2
- 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
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.