Re: [go-nuts] Re: go mod conflict whith v2 pre-release

2024-04-18 Thread Jolyon Direnko-Smith
@Jason That's really helpful, thanks. I/we adopted Go long after modules were introduced and have never had to deal with GOPATH mode, which probably explains why I didn't read the aspects relating to that (or wiped them from my memory subsequently - lol). On Friday 19 April 2024 at 02:02:36 U

Re: [go-nuts] Re: go mod conflict whith v2 pre-release

2024-04-18 Thread Jason Phillips
@Jolyon > Is this the correct approach to major-v-bumping a module? There are two approaches supported by the Go tooling. This is one of them. Neither is more correct than the other, there are pros and cons to each. Using a major version directory has the benefit of working transparently with G

Re: [go-nuts] Re: go mod conflict whith v2 pre-release

2024-04-17 Thread Xiangrong Fang
As a matter of fact, I gained a somewhat complete understanding of the whole concept of Go modules and the go-get facade mechanism through writing a simple pkgsvr (https://xrfang.coding.net/public/go/pkgsvr/git/files). However, before this issue came up, I hadn't noticed the significance of the ta

Re: [go-nuts] Re: go mod conflict whith v2 pre-release

2024-04-17 Thread Jolyon Direnko-Smith
Is this the correct approach to major-v-bumping a module? I had understood the "vN" slug in the module to be a "virtual" element, signalling the deliberate introduction of an upgrade to a new major version of a dependency. i.e. it avoids (or at least makes less likely) the chance of inadverte

Re: [go-nuts] Re: go mod conflict whith v2 pre-release

2024-04-17 Thread Xiangrong Fang
Yeah. After clean modcache. Thanks! Jason Phillips 于2024年4月17日周三 22:41写道: > It works for me, now. > > > go get go.xrfang.cn/hap/v2@v2.0.0-alpha.2 > go: downloading go.xrfang.cn/hap/v2 v2.0.0-alpha.2 > go: go.xrfang.cn/hap/v2@v2.0.0-alpha.2 requires go >= 1.22.1; > switching to go1

Re: [go-nuts] Re: go mod conflict whith v2 pre-release

2024-04-17 Thread Jason Phillips
It works for me, now. > go get go.xrfang.cn/hap/v2@v2.0.0-alpha.2 go: downloading go.xrfang.cn/hap/v2 v2.0.0-alpha.2 go: go.xrfang.cn/hap/v2@v2.0.0-alpha.2 requires go >= 1.22.1; switching to go1.22.2 go: upgraded go 1.22.0 => 1.22.1 go: added toolchain go1.22.2 go: added g

Re: [go-nuts] Re: go mod conflict whith v2 pre-release

2024-04-17 Thread Xiangrong Fang
Hi Jason, Acutally I wrote the go hosting service myself. According to your comments, I modified the output now it is: $ curl https://go.xrfang.cn/hap/v2?go-get=1 https://e.coding.net/xrfang/go/hap.git";> But it still not working: $ GOPROXY=direct go get -v -x -u go.xrfang.cn/hap/v2@v2.0.0-alph