Skip to content

Commit

Permalink
Always assume Linux for host OS (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
guineveresaenger committed Mar 15, 2023
1 parent efb56a7 commit c6847aa
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,8 @@ func (p *dockerNativeProvider) Check(ctx context.Context, req *rpc.CheckRequest)
return nil, err
}

// Get the system platform
os := runtime.GOOS
// Docker for Mac builds and runs for linux/amd64, not darwin
if os == "darwin" {
os = "linux"
}
// OS defaults to Linux in all cases
os := "linux"
arch := runtime.GOARCH
hostPlatform := os + "/" + arch
msg := fmt.Sprintf(
Expand Down

0 comments on commit c6847aa

Please sign in to comment.