-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile,*: use tailscale.com/cmd/mkversion
We've suffered misalignment in versioning and toolchain usage due to the shell invocations downstream of ./version/tailscale-version.sh, but also the whole version data scheme in the Makefile was quite complicated, and required synchronization in the build.grade. - Makfile no longer needs to be version aware itself. - A Makefile target tailscale.version refreshes a local cached output from tailscale.com/cmd/mkversion which is updated when go.mod / go.sum change. - build.gradle loads tailscale.version to get the version string. - ldflags are produced from tailscale.version via version-ldflags.sh Updates tailscale/tailscale#13850 Signed-off-by: James Tucker <[email protected]>
- Loading branch information
Showing
5 changed files
with
45 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,5 @@ tailscale.jks | |
libtailscale.aar | ||
libtailscale-sources.jar | ||
.DS_Store | ||
|
||
tailscale.version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
source tailscale.version || echo >&2 "no tailscale.version file found" | ||
if [[ -z "${VERSION_LONG}" ]]; then | ||
exit 1 | ||
fi | ||
echo "-X tailscale.com/version.longStamp=${VERSION_LONG}" | ||
echo "-X tailscale.com/version.shortStamp=${VERSION_SHORT}" | ||
echo "-X tailscale.com/version.gitCommitStamp=${VERSION_GIT_HASH}" | ||
echo "-X tailscale.com/version.extraGitCommitStamp=${VERSION_EXTRA_HASH}" |
This file was deleted.
Oops, something went wrong.