From 48c986422c8f6f08a36f1a801b7521daec787b26 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 21 Apr 2024 22:22:24 +0200 Subject: fix crash when overriding BASE_URL --- cmd/build/build.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/build/build.go b/cmd/build/build.go index 254eff2..326b964 100644 --- a/cmd/build/build.go +++ b/cmd/build/build.go @@ -566,7 +566,10 @@ func main() { log.Panic(errors.Errorf("could not get config: %v", err)) } - config.BaseURL = ioConfig.BaseURL + config.BaseURL.URL, err = url.Parse(ioConfig.BaseURL.String()) + if err != nil { + log.Panic(errors.Errorf("highly unlikely: %v", err)) + } err = os.RemoveAll(ioConfig.Destination) if err != nil { -- cgit 1.4.1