Skip to content

Conversation

@jiasli
Copy link
Member

@jiasli jiasli commented Aug 11, 2021

Description

Due to the renaming of master to main, master branch is no longer maintained.

az upgrade should fetch the version from main branch instead.

@jiasli
Copy link
Member Author

jiasli commented Aug 11, 2021

This problem is currently mitigated by manually fast-forwarding master to main so that https://raw.githubusercontent.com/Azure/azure-cli/main/src/azure-cli/setup.py is still available.

@yonzhan
Copy link
Collaborator

yonzhan commented Aug 11, 2021

Upgrade

@yonzhan yonzhan added this to the Aug 2021 (2021-09-07) milestone Aug 11, 2021
def get_latest_from_github(package_path='azure-cli'):
try:
import requests
git_url = "https://raw.githubusercontent.com/Azure/azure-cli/master/src/{}/setup.py".format(package_path)
Copy link
Member Author

Choose a reason for hiding this comment

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

As old Azure CLI versions installed on customer's machines have master hardcode in source code, we can never deprecate master branch, otherwise all old versions of Azure CLI can't use az upgrade to upgrade to the latest version anymore - a deadlock!

The only possible solution is to manually upgrade Azure CLI.

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.

3 participants