From df02bb013aec812be0814d5266b856f1448c2904 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 20 Mar 2023 13:49:50 -0700 Subject: [PATCH] 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 --- tool/gocross/toolchain.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/tool/gocross/toolchain.go b/tool/gocross/toolchain.go index 38935ebfc..f5f790b43 100644 --- a/tool/gocross/toolchain.go +++ b/tool/gocross/toolchain.go @@ -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