mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-11 03:09:41 +08:00
fix: return an error when trying to fetch fs-repo-migrations for linux + musl
This commit is contained in:
parent
af089dee35
commit
02733f7355
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user