mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-02 14:58:03 +08:00
Merge pull request #7735 from ipfs/fix/fs-repo-musl-err
return an error when trying to download fs-repo-migrations for linux + musl
This commit is contained in:
commit
574702b747
@ -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