Skip to content
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

fix: make kernel URL substitution work for major.minor releases #1090

Closed
wants to merge 1 commit into from

Conversation

attilaolah
Copy link

For kernels without a patch version (e.g. 6.12), the directory seems to be 6.x itnheai of 6.12.x.

@attilaolah attilaolah marked this pull request as draft November 19, 2024 11:42
@attilaolah attilaolah marked this pull request as ready for review November 19, 2024 11:45
@@ -5,7 +5,7 @@ dependencies:
- image: '{{ .TOOLS_IMAGE }}'
steps:
- sources:
- url: https://cdn.kernel.org/pub/linux/kernel/v{{ regexReplaceAll ".\\d+\\.\\d+$" .linux_version "${1}" }}.x/linux-{{ .linux_version }}.tar.xz
- url: https://cdn.kernel.org/pub/linux/kernel/v{{ regexReplaceAll ".\\d+(\\.\\d+)?$" .linux_version "${1}" }}.x/linux-{{ .linux_version }}.tar.xz
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or we could simplify the regex to (\.\d+)+, that would leave only the major version, should also work, right?

For kernels without a patch version (e.g. 6.12), the directory seems to be 6.x itnheai of 6.12.x.
@attilaolah attilaolah changed the title Fix kernel URL substitution fix: make kernel URL substitution work for major.minor releases Nov 19, 2024
@attilaolah
Copy link
Author

Oh I guess this can be closed in favour of #1085, which changes the URL to GitHub…

@attilaolah attilaolah closed this Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant