Skip to content

feat(azurelinux-repos): add Microsoft subrepo#17413

Open
christopherco wants to merge 1 commit into
4.0from
chrco/add-microsoft-repo
Open

feat(azurelinux-repos): add Microsoft subrepo#17413
christopherco wants to merge 1 commit into
4.0from
chrco/add-microsoft-repo

Conversation

@christopherco
Copy link
Copy Markdown
Collaborator

@christopherco christopherco commented May 23, 2026

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

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.
@christopherco christopherco marked this pull request as ready for review May 23, 2026 05:58
Copilot AI review requested due to automatic review settings May 23, 2026 05:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.repo source file defining the azurelinux-microsoft repo (enabled by default, package GPG-check enabled).
  • Update azurelinux-repos.spec to install microsoft.repo into 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.

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.

2 participants