{CI} Fix #5408: Miss a __init__.py file in src/reservation/azext_reservation/vendored_sdks directory#5421
Merged
wangzelin007 merged 3 commits intoAzure:mainfrom Oct 7, 2022
Merged
Conversation
__init__.py file in src/reservation/azext_reservation/vendored_sdks directory
__init__.py file in src/reservation/azext_reservation/vendored_sdks directory__init__.py file in src/reservation/azext_reservation/vendored_sdks directory
__init__.py file in src/reservation/azext_reservation/vendored_sdks directory__init__.py file in src/reservation/azext_reservation/vendored_sdks directory
jiasli
reviewed
Oct 6, 2022
| # regenerated. | ||
| # -------------------------------------------------------------------------- | ||
|
|
||
| __path__ = __import__('pkgutil').extend_path(__path__, __name__) |
Member
There was a problem hiding this comment.
Perhaps an empty __init__.py will work? Since this vendored_sdks doesn't need to be a namespace package.
Member
Author
There was a problem hiding this comment.
I copied this file from another extension just to be safe.
There is no problem with using an empty __init__.py file.
Collaborator
|
Really good catch! |
necusjz
approved these changes
Oct 6, 2022
kairu-ms
approved these changes
Oct 6, 2022
Collaborator
|
[Release] Update index.json for extension [ reservation ] : https://dev.azure.com/azclitools/internal/_build/results?buildId=7493&view=results |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The pull request #5408 miss a
__init__.pyfile insrc/reservation/azext_reservation/vendored_sdksdirectory.So the vendored_sdks directory will not include when buliding wheel package.
That will cause azure-cli pipeline error:
and azure-cli-extension pipeline error:
Test screenshot:


before change
after change