-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
{Packaging} Prioritize official package over the dist one #20557
base: dev
Are you sure you want to change the base?
Conversation
The unofficial package can have a version that is greater than the official one, and the latest version is installed by default. Solve by assigning the official repository high priority.
Thank you for your contribution orgads! We will review the pull request and get back to you soon. |
I'm not sure if this is considered a "customer facing" change. This fixes a bug in debian testing/sid (Debian stable and ubuntu have older versions, so they're not affected). Should I change it to |
@jiasli for awareness |
I saw I am able to repro:
Notice the system @bluca, I think this is causing problem for Debian sid users as they can't install from Microsoft official repo https://packages.microsoft.com/ by default. |
echo 'Package: azure-cli | ||
Pin: origin "packages.microsoft.com" | ||
Pin-Priority: 1001' \ | ||
> /etc/apt/preferences.d/azure-cli |
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.
Reference:
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.
Meaning of 1001
:
P >= 1000
causes a version to be installed even if this constitutes a downgrade of the package
This makes sure the unofficial ones are removed and replaced by our official one.
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
This script currently is not uploaded automatically to https://aka.ms/InstallAzureCLIDeb. I have updated the release pipeline to do that automatically during each release: https://dev.azure.com/azure-sdk/internal/_releaseDefinition?definitionId=78&_a=definition-tasks&environmentId=159 |
Description
The unofficial package can have a version that is greater than
the official one, and the latest version is installed by default.
Solve by assigning the official repository high priority.
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.