Skip to content

Remove explicit handling of git commits#312

Merged
MichaelSimons merged 1 commit intodotnet:mainfrom
omajid:remove-git-commit-info
May 8, 2024
Merged

Remove explicit handling of git commits#312
MichaelSimons merged 1 commit intodotnet:mainfrom
omajid:remove-git-commit-info

Conversation

@omajid
Copy link
Copy Markdown
Member

@omajid omajid commented Apr 22, 2024

Rely on submodules/projects to find and use the correct git commit automagically. This is already handled by sourcelink, which uses full git metadata if avaialable or minimal git metadata otherwise.

In fact, it doesn't look like any of the submodules/projects here use git commit info at all, other than humanizer.

src/humanizer/NuSpecs/Humanizer.Core.nuspec includes a <repository> element with a $RepositoryCommit$ variablea but the nupsec inside the built humanizer nupkg doesn't include this element either before or after this change.

[1] https://github.com/dotnet/sourcelink/tree/main/docs#minimal-git-repository-metadata

Rely on submodules/projects to find and use the correct git commit
automagically. This is already handled by sourcelink, which uses full
git metadata if avaialable or minimal git metadata otherwise.

In fact, it doesn't look like any of the submodules/projects here use
git commit info at all, other than humanizer.

src/humanizer/NuSpecs/Humanizer.Core.nuspec includes a `<repository>`
element with a `$RepositoryCommit$` variablea but the nupsec inside the
built humanizer nupkg doesn't include this element either before or
after this change.

[1] https://github.com/dotnet/sourcelink/tree/main/docs#minimal-git-repository-metadata
@omajid
Copy link
Copy Markdown
Member Author

omajid commented May 8, 2024

If this PR is okay, can someone please merge it?

@MichaelSimons MichaelSimons merged commit 7dc4b47 into dotnet:main May 8, 2024
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.

2 participants