fix: return an error when trying to fetch fs-repo-migrations for linux + musl
Adin Schmahmann committed
Oct 23, 2020 at 17:29 UTC
02733f7355376e7ba86aaf1a3f09b3f8dcea531d
1 file changed
+5
repo/fsrepo/migrations/migrations.go
+5
@@ -220,6 +220,11 @@ func GetBinaryForVersion(distname, binnom, root, vers, out string) error {
220
if err != nil {
221
return err
222
}
223
+
224
+ if osv == "linux-musl" {
225
+ return fmt.Errorf("linux-musl not supported, you must build the binary from source for your platform")
226
+ }
227
+
228
finame := fmt.Sprintf("%s_%s_%s-%s.%s", distname, vers, osv, runtime.GOARCH, archive)
229
distpath := fmt.Sprintf("%s/%s/%s/%s", root, distname, vers, finame)
230