hi there,
I've forked a fork of a Go package (
github.com/jung-kurt/gofpdf).
But as the modus operandi of such a thing is rather unwieldy in github
(PRs would always be created by default against the original package
instead of my fork), I've deleted the forked repo, created a new repo
with the same name and pushed the original git tree there.
so now, my PRs are, by default against my fork, which is great.
unfortunately, I've also decided that my fork would start at v0.1.0
(what would be the last commit from the old gofpdf package) while the
original package was at v1.4.2
and it seems GOPROXY cached it somehow:
$> docker run --rm -it golang
root@clrinfopc42:/go# cd src/
root@clrinfopc42:/go/src# mkdir foo
root@clrinfopc42:/go/src# cd foo/
root@clrinfopc42:/go/src/foo# go mod init foo
go: creating new go.mod: module foo
root@clrinfopc42:/go/src/foo# go version
go version go1.16.5 linux/amd64
root@clrinfopc42:/go/src/foo# cat >> go.mod
require
github.com/go-pdf/fpdf v0.3.1
^C
root@clrinfopc42:/go/src/foo# cat >> main.go
package main
import _ "
github.com/go-pdf/fpdf"
func main() {}
^C
root@clrinfopc42:/go/src/foo# go mod tidy
go: downloading
github.com/go-pdf/fpdf v0.3.1
root@clrinfopc42:/go/src/foo# go build -v
github.com/go-pdf/fpdf
foo
root@clrinfopc42:/go/src/foo# go get -u -v
github.com/go-pdf/fpdf@latest
go: downloading
github.com/go-pdf/fpdf v1.4.2
go get:
github.com/go-pdf/fp...@v0.3.1 updating to
github.com/go-pdf/fp...@v1.4.2: parsing go.mod:
module declares its path as:
github.com/phpdave11/gofpdf
but was required as:
github.com/go-pdf/fpdf
root@clrinfopc42:/go/src/foo# go get -x -u -v
github.com/go-pdf/fpdf@latest
# get
https://proxy.golang.org/github.com/@v/list
# get
https://proxy.golang.org/github.com/go-pdf/fpdf/@v/list
# get
https://proxy.golang.org/github.com/go-pdf/@v/list
# get
https://proxy.golang.org/github.com/@v/list: 410 Gone (0.107s)
# get
https://proxy.golang.org/github.com/go-pdf/fpdf/@v/list: 200 OK (0.107s)
# get
https://proxy.golang.org/github.com/go-pdf/@v/list: 410 Gone (0.107s)
go get:
github.com/go-pdf/fp...@v0.3.1 updating to
github.com/go-pdf/fp...@v1.4.2: parsing go.mod:
module declares its path as:
github.com/phpdave11/gofpdf
but was required as:
github.com/go-pdf/fpdf
of course, it works if I give the explicit new tag of go-pdf/fpdf:
root@clrinfopc42:/go/src/foo# go get -u -v
github.com/go-pdf/fp...@v0.4.0
# get
https://proxy.golang.org/github.com/@v/v0.4.0.info
# get
https://proxy.golang.org/github.com/go-pdf/fpdf/@v/v0.4.0.info
# get
https://proxy.golang.org/github.com/go-pdf/@v/v0.4.0.info
# get
https://proxy.golang.org/github.com/@v/v0.4.0.info: 410 Gone (0.223s)
# get
https://proxy.golang.org/github.com/go-pdf/@v/v0.4.0.info: 410 Gone (0.223s)
# get
https://proxy.golang.org/github.com/go-pdf/fpdf/@v/v0.4.0.info: 200 OK (0.226s)
go: downloading
github.com/go-pdf/fpdf v0.4.0
# get
https://proxy.golang.org/github.com/go-pdf/fpdf/@v/v0.4.0.zip
# get
https://proxy.golang.org/github.com/go-pdf/fpdf/@v/v0.4.0.zip: 200 OK (0.370s)
# get
https://proxy.golang.org/github.com/go-pdf/fpdf/@v/list
# get
https://proxy.golang.org/github.com/go-pdf/fpdf/@v/list: 200 OK (0.029s)
[...]
go get: upgraded
github.com/go-pdf/fpdf v0.3.1 => v0.4.0
any idea how one could purge the tags (coming from {jung-kurt,phpdave11}/gofpdf?
I understand that comes a bit at odds with the way the GOPROXY ledger is
supposed to work though...
any idea on how to work around that?
thanks.
cheers,
-s