tool/gocross: fail if the toolchain revision isn't findable

This used to make sense, but after a refactor somewhere along the line
this results in trying to download from a malformed URL and generally
confusing failures.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson 2023-03-20 13:49:50 -07:00 committed by Dave Anderson
parent ebc630c6c0
commit df02bb013a

View File

@ -39,9 +39,6 @@ func toolchainRev() (string, error) {
func readRevFile(path string) (string, error) {
bs, err := os.ReadFile(path)
if err != nil {
if os.IsNotExist(err) {
return "", nil
}
return "", err
}
return string(bytes.TrimSpace(bs)), nil