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

Provide RepositoryBranch metadata for package #24

Closed
wants to merge 1 commit into from

Conversation

kzu
Copy link
Contributor

@kzu kzu commented 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 #23

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
@@ -85,7 +85,38 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<PropertyGroup Condition="'$(RepositoryBranch)' == ''">
Copy link
Owner

Choose a reason for hiding this comment

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

This is a lot of code and I don't really it's worth adding it, especially given the fix is already pending in the official package. I'd rather just wait for that to be available, and then we can just update this PR to bump the dependency 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that might be best. Also, if you only build on GH actions, might be worth keeping just that single part?

Copy link
Owner

Choose a reason for hiding this comment

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

Maybe, but given you've already opened a PR in ther and it also already has an approval, I'd rather just wait for that one to be in so we can do this properly from the start. I can leave this open if you want, so you can then just rebase and bump that dependency 🙂

@Sergio0694
Copy link
Owner

Closing, since the same fix has been merged into https://github.com/dotnet/reproducible-builds, so it'll propagate here whenever they push a new release that we can also reference. I'll update and publish a new version of PolySharp when that happens.

Thank you for contributing that upstream! 🙂

@Sergio0694 Sergio0694 closed this May 15, 2023
@kzu
Copy link
Contributor Author

kzu commented Jun 21, 2023

Hey @Sergio0694, TBH that project seems to be pretty much dead. No releases since Nov-2021 and nobody is actively answering anything there. Perhaps go the other way and take the change here and delete once they release?

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.

Provide RepositoryBranch metadata for package, just like the other metadata
2 participants