-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Add xz-utils as dependencies
#1677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
The licensed gem installation fails due to missing `xzcat` command during `nokogiri` compilation. Adding `xz-utils` package resolves this dependency issue.
|
@lowlighter Hi, I noticed this issue during recent GitHub Actions ubuntu-latest upgrade process. Would you mind reviewing this PR? |
fix: add `xz-utils` dependencies, actions linux system not had this dependencies refer to lowlighter#1677 PR
Add xz-utils as dependencies lowlighter#1677 fix: add `xz-utils` dependencies, actions linux system not had this dependencies refer to lowlighter#1677 PR
|
I had the first failing one today (https://github.com/tr7zw/tr7zw/actions/runs/12682127087/attempts/1 but it worked on a second retry), outside of that I just noticed that all repo stat values vanish from time to time (tr7zw/tr7zw@2482f9a#diff-15c77d2bbedf6bd69a53f23e8705a32acfeeb9a45ca324f78e8f385924ab3f29L188), might depend on which ubuntu runner it happens to use. |
|
This pull request seems to be inactive and will be automatically closed in a few days if it remains without any activity. |
|
bump |
|
This pull request seems to be inactive and will be automatically closed in a few days if it remains without any activity. |
|
bump |
|
This pull request seems to be inactive and will be automatically closed in a few days if it remains without any activity. |
|
Bump |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find it strange that this would be tied to the runner, as it is adding an additional dependency in the docker container (which is based on the node base image).
I think it more likely that the node baseimage changed to not include it, or that it is a new dependency in the licensed gem.
Either way, this is a required change to make the action buildable, and I came to the exact same solution myself (to the byte) before starting to look at what PRs where open.


Description
Fix licensed gem installation failure on ubuntu-latest (probably Ubuntu 24.04) runner. The issue was discovered during recent GitHub Actions ubuntu-latest image upgrade (announcement), where
nokogiricompilation fails due to missingxzcat.Problem
When running metrics action on Ubuntu 24.04 (new ubuntu-latest), licensed gem installation failed with:
Solution
Add
xz-utilspackage to Dockerfile dependencies to providexzcatcommand required bynokogiricompilation.Testing
Successfully tested with action running on ubuntu-latest (workflow run)
Notes
Since GitHub's ubuntu-latest upgrade is rolling out until January 17th, 2025 (see announcement):
runs-on: ubuntu-22.04as workaround