I made a hack change in ko and would like to install my modified version with go get (I can’t just build locally because eventually it needs to go into a Dockerfile). Currently I put a hack release in
github.com/cathyzhyi/ko/releases/tag/v1.9.8
and tried with
go get -v github.com/cathyzhyi/ko/cmd/ko@v1.9.8
However, seems go get can’t find the binary I uploaded but still look for the official release. The output is the following
go: found github.com/cathyzhyi/ko/cmd/ko in github.com/cathyzhyi/ko v1.9.8
go: finding module for package github.com/google/ko/pkg/commands
go: found github.com/google/ko/pkg/commands in github.com/google/ko v0.6.0
Thanks for the help! I think I didn’t make my question clear though. I was trying to release the ko binary to github so that a container can use go get to install it.
I find a much simpler way to do it by just using wget to download the modified ko binary.