Comments (7)
^ That's probably because Go defaults to CGO_ENABLED=0
when cross-building, and CGO_ENABLED=1
when building for the host platform, and I guess that the binaries were built on linux/amd64
. The solution is often to consistently set CGO_ENABLED=0
when building release binaries.
from gh-actions-cache.
After uninstalling and pinning the version to 1.0.1, the extension is indeed working.
from gh-actions-cache.
The problem here appears to be that the linux/amd64
version is built with CGO_ENABLED=1
, whereas for linux/arm64
(at least) it is not.
$ cd $(mktemp -d)
$ curl -sLO https://github.com/actions/gh-actions-cache/releases/download/v1.0.3/linux-arm64
$ curl -sLO https://github.com/actions/gh-actions-cache/releases/download/v1.0.3/linux-amd64
$ go version -m ./linux-amd64 | grep CGO_ENABLED
build CGO_ENABLED=1
$ go version -m ./linux-arm64 | grep CGO_ENABLED
build CGO_ENABLED=0
Is there a reason the linux/amd64
version is not built with CGO_ENABLED=0
?
from gh-actions-cache.
Given that a fix for this has been committed into main, is there an update to be shared on when the next version, including the fix, might be released?
from gh-actions-cache.
Thank you @jooola for bringing this up. As per our preliminary investigation, we suspect the issue is happening as the package was compiled using ubuntu-22 which uses GLIBC_2.32 whereas Debian is still on GLIBC_2.31.
Will you be able to confirm if 1.0.1 for the extension is working fine on Debian bullseye?
from gh-actions-cache.
Thanks for the confirmation @jooola we will need some more time to finalize changes.
from gh-actions-cache.
Something similar also seems to be happening un ubuntu20.04 when using larger dedicated runners:
Current runner version: '2.303.0'
Runner name: 'ubuntu-[2](https://github.com/google/xls/actions/runs/4634539949/jobs/8200889388#step:1:2)0.04-64core_1eb[3](https://github.com/google/xls/actions/runs/4634539949/jobs/8200889388#step:1:3)2a3c1924'
Runner group name: 'large-runner'
Machine name: 'runner'
See the error message below:
/home/runner/.local/share/gh/extensions/gh-actions-cache/gh-actions-cache: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/runner/.local/share/gh/extensions/gh-actions-cache/gh-actions-cache)
/home/runner/.local/share/gh/extensions/gh-actions-cache/gh-actions-cache: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/runner/.local/share/gh/extensions/gh-actions-cache/gh-actions-cache)
from gh-actions-cache.
Related Issues (20)
- Clarify how remote is selected HOT 2
- restore-keys: | npm-feature-${{ hashFiles('package-lock.json') }} npm-feature- npm- HOT 2
- violethaze74-gh-cli
- Ability to list cache content HOT 3
- v1.0.2 requires a version of glibc that is not available on the current 'ubuntu-latest' Github runner HOT 10
- Unable to use branch filter to filter "master" branch caches HOT 7
- Return the empty caches message as error log, not standard log
- This is a great tool, but I'd also like to see a way to do the same with repo artifacts HOT 4
- Add date filter
- List caches not in specified branch list HOT 1
- Tests don't pass when executed from tarball HOT 1
- Support for GitHub Enterprise Server HOT 1
- "Add support for secure token storage" HOT 4
- filter output column to print only cache entry key
- Feature: delete --ignore-not-found
- Feature request: Pagination support
- Error: authentication token not found for host github.com HOT 6
- Title HOT 3
- Document that `actions: read/write` permissions are required to use gh-actions-cache in gh actions CI
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 gh-actions-cache.