summaryrefslogtreecommitdiffhomepage
path: root/version/mkversion
AgeCommit message (Collapse)AuthorFilesLines
2024-09-24{release,version}: add DSM7.2 specific synology builds (#13405)Mario Minardi1-4/+5
Add separate builds for DSM7.2 for synology so that we can encode separate versioning information in the INFO file to distinguish between the two. Fixes https://github.com/tailscale/corp/issues/22908 Signed-off-by: Mario Minardi <mario@tailscale.com>
2024-07-01version/mkversion: allow env config of oss git cache dirBrad Fitzpatrick1-4/+7
Updates tailscale/corp#21262 Change-Id: I80bd880b53f6d851c15479f39fad62b25f1095f1 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-05-14version: fix macOS uploads by increasing build number prefix (#12134)Andrea Gottardo2-3/+6
Fixes tailscale/corp#19979 A build with version number 275 was uploaded to the App Store without bumping OSS first. The presence of that build is causing any 274.* build to be rejected. To address this, added -1 to the year component, which means new builds will use the 275.* prefix. Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
2024-03-08version/mkversion: enforce synology versions within int32 rangeSonia Appasamy1-2/+7
Synology requires version numbers are within int32 range. This change updates the version logic to keep things closer within the range, and errors on building when the range is exceeded. Updates #cleanup Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
2024-01-10version/mkversion: allow version override with $TS_VERSION_OVERRIDE (#10799)Andrew Lytvynov1-0/+7
This is useful to build local binaries with custom versions to test version-specific logic (like updates). Updates https://github.com/tailscale/corp/issues/16703 Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
2023-05-29release/dist/synology: build synology packages with cmd/distDavid Anderson1-0/+8
Updates #8217 Signed-off-by: David Anderson <danderson@tailscale.com>
2023-03-14version/mkversion: don't break on tagged go.mod entriesDavid Anderson1-11/+13
I thought our versioning scheme would make go.mod include a commit hash even on stable builds. I was wrong. Fortunately, the rest of this code wants anything that 'git rev-parse' understands (to convert it into a full git hash), and tags qualify. Signed-off-by: David Anderson <danderson@tailscale.com>
2023-02-18version/mkversion: allow collecting version only from this repoDavid Anderson2-207/+123
With this change, you can collect version info from either a git checkout of the tailscale.com Go module (this repo), or a git checkout of a repo that imports the tailscale.com Go module. Signed-off-by: David Anderson <danderson@tailscale.com>
2023-02-18version/mkversion: add exports for major/minor/patchDavid Anderson2-0/+36
build_dist.sh needs the minor version by itself, for some reason. Signed-off-by: David Anderson <danderson@tailscale.com>
2023-02-18version/mkversion: add documentation, rename internal terminologyDavid Anderson2-98/+129
Signed-off-by: David Anderson <danderson@tailscale.com>
2023-02-18version/mkversion: open-source version generation logicDavid Anderson2-0/+632
In preparation for moving more of the release building here too. Signed-off-by: David Anderson <danderson@tailscale.com>