Skip to content

Commit

Permalink
enable arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
hanksudo committed Jun 10, 2021
1 parent a6d0646 commit 3086a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/protoc/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ func getUnameSUnameMPaths(goos string, goarch string) (string, string, error) {
}
var unameM string
switch goarch {
case "amd64":
case "amd64", "arm64":
unameM = "x86_64"
default:
return "", "", fmt.Errorf("unsupported value for runtime.GOARCH: %v", goarch)
Expand Down

5 comments on commit 3086a4b

@huynq33
Copy link

@huynq33 huynq33 commented on 3086a4b Mar 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to build this project to run as prototool ? Currently i use Mac M1 Max

@hanksudo
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to build this project to run as prototool ? Currently i use Mac M1 Max

git clone -b hotfix-m1-macos https://github.com/hanksudo/prototool.git
cd prototool
go build -o ~/bin/prototool cmd/prototool/main.go

~/bin your bin path.

@huynq33
Copy link

@huynq33 huynq33 commented on 3086a4b Mar 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much ! It works for me now. Even thought, i think i'll migrate to Buf as soon as posible as recommended from Prototool admin, i've seen them add support arm64.

@hanksudo
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks your information, I will check Buf later.

@shubham25kr07
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had run all the command, but still i am getting same error .

git clone -b hotfix-m1-macos https://github.com/hanksudo/prototool.git
cd prototool
go build -o ~/bin/prototool cmd/prototool/main.go

can anyone pls help @hanksudo

Please sign in to comment.