-
Notifications
You must be signed in to change notification settings - Fork 116
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
Linter fails with OSError if multiple repos are used #272
Comments
I think the issue is that azure-cli-dev-tools/azdev/operations/style.py Line 204 in 87605f5
|
@haroldrandom I can start to pick up communication for this ticket, as @TimMullender has left our team. He kindly forwarded on your message to me regarding the azdev version that we are using. The issue is present in: We are able to work around it by using: |
@TimMullender Thank you for your feedback. Can you give us a more of a description the scenario here? I noticed that: repo_path = NONE Did you run "azdev setup" without specifying a CLI? Did you run azdev setup with the version 0.1.28 or a earlier version? What is the use case for having multiple extension repos? It seems you want to run the linter all both repos. Are you developing on two separate extensions repos? Thanks! |
@bquantump, we setup a script to automate this this on an older version (pre 0.1.28) where we run both:
We only have the one repository which we are developing against and wish to run linter on. However, the adzev setup -r option followed by repo add results in 2 repos being configured. Has the setup changed in this version (0.1.28)? |
I'm starting to suspect that there's been a misunderstanding on our side regarding how the adzev is meant to be setup. We have a line in our manual steps docs that reads: This has been interpreted to mean https://github.com/Azure/azure-cli-extensions.git, but I am thinking now that we do not need this at all. I ran our automated setup again and modified the command to be: |
@dafunker I noticed that master as of now is also version 0.1.28, are you using master or are you using the official release of 0.1.28 from August 25th? We missed bumping the version in master after the release with new commits. These new commits after the August 25th won't be backward compatible with previous versions. So, multiple extensions repos per virtual environment is not yet supported in that version for example (which is 0.1.29 beta). Also this new version will allow multiple CLI version to run inside separate virtual environments. That is, env1 can have a version of the cli and extensions different from env2's cli version and extensions. This required the azdev setup to change, and hence if you are using code after the release on August 25th, which is in master, then the setup must be completely re-run with only one or zero extensions repo specified or added later. |
Yes, -r should be pointing to a local extensions repo on the file system. |
@bquantump, please feel free to go ahead and close this ticket as not a bug. We've changed our setup steps to use -r correctly, so this is no longer an issue. |
Version
Configuration
Command
azdev linter livedata
Error
The text was updated successfully, but these errors were encountered: