[go-nuts] Re: Environment setup for developing golang/go

2022-02-24 Thread Zik Aeroh
The way I do it in VS Code is to do something like this from the repo root: # Get the dev version of Go into PATH for the editor and local dev work $ export PATH=$PWD/bin:$PATH # Build a baseline version of go and save it to restore if things break, or for comparison $ (cd src; GOGC=off

Re: [go-nuts] Re: Advise about using go mod retract to fix pre go mod v2.0.0 tag

2022-01-02 Thread Zik Aeroh
; will *also* need to retract version v1.0.1. > > > I wonder if Jay or someone else could clarify the v2.0.0+incompatible case? > > On Mon, 6 Dec 2021 at 06:21, Zik Aeroh wrote: > >> Unless I'm mistaken, you should be retracting "v2.0.0+incompatible", as >>

[go-nuts] Re: Advise about using go mod retract to fix pre go mod v2.0.0 tag

2021-12-05 Thread Zik Aeroh
Unless I'm mistaken, you should be retracting "v2.0.0+incompatible", as that's the actual version known to the Go tool. Retracting "v2.0.0" would be valid if you were retracting in the "github.com/gomodule/redigo/v2" module, which it sounds like you aren't. You wouldn't want to publish v2.0.1

[go-nuts] Re: no replace directive allowed for "go install" ?

2021-10-27 Thread Zik Aeroh
All replaces are disallowed when using "go install" with a version number, regardless of what kind they are; see https://github.com/golang/go/issues/40276, specifically the sections about "replace". I have a tool I'm currently rewriting that manages $GOBIN via a config file; I'm relying on