Skip to content

fix(build): cadl build error when repo url does not end with .git#34107

Closed
archerzz wants to merge 1 commit intoAzure:mainfrom
archerzz:eng/cadl/fix-repo-url-match
Closed

fix(build): cadl build error when repo url does not end with .git#34107
archerzz wants to merge 1 commit intoAzure:mainfrom
archerzz:eng/cadl/fix-repo-url-match

Conversation

@archerzz
Copy link
Copy Markdown
Member

[.git] is a char set which means the url should ends with either ., or g, or i, or t. So if the url doesn't end with .git then there is no match which results in error.

The fix is to remove [.git] char set. We don't need (.git)* either, because \S+ will suppress it.

Contributing to the Azure SDK

Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.

For specific information about pull request etiquette and best practices, see this section.

`[.git]` is a char set which means the url should ends with either `.`, or `g`, or `i`, or `t`. So if the url doesn't end with `.git` then there is no match which results in error.

The fix is to remove `[.git]` char set. We don't need `(.git)*` either, because `\S+` will suppress it.
@archerzz archerzz requested a review from hallipr as a code owner February 13, 2023 09:19
@archerzz archerzz changed the title fix(build): cadl build error when repo ulr not ends with .git fix(build): cadl build error when repo url does not end with .git Feb 13, 2023
@archerzz
Copy link
Copy Markdown
Member Author

Current Behavior

image

After Fix

image

@dw511214992
Copy link
Copy Markdown
Member

dw511214992 commented Feb 13, 2023

I don't think you can fix it in .Net sdk repo directly. Based on my understanding, it only can be fixed in https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/scripts/Cadl-Project-Sync.ps1. Then it will be deployed to every sdk repo.
cc: @m-nash

@archerzz
Copy link
Copy Markdown
Member Author

I don't think you can fix it in .Net sdk repo directly. Based on my understanding, it only can be fixed in Azure/azure-sdk-tools@main/eng/common/scripts/Cadl-Project-Sync.ps1. Then it will be deployed to every sdk repo. cc: @m-nash

Thanks @dw511214992 I didn't realize it's already in auzre-sdk-tools.

@archerzz
Copy link
Copy Markdown
Member Author

fix in Azure/azure-sdk-tools#5427, so close this pr

@archerzz archerzz closed this Feb 13, 2023
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