Created attachment 222411 [details] GO_BUILDFLAGS patch The Tailscale build instructions ask that distributions use https://github.com/tailscale/tailscale/blob/main/build_dist.sh or equivalent commands to ensure that the version of the binary is compiled in; otherwise it uses a date-based version based on the build date. The current package version's (1.4.2) binary outputs: % tailscale version date.20210104 go version: go1.15.8 An official binary (e.g. the MacOS version) outputs the correct version: 1.4.4 tailscale commit: 64a9656c01754b6652994cb3a8ef59bce1246cfc other commit: 21107eaa91253420fce6d0a4b8e9c0369e3480f8 go version: go1.15.7-ts02f50cd Attached is a patch to compile in the PORTVERSION in the version package in the same manner as build_dist.sh, without the git hash (as it's neither available nor required).
A commit references this bug: Author: mikael Date: Thu Feb 18 16:32:09 UTC 2021 New revision: 565948 URL: https://svnweb.freebsd.org/changeset/ports/565948 Log: security/tailscale: set version PR: 253485 Submitted by: James O'Gorman Changes: head/security/tailscale/Makefile
thanks!