Repository navigation
Fix action on ubuntu-latest (26.04) - #10
Open
last-genius wants to merge 2 commits into
Open
last-genius wants to merge 2 commits into
last-genius wants to merge 2 commits into
Conversation
apt-key has been deprecated on Ubuntu for a while, and was removed on 26.04, which Github Actions started to use by default for ubuntu-latest runners. Follow the suggestion in https://askubuntu.com/a/1307181 to avoid using it. Signed-off-by: Andrii Sultanov <andriy.sultanov@vates.tech>
pip 24.1 broke the previous hack:
ERROR: Invalid requirement: 'codechecker==': Expected end or semicolon (after name and no valid version specifier)
codechecker==
Fix by using a really big version number. In the future, move away from
the hack by using 'pip index versions codechecker' - 'pip index' was
only added relatively recently so we need to wait for it to filter down
to distros used by the runners.
Signed-off-by: Andrii Sultanov <andriy.sultanov@vates.tech>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Avoids using the removed
apt-keyand updates thepiphack.Example of action failing due to
apt-key: https://github.com/last-genius/xen-api/actions/runs/42786232925/job/129728012649Example of action failing due to the
piphack being fixed: https://github.com/last-genius/xen-api/actions/runs/42797020339/job/129764681911Successful run with these fixes: https://github.com/last-genius/xen-api/actions/runs/42804388993