Skip to content
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

Populate RepositoryBranch package metadata if available #27

Merged
merged 1 commit into from
Apr 8, 2023

Conversation

kzu
Copy link
Contributor

@kzu kzu commented Nov 16, 2022

Only do so if PublishRepositoryUrl=true, meaning you want this information to be public in the first place.

See RepositoryBranch in https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets.

Only do so if PublishRepositoryUrl=true, meaning you want this information to be public in the first place.

See RepositoryBranch in https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets.
@baronfel
Copy link
Member

This seems very reasonable, but I have to admit that my first thought was 'why isn't this in dotnet/sourcebuild?'. I looked in that repo and they don't do anything for RepositoryBranch, so I was surprised.

Copy link
Member

@baronfel baronfel left a comment

Choose a reason for hiding this comment

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

This LGTM baased on the linked CI systems, but I'd appreciate Claire's look at it as well.

kzu added a commit to kzu/PolySharp that referenced this pull request Nov 16, 2022
As documented in nuget (https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets) you can provide
not only the repo URL, type and commit, but also the branch. But this information is not populated by default
by the SourceLink package, neither the ReproducibleBuilds (unless the PR at dotnet/reproducible-builds#27 is merged).

So just bring the code in that PR here until that's merged and shipped.

Fixes Sergio0694#23
@kzu
Copy link
Contributor Author

kzu commented Jan 20, 2023

Gently pinging @clairernovotny 😉

@kzu
Copy link
Contributor Author

kzu commented Apr 3, 2023

Anything stopping this PR from merging? Polysharp also waiting on this ... Sergio0694/PolySharp#24 (comment)

@clairernovotny ?

@clairernovotny
Copy link
Member

@baronfel ?

@baronfel
Copy link
Member

baronfel commented Apr 8, 2023

Thanks @kzu, and sorry for this one falling through the cracks.

@baronfel baronfel merged commit f41ae4c into dotnet:main Apr 8, 2023
@kzu
Copy link
Contributor Author

kzu commented Apr 20, 2023

How does this ship? Is it automatic? Did it ship already?

@kzu
Copy link
Contributor Author

kzu commented Jun 21, 2023

This still hasn't shipped: https://www.nuget.org/packages/DotNet.ReproducibleBuilds

@baronfel
Copy link
Member

We've shipped this in 1.2.4 at long last!

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.

None yet

3 participants