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

diff-kernel-config: fix for core-kits #32

Merged

Conversation

arnaldo2792
Copy link
Contributor

Issue number:

N / A

Description of changes:

The script referenced variants, which aren't a thing in the core-kit world

Testing done:

I ran the script with the changes in: #29 , and the report was generated:

config-aarch64-5.10-diff:	  0 removed,   0 added,   0 changed
config-aarch64-5.15-diff:	  0 removed,   0 added,   0 changed
config-aarch64-6.1-diff:	  0 removed,   0 added,   0 changed
config-x86_64-5.10-diff:	  2 removed,   2 added,   0 changed
config-x86_64-5.15-diff:	  0 removed,   0 added,   0 changed
config-x86_64-6.1-diff:	  1 removed,   5 added,   6 changed

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Copy link
Member

@larvacea larvacea left a comment

Choose a reason for hiding this comment

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

Thanks! Looks great, and it sounds like you got the right answer when you tried it.

@@ -114,6 +101,7 @@ readonly output_dir
# checkout.
[[ -n ${gitrev_before_arg} ]] || usage_error 'require -b|--before'
[[ -n ${gitrev_after_arg} ]] || usage_error 'require -a|--after'
[[ -n ${kernel_versions[@]} ]] || usage_error 'require -k|--kernel'
Copy link
Contributor

Choose a reason for hiding this comment

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

Builds are failing with this error:

diff-kernel-config:104:7: error: Arrays implicitly concatenate in [[ ]]. Use a loop (or explicit * instead of @). [SC2199]

I believe this line is the culprit. Ways to fix this: https://www.shellcheck.net/wiki/SC2199

The script referenced variants, which aren't a thing in the core-kit
world

Signed-off-by: Arnaldo Garcia Rincon <[email protected]>
@arnaldo2792
Copy link
Contributor Author

Forced push includes fixes for shellchecks

@arnaldo2792 arnaldo2792 requested a review from koooosh July 16, 2024 17:20
@arnaldo2792 arnaldo2792 merged commit 0fa8c0c into bottlerocket-os:develop Jul 16, 2024
2 checks passed
@arnaldo2792 arnaldo2792 deleted the fix-diff-kernel-script branch September 5, 2024 17:56
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.

5 participants