Skip to content

Conversation

@samontgo
Copy link

Azure DevOps will no longer allow me to install this extension when I use the Azure CLI task on a hosted agent. The installed version on the hosted agent is azure-cli (2.0.46). Can this file be edited to allow that to work?


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Have you run ./scripts/ci/test_static.sh locally? (pip install pylint flake8 required)
  • Have you run python scripts/ci/test_index.py -q locally?

Azure DevOps will no longer allow me to install this extension when I use the `Azure CLI` task on a hosted agent. The installed version on the hosted agent is `azure-cli (2.0.46)`. Can this file be edited to allow that to work?
@azuresdkci
Copy link

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:

docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/samontgo/azure-cli-extensions.git@patch-1#subdirectory=src/$EXT&egg=$EXT"

@williexu
Copy link
Contributor

@kalyanaj can you comment on why the min cli version was upgraded?
If the goal is to still enable older versions of the CLI, you can consider adding a separate entry in the index.json (one to target newer versions, one to target older).

@samontgo one solution in the meantime would be to update your version of the CLI.

@kalyanaj
Copy link
Contributor

The latest EventGrid extension has a dependency on a bugfix in Knack 0.4.4 and hence we had to update the min CLI core version to 2.0.49.

@kalyanaj
Copy link
Contributor

Here's the additional context on why this needs a dependency on 2.0.49 as the min CLI version: #331.

Changing it to an older version will introduce bugs in the EventGrid extension.

@williexu
Copy link
Contributor

williexu commented Oct 31, 2018

closing this as lowering the version constraint is the wrong thing to do.

@williexu williexu closed this Oct 31, 2018
ShreyaAnand pushed a commit to ShreyaAnand/azure-cli-extensions that referenced this pull request Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants