Skip to content

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

Merged
1 commit merged intoAzure:mainfrom
archerzz:eng/cadl/fix-repo-url-match
Feb 14, 2023
Merged

fix(build): cadl build error when repo url does not end with .git#5427
1 commit merged 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.

`[.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
Copy link
Copy Markdown
Member Author

Current Behavior

image

After Fix

image

@azure-sdk
Copy link
Copy Markdown
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

Copy link
Copy Markdown
Member

@m-nash m-nash left a comment

Choose a reason for hiding this comment

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

I believe this will work.
Please verify locally both ssh and uri matching.

@weshaggard do you mind double checking this change as well?

@haolingdong-msft
Copy link
Copy Markdown
Member

Overall LGTM. nit: We have single quote and double quote format regex, shall we all use single quote?

@haolingdong-msft
Copy link
Copy Markdown
Member

I checked in Java sdk repo, the change works now.

@ghost
Copy link
Copy Markdown

ghost commented Feb 14, 2023

Hello @azure-sdk!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 7f11374 into Azure:main Feb 14, 2023
This pull request was closed.
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.

5 participants