You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
431 B
17 lines
431 B
// Copyright (c) Tailscale Inc & contributors
|
|
// 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 and we fail to stamp a valid
|
|
// version string.
|
|
if !isValidLongWithTwoRepos(Long()) {
|
|
panic(fmt.Sprintf("malformed version.Long value %q", Long()))
|
|
}
|
|
}
|
|
|