-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Allow APA to handle installation of GPG keys #8316
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: main
Are you sure you want to change the base?
Conversation
""" WalkthroughThe changes introduce an environment variable, Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
✨ Finishing Touches
🧪 Generate Unit Tests❌ Error creating Unit Test PR.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
🧹 Nitpick comments (1)
lib/functions/rootfs/distro-specific.sh (1)
83-83
: ScopeAPT_SIGNING_KEY_FILE
as a local variable
Right nowAPT_SIGNING_KEY_FILE
is global; consider making it local (e.g.local APT_SIGNING_KEY_FILE=…
) to avoid leaking state outsidecreate_sources_list_and_deploy_repo_key
.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
extensions/apa.sh
(1 hunks)lib/functions/rootfs/distro-specific.sh
(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Shell script analysis
🔇 Additional comments (1)
extensions/apa.sh (1)
5-5
: Export APA_IS_ACTIVE to signal APA activation
SettingAPA_IS_ACTIVE="true"
here correctly informs downstream scripts that APA is active.
Docstrings generation was requested by @leggewie. * #8316 (comment) The following files were modified: * `extensions/apa.sh` * `lib/functions/rootfs/distro-specific.sh`
Note Generated docstrings for this pull request at #8317 |
this is a small first step to mainlining APA into core and let it handle some packaging and distribution logic
0998a77
to
8419661
Compare
Note Unit test generation is an Early Access feature. Expect some limitations and changes as we gather feedback and continue to improve it. Generating unit tests... This may take up to 20 minutes. |
Description
as a small step to wider APA usage, we push a commit to make it discernible if a build uses APA or not -> APA_IS_ACTIVE environment variable.
In a second commit, we disable some code to be eventually deprecated that is already handled with APA's armbian-common package to handle GPG key management. This serves as a canary to give APA some exposure and testing. The environment variable APT_SIGNING_KEY is used in other places of core code and needs to be preserved regardless of the status of the APA_IS_ACTIVE var.
It is important that Armbian starts to provide a way to manage and update GPG repo keys on user devices -> armbian/apa#18
How Has This Been Tested?
Compilation was tested locally.