summaryrefslogtreecommitdiffhomepage
path: root/version
AgeCommit message (Collapse)AuthorFilesLines
2021-05-12version: add func IsRace to report whether race detector enabledBrad Fitzpatrick2-0/+22
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-05-05version: bump dateBrad Fitzpatrick1-1/+1
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-04-28version: add IsMacSysExt funcBrad Fitzpatrick1-1/+26
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-04-28version: add IsSandboxedMacOS funcBrad Fitzpatrick1-1/+16
For when we need to tweak behavior or errors as a function of which of 3 macOS Tailscale variants we're using. (more accessors coming later as needed) Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-04-27version: bump dateBrad Fitzpatrick1-1/+1
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-04-19version: simplify iOS detection now that we require Go 1.16Brad Fitzpatrick3-22/+2
See https://golang.org/doc/go1.16#darwin No need for build tag tricks anymore.
2021-04-15tailcfg, control/controlclient: (mapver 16) add Node.Online, ↵Brad Fitzpatrick1-1/+1
MapResponse.OnlineChange And fix PeerSeenChange bug where it was ignored unless there were other peer changes. Updates tailscale/corp#1574 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-04-01version/distro: look for absolute synology pathDavid Crawshaw1-1/+1
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
2021-03-16version: remove version-info.sh when cleaning.David Anderson1-1/+1
2021-03-16version: bump dateBrad Fitzpatrick1-1/+1
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-03-03tailcfg: tweak documentation for map version 11David Anderson1-1/+1
version: bump date.
2021-02-26version: bump dateBrad Fitzpatrick1-1/+1
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-02-18version: bump dateBrad Fitzpatrick1-1/+1
2021-02-11version: bump dateBrad Fitzpatrick1-1/+1
2021-02-09portlist, version: update build tags for Go 1.16, Apple M1moncho2-2/+2
Build tags have been updated to build native Apple M1 binaries, existing build tags for ios have been changed from darwin,arm64 to ios,arm64. With this change, running go build cmd/tailscale{,d}/tailscale{,d}.go on an Apple machine with the new processor works and resulting binaries show the expected architecture, e.g. tailscale: Mach-O 64-bit executable arm64. Tested using go version go1.16beta1 darwin/arm64. Updates #943 Signed-off-by: moncho <50428+moncho@users.noreply.github.com>
2021-01-04version: new version for a new yearBrad Fitzpatrick1-1/+1
2020-12-30version: bump for the last time in 2020Brad Fitzpatrick1-1/+1
2020-12-21control/controlclient, version/distro: detect NixOS explicitlyBrad Fitzpatrick1-7/+18
The fallthrough happened to work in controlclient already due to the /etc/os-release PRETTY_NAME default, but make it explicit so it doesn't look like an accident. Also add it to version/distro, even though nothing needs it yet.
2020-12-21version: bump dateBrad Fitzpatrick1-1/+1
2020-12-09version: relax git detection logic (again)Adrian Dewhurst1-1/+1
This is a repeat of commit 3aa68cd3978b880b451cd41ac4f4ee4ff5c4cb2f which was lost in a rework of version.sh. git worktrees have a .git file rather than a .git directory, so building in a worktree caused version.sh to generate an error. Signed-off-by: Adrian Dewhurst <adrian@tailscale.com>
2020-12-07tailcfg, control/controlclient: make nil PacketFilter mean unchanged (mapver 6)Brad Fitzpatrick1-1/+1
After mapver 5's incremental netmap updates & user profiles, much of the remaining bandwidth for streamed MapResponses were redundant, unchanged PacketFilters. So make MapRequest.Version 6 mean that nil means unchanged from the previous value.
2020-12-03version: bump dateBrad Fitzpatrick1-1/+1
2020-11-11all: prepare for GOOS=ios in Go 1.16Brad Fitzpatrick3-5/+22
Work with either way for now on iOS (darwin/arm64 vs ios/arm64). In February when Go 1.16 comes out we'll have a universal binary for darwin/arm64 (macOS) and will drop support for Go 1.15 and its darwin/amd64 meaning iOS. (it'll mean macOS). Context: * https://tip.golang.org/doc/go1.16#darwin * https://github.com/golang/go/issues/38485 * https://github.com/golang/go/issues/42100
2020-11-11version.sh: keep the short version even if there are patches on top.Avery Pennarun2-19/+22
Instead of reverting to 0.0.0, keep the same version number (eg. 1.2.4) but add an extra suffix with the change count, eg. 1.2.4-6-tb35d95ad7-gcb8be72e6. This avoids the problem where a small patch causes the code to report a totally different version to the server, which might change its behaviour based on version code. (The server might enable various bug workarounds since it thinks 0.0.0 is very old.) Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
2020-11-11version.sh: remove use of `git describe --exclude`Avery Pennarun1-22/+40
This option isn't available on slightly older versions of git. We were no longer using the real describe functionality anyway, so let's just do something simpler to detect a dirty worktree. While we're here, fix up a little bit of sh style. Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
2020-11-08version/version.sh: strip wc whitespace on macosDavid Crawshaw1-1/+1
The output of `wc -l` on darwin starts with a tab: git rev-list 266f6548611ad0de93e7470eb13731db819f184b..HEAD | wc -l 0 Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
2020-11-06version: bump dateBrad Fitzpatrick1-1/+1
2020-11-06version: relax git detection logicAdrian Dewhurst1-1/+1
git worktrees have a .git file rather than a .git directory, so building in a worktree caused version.sh to generate an error. Signed-off-by: Adrian Dewhurst <adrian@tailscale.com>
2020-11-02VERSION: rename to version.txt to work around macOS limitations.David Anderson1-1/+1
Signed-off-by: David Anderson <danderson@tailscale.com>
2020-11-02version: greatly simplify redo nonsense, now that we use VERSION.David Anderson13-265/+208
Signed-off-by: David Anderson <danderson@tailscale.com>
2020-11-02version: calculate version info without using git tags.David Anderson2-2/+27
This makes it easier to integrate this version math into a submodule-ful world. We'll continue to have regular git tags that parallel the information in VERSION, so that builds out of this repository behave the same. Signed-off-by: David Anderson <danderson@tailscale.com>
2020-11-02version: use -g as the "other" suffix, so that `git show` works.David Anderson2-2/+2
Fixes #880. Signed-off-by: David Anderson <danderson@tailscale.com>
2020-10-28version: fix documentation.David Anderson1-3/+3
2020-10-28version: use OSS repo's version when building.David Anderson14-48/+163
When building with redo, also include the git commit hash from the proprietary repo, so that we have a precise commit that identifies all build info (including Go toolchain version). Add a top-level build script demonstrating to downstream distros how to burn the right information into builds. Adjust `tailscale version` to print commit hashes when available. Fixes #841. Signed-off-by: David Anderson <danderson@tailscale.com>
2020-10-27version: skip TestMkversion on windowsAlex Brainman1-0/+4
TestMkversion requires UNIX shell to run mkversion.sh. No such shell is present on Windows. Just skip the test. Updates #50 Signed-off-by: Alex Brainman <alex.brainman@gmail.com>
2020-09-22version: add Windows MAJOR,MINOR,BUILD,REVISON valueBrad Fitzpatrick1-0/+6
Updates #778 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-09-22control/controlclient, version/distro, wgengine: recognize OpenWrtBrad Fitzpatrick1-0/+4
And help out with missing packages. Thanks to @willangley for tips. Updates #724
2020-09-21version: bump dateBrad Fitzpatrick1-1/+1
2020-09-11wgengine, wgengine/router, cmd/tailscale: force netfilter mode off on SynologyBrad Fitzpatrick1-0/+40
For now. Get it working again so it's not stuck on 0.98. Subnet relay can come later. Updates #451 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-08-20version: bump dateBrad Fitzpatrick1-1/+1
2020-08-06version: new week, new dateBrad Fitzpatrick1-1/+1
2020-08-03version: adjust to a pure semver version number, per bradfitz's proposal.David Anderson2-92/+128
Signed-off-by: David Anderson <danderson@tailscale.com>
2020-07-30version: revert the filepath change from earlier commitBrad Fitzpatrick1-11/+16
f81233524fddeec450940af8dc1a0dd8841bf28c changed a use of package 'path' to 'filepath'. Restore it back to 'path', with a comment. Also, use the os.Executable-based fallback name in the case where the binary itself doesn't have Go module information. That was overlooked in the original code.
2020-07-30version/cmdname: s/path/filepath/ and fix version.ReadExe() fallback.v1.1.0Avery Pennarun1-2/+3
We were using the Go 'path' module, which apparently doesn't handle backslashes correctly. path/filepath does. However, the main bug turned out to be that we were not calling .Base() on the path if version.ReadExe() fails, which it seems to do at least on Windows 7. As a result, our logfile persistence was not working on Windows, and logids would be regenerated on every restart. Affects: #620 Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
2020-07-27version: new week, new versionBrad Fitzpatrick1-1/+1
2020-07-20version: new week, new versionBrad Fitzpatrick1-1/+1
2020-07-13version: new week, new dateBrad Fitzpatrick1-1/+1
2020-07-12Revert "version: don't have a third version number form for xcode"Brad Fitzpatrick2-23/+12
This reverts commit 5280d039c405f38917045b080c8b5eb80ad11625. Turns out to not be possible. The semver form and the human readable form both must of form x.y.z.
2020-07-09version: remove quoting around version nameBrad Fitzpatrick2-2/+2
I added them earlier while fighting our redo+xcode build which wasn't picking up these files on incremental builds. It still isn't, but now I've verified with full builds that no quotes is correct.
2020-07-07version: don't have a third version number form for xcodeBrad Fitzpatrick2-12/+23
Our primary version format is git describe --long --abbrev=9. Our Apple scheme is: (major+100).minor.(patch*10,000+gitDescribeCommits). This CL gets rid of the third, which was: major.minor.(patch*10,000+gitDescribeCommits). Now the "About" box in the macOS app shows the same version that we show on pkgs.tailscale.com, userz, changelog, etc. This will be more important once/if we get standalone DMG downloads for macOS on pkgs.tailscale.com. Fixes tailscale/corp#364