-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Trim trailing .git from sourcelink repo urls in container generation #39161
Trim trailing .git from sourcelink repo urls in container generation #39161
Conversation
Trimming the trailing |
We're not really worried about |
At https://github.com/opencontainers/image-spec/blob/main/annotations.md, it's specified as
If the value cannot be used for obtaining the source because I'm thinking about on-premises Bitbucket in particular, which uses different URL paths for web browser HTML access and for Git access. But I don't remember whether it has |
Re on-premises Bitbucket, the HTTPS URL formats are like this (including the difference in letter case):
Actually, it works even if you remove |
src/Containers/packaging/build/Microsoft.NET.Build.Containers.targets
Outdated
Show resolved
Hide resolved
src/Containers/packaging/build/Microsoft.NET.Build.Containers.targets
Outdated
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there seems to be some controversy about always considering the .git
prefix trimmable, do you think it would be worth adding an opt-out property?
Not really, no - this seems pretty self-evident for git repo server configuration, and users have a pretty clear workaround if that's the case. We can always revisit if it becomes a problem for folks. |
Fixes dotnet/sdk-container-builds#540 by trimming .git from sourcelink-derived repo urls