Skip to content

Commit

Permalink
Merge pull request #7735 from ipfs/fix/fs-repo-musl-err
Browse files Browse the repository at this point in the history
return an error when trying to download fs-repo-migrations for linux + musl
  • Loading branch information
aschmahmann authored Nov 24, 2020
2 parents 776e03c + 02733f7 commit 574702b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions repo/fsrepo/migrations/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 574702b

Please sign in to comment.