From 02733f7355376e7ba86aaf1a3f09b3f8dcea531d Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Fri, 23 Oct 2020 17:29:47 -0400 Subject: [PATCH] fix: return an error when trying to fetch fs-repo-migrations for linux + musl --- repo/fsrepo/migrations/migrations.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/repo/fsrepo/migrations/migrations.go b/repo/fsrepo/migrations/migrations.go index b09921621..186d4a10d 100644 --- a/repo/fsrepo/migrations/migrations.go +++ b/repo/fsrepo/migrations/migrations.go @@ -220,6 +220,11 @@ func GetBinaryForVersion(distname, binnom, root, vers, out string) error { if err != nil { return err } + + if osv == "linux-musl" { + return fmt.Errorf("linux-musl not supported, you must build the binary from source for your platform") + } + finame := fmt.Sprintf("%s_%s_%s-%s.%s", distname, vers, osv, runtime.GOARCH, archive) distpath := fmt.Sprintf("%s/%s/%s/%s", root, distname, vers, finame)