feat(azurelinux-repos): add Microsoft subrepo#17413
Open
christopherco wants to merge 1 commit into
Open
Conversation
Ship /etc/yum.repos.d/microsoft.repo in both the official and dev subpackages, pointing at packages.microsoft.com/azurelinux/$releasever/beta/microsoft/$basearch. Enabled by default, GPG-signed with the Azure Linux primary key. Shipped as a separate static source (not a section in the shared azurelinux.repo.in template) so its fixed packages.microsoft.com URL isn't rewritten through the dev variant's REPO_URI_PREFIX. Installed as microsoft.repo.main/.dev; the existing RemovePathPostfixes directives strip the suffix in each subpackage. %check validates both files.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the azurelinux-repos component to ship an additional DNF/YUM repo definition (microsoft.repo) for Microsoft-curated content hosted on packages.microsoft.com, installed in both the main and dev variants while keeping the URL fixed (not templated through the dev repo prefix behavior).
Changes:
- Add a new
microsoft.reposource file defining theazurelinux-microsoftrepo (enabled by default, package GPG-check enabled). - Update
azurelinux-repos.specto installmicrosoft.repointo both subpackages and validate it in%check. - Refresh rendered specs and the component lock fingerprint to match the updated inputs.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| specs/a/azurelinux-repos/microsoft.repo | Adds the rendered Microsoft subrepo definition file. |
| specs/a/azurelinux-repos/azurelinux-repos.spec | Updates rendered spec to include/install/check the Microsoft repo file and bumps rpmautospec release number. |
| locks/azurelinux-repos.lock | Updates input fingerprint for the component after adding the new source file. |
| base/comps/azurelinux-repos/microsoft.repo | Adds the source Microsoft repo definition used by the spec. |
| base/comps/azurelinux-repos/azurelinux-repos.spec | Updates the component’s spec to ship and validate the Microsoft repo file in both subpackages. |
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.
Ship /etc/yum.repos.d/microsoft.repo in both the official and dev subpackages, pointing at packages.microsoft.com/azurelinux/$releasever/beta/microsoft/$basearch. Enabled by default, GPG-signed with the Azure Linux primary key.
Shipped as a separate static source (not a section in the shared azurelinux.repo.in template) so its fixed packages.microsoft.com URL isn't rewritten through the dev variant's REPO_URI_PREFIX. Installed as microsoft.repo.main/.dev; the existing RemovePathPostfixes directives strip the suffix in each subpackage. %check validates both files.
Fixes: AB#20074