Skip to content

Commit

Permalink
tool/gocross: fail if the toolchain revision isn't findable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
danderson committed Mar 20, 2023
1 parent ebc630c commit df02bb0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tool/gocross/toolchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ findTopLevel:
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
Expand Down

0 comments on commit df02bb0

Please sign in to comment.