Closed kishansairam9 closed 1 year ago
Interesting….
Item 1
Probably 1.19@darwin-amd64
is not a good idea.
Following could be better
gobrew install 1.19 darwin-amd64
We currently use @
for 1.19@latest
and 1.19@dev-latest
Item 2
I also wonder if you can set envs as GOOS=darwin GOARCH=amd64 gobrew install 1.19
, as currently there is a method that uses runtime vars
Item 1 is ideal. With item 2 does gobrew support having 1.19 amd and also arm?
well, it is not a gobrew thing. It autodetects what arch you are currently on and fetches the go binary for that. I still wonder why would you need to specify the arch that is different than your current OS
One of the projects use https://github.com/rubrikinc/go-pcre as a dependency, when I tried to run it on arm build it fails with arch mismatch. The same would run on amd64 build
hmmm okay. In such a case, probably we should consider a lot more changes to it, than simply allowing to install the desired go (with arch).
A few changes I can quickly thing could be as below:
gobrew ls
Having functionality to specify arch would be great to have. Sometimes projects might be dependent on x86_64 binaries Something like -