From 8a5c27872d6159b8667491ad138594ad2a47ad6b Mon Sep 17 00:00:00 2001 From: Sean Fausett Date: Fri, 8 Dec 2023 11:41:58 +1300 Subject: [PATCH 1/4] Fix populate info race conditions Target conditions and git info cache sufficient for incremental build. --- src/GitInfo/build/GitInfo.targets | 46 +++++++++++++------------------ 1 file changed, 19 insertions(+), 27 deletions(-) diff --git a/src/GitInfo/build/GitInfo.targets b/src/GitInfo/build/GitInfo.targets index cb53e20..524a03f 100644 --- a/src/GitInfo/build/GitInfo.targets +++ b/src/GitInfo/build/GitInfo.targets @@ -12,17 +12,17 @@ Customization: - $(GitVersion): set to 'false' to avoid setting Version and PackageVersion - to a default version with format: + $(GitVersion): set to 'false' to avoid setting Version and PackageVersion + to a default version with format: $(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch)$(GitSemVerDashLabel)+$(GitBranch).$(GitCommit) $(GitThisAssembly): set to 'false' to prevent assembly metadata and constants generation. - $(GitThisAssemblyMetadata): set to 'false' to prevent assembly - metadata generation only. Defaults - to 'false'. If 'true', it will also - provide assembly metadata attributes + $(GitThisAssemblyMetadata): set to 'false' to prevent assembly + metadata generation only. Defaults + to 'false'. If 'true', it will also + provide assembly metadata attributes for each of the populated values. $(ThisAssemblyNamespace): allows overriding the namespace @@ -70,7 +70,7 @@ in a previous build in a GitInfo.cache for performance reasons. Defaults to empty value (no ignoring). - + $(GitCachePath): where to cache the determined Git information gives the chance to use a shared location for different projects. this can improve @@ -78,19 +78,19 @@ has to end with a path seperator Defaults to empty value ('$(IntermediateOutputPath)'). - $(GitTagRegex): Regular expression used with git describe to filter the tags + $(GitTagRegex): Regular expression used with git describe to filter the tags to consider for base version lookup. Defaults to * (all) - + $(GitBaseVersionRegex): Regular expression used to match and validate valid base versions - in branch, tag or file sources. By default, matches any string that + in branch, tag or file sources. By default, matches any string that *ends* in a valid SemVer2 string. Defaults to 'v?(?\d+)\.(?\d+)\.(?\d+)(?:\-(?