mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
18 lines
422 B
Go
18 lines
422 B
Go
![]() |
// Copyright (c) Tailscale Inc & AUTHORS
|
||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
|
||
|
//go:build tailscale_go && android
|
||
|
|
||
|
package version
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func init() {
|
||
|
// For official Android builds using the tailscale_go toolchain,
|
||
|
// panic if the builder is screwed up we fail to stamp a valid
|
||
|
// version string.
|
||
|
if !isValidLongWithTwoRepos(Long()) {
|
||
|
panic(fmt.Sprintf("malformed version.Long value %q", Long()))
|
||
|
}
|
||
|
}
|