build: update matching regex for bazel stamping (#36523)

Previously, the bazel stamping regex only matched on versions
0-9 for major and minor numbers, this update allows for matching
on any number for major, minor or patch.

PR Close #36523
This commit is contained in:
Joey Perrott 2020-04-08 10:38:51 -07:00 committed by Kara Erickson
parent 1beccc1a6c
commit 7549c65502
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ console.log(`BUILD_SCM_LOCAL_CHANGES ${LOCAL_CHANGES}`);
// This will ignore non-version tags which would break unit tests expecting a valid version
// number in the package headers
const BUILD_SCM_VERSION_RAW =
_exec(`git describe --match [0-9].[0-9].[0-9]* --abbrev=7 --tags HEAD`);
_exec(`git describe --match [0-9]*.[0-9]*.[0-9]* --abbrev=7 --tags HEAD`);
// Reformat `git describe` version string into a more semver-ish string
// From: 5.2.0-rc.0-57-g757f886