syncthing/lib/build
Jakob Borg 4f367e4376
lib/build: Add some env vars as synthetic build tags (#6709)
This adds some env vars to the long version string as if they were build
tags. The purpose is to better understand what code was running or not
in the version output, usage reporting and crash reports. In order to
prevent possible privacy issues the actual value of the variable is not
reported, just the fact that it was set to something non-empty.

Example:

	% ./bin/syncthing --version
	syncthing v1.6.1+47-g1eb104f3-buildtags "Fermium Flea" (go1.14.3 darwin-amd64) jb@kvin.kastelo.net 2020-06-03 07:25:46 UTC [stnoupgrade, use_badger]
2020-06-03 15:00:28 +02:00
..
build.go lib/build: Add some env vars as synthetic build tags (#6709) 2020-06-03 15:00:28 +02:00
build_test.go all: Use new reflect based CLI (#5487) 2019-02-12 07:58:24 +01:00
tags_noupgrade.go all: Use new reflect based CLI (#5487) 2019-02-12 07:58:24 +01:00
tags_race.go all: Use new reflect based CLI (#5487) 2019-02-12 07:58:24 +01:00