Created
May 7, 2021 21:06
-
-
Save jeanbza/5e8c882a93db384a6e816ad7c6f0185b to your computer and use it in GitHub Desktop.
with jay soln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deklerk at deklerk1 in /tmp/gorelease-load041932279 | |
$ cd /tmp/gorelease-load394541697 | |
deklerk at deklerk1 in /tmp/gorelease-load394541697 | |
$ export GO111MODULE=on GOSUMDB=off GOPROXY=file:///tmp/gorelease-proxy046518594 GOPATH=/tmp/gorelease_test-gocache080203705 | |
deklerk at deklerk1 in /tmp/gorelease-load394541697 | |
$ vim go.mod | |
deklerk at deklerk1 in /tmp/gorelease-load394541697 | |
$ cat go.mod | |
module gorelease-load-module | |
go 1.12 | |
require ( | |
example.com/cycle v0.0.0-gorelease | |
example.com/cycledep v1.0.0 | |
) | |
replace example.com/cycle v0.0.0-gorelease => /tmp/gorelease593095991 | |
deklerk at deklerk1 in /tmp/gorelease-load394541697 | |
$ sed -i 's/v0.0.0/v1.99999999.9999999/g' go.mod | |
deklerk at deklerk1 in /tmp/gorelease-load394541697 | |
$ cat go.mod | |
module gorelease-load-module | |
go 1.12 | |
require ( | |
example.com/cycle v1.99999999.9999999-gorelease | |
example.com/cycledep v1.0.0 | |
) | |
replace example.com/cycle v1.99999999.9999999-gorelease => /tmp/gorelease593095991 | |
deklerk at deklerk1 in /tmp/gorelease-load394541697 | |
$ cat go.sum | |
example.com/cycle v1.5.0 h1:OkE6KLRVRM5XqIH9MMFIvoYCVjxMh8kqsxUzx5481s4= | |
example.com/cycle v1.5.0/go.mod h1://AqZbyNHeLOKZB3J/UPPXaBvk3nCqvqVRbPkffDx60= | |
example.com/cycledep v1.0.0/go.mod h1:Gc4hO1S1BMZaxOcGHwCRmdVcQP8+jAu/PyEgLdGe0xU= | |
deklerk at deklerk1 in /tmp/gorelease-load394541697 | |
$ cat tmp.go | |
package tmp | |
import _ "example.com/cycle" | |
deklerk at deklerk1 in /tmp/gorelease-load394541697 | |
$ go mod graph | |
gorelease-load-module example.com/cycle@v1.99999999.9999999-gorelease | |
gorelease-load-module example.com/cycledep@v1.0.0 | |
example.com/cycle@v1.99999999.9999999-gorelease example.com/cycledep@v1.0.0 | |
example.com/cycledep@v1.0.0 example.com/cycle@v1.5.0 | |
deklerk at deklerk1 in /tmp/gorelease-load394541697 | |
$ go get -d . | |
go: downloading example.com/cycledep v1.0.0 | |
deklerk at deklerk1 in /tmp/gorelease-load394541697 | |
$ cat go.mod | |
module gorelease-load-module | |
go 1.12 | |
require ( | |
example.com/cycle v1.99999999.9999999-gorelease | |
example.com/cycledep v1.0.0 | |
) | |
replace example.com/cycle v1.99999999.9999999-gorelease => /tmp/gorelease593095991 | |
deklerk at deklerk1 in /tmp/gorelease-load394541697 | |
$ cat go.sum | |
example.com/cycle v1.5.0 h1:OkE6KLRVRM5XqIH9MMFIvoYCVjxMh8kqsxUzx5481s4= | |
example.com/cycle v1.5.0/go.mod h1://AqZbyNHeLOKZB3J/UPPXaBvk3nCqvqVRbPkffDx60= | |
example.com/cycledep v1.0.0 h1:5UDqvIlbZsKzzbZCOaHkxV+X0H6Fi4othxBS57NtjSs= | |
example.com/cycledep v1.0.0/go.mod h1:Gc4hO1S1BMZaxOcGHwCRmdVcQP8+jAu/PyEgLdGe0xU= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment