From d80ccfbd9331aa462aef7cff441bf47dc7c57727 Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Mon, 27 May 2024 15:09:40 -0400 Subject: [PATCH] Use the VMR commit hash for dotnet --info Remove the logic that overrides the git commit info for each repo. Let each repo infer the VMR's git commit (via sourcelink). That will let the sdk, runtime, aspnetcore (and other) repos use the VMR's commit hash and show that in dotnet --info. This works for both when building the VMR directly in a git repository, as well as when building it from a git-archive tarball thanks to sourcelink's support for minimal git metadata [1]. This is a port of https://github.com/dotnet/installer/pull/18941 to dotnet/sdk since the installer was merged into sdk. [1] https://github.com/dotnet/sourcelink/tree/main/docs#minimal-git-repository-metadata Fixes: dotnet/source-build#3643 --- .../content/repo-projects/Directory.Build.props | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.props b/src/SourceBuild/content/repo-projects/Directory.Build.props index 6036ca5e6d27..b5d4fa43c885 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.props +++ b/src/SourceBuild/content/repo-projects/Directory.Build.props @@ -149,15 +149,6 @@ - - - - - - - - -