From a21832d39c8e9cc49ee03453752ef038356d6d94 Mon Sep 17 00:00:00 2001 From: Superredstone Date: Sat, 28 Feb 2026 17:06:22 +0100 Subject: [PATCH] build: fix nix build --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index e31fc94..f212b91 100644 --- a/main.go +++ b/main.go @@ -5,6 +5,7 @@ import ( "log" "os" "strconv" + "strings" "github.com/Superredstone/spotiflac-cli/lib" "github.com/urfave/cli/v3" @@ -16,7 +17,9 @@ func main() { app := lib.NewApp() err := app.Init() - if err != nil { + + // Ignore this check for nix builds + if err != nil && !strings.Contains(os.Args[0], "/nix/store/") { log.Fatal(err) }