Debian / dh-make-golang

Automatically creates Debian packaging for Go packages
BSD 3-Clause "New" or "Revised" License
373 stars 76 forks source link

Fails to deal with v2+ module directory #135

Open anthonyfok opened 4 years ago

anthonyfok commented 4 years ago
$ dh-make-golang rsc.io/quote
2020/02/29 22:26:39 Starting "dh-make-golang v0.3.3 linux/amd64"
2020/02/29 22:26:40 Cannot derive Debian package name: unknown hoster "rsc.io". See -help output for -allow_unknown_hoster
foka@debian-TP-E431:/tmp/l$ dh-make-golang -allow_unknown_hoster rsc.io/quote
2020/02/29 22:26:49 Starting "dh-make-golang v0.3.3 linux/amd64"
2020/02/29 22:26:49 WARNING: Using "rsc" as canonical hostname for "rsc.io". If that is not okay, please file a bug against dh-make-golang.
2020/02/29 22:26:49 Downloading "rsc.io/quote/..."
2020/02/29 22:26:50 Determining upstream version number
2020/02/29 22:26:50 Found latest tag "v3.0.0"
2020/02/29 22:26:50 INFO: master is ahead of "v3.0.0" by 5 commits
2020/02/29 22:26:50 Package version is "3.0.0"
can't load package: ../dh-make-golang348033921/src/rsc.io/quote/quote.go:8:8: code in directory /tmp/dh-make-golang348033921/src/rsc.io/quote/v3 expects import "rsc.io/quote"
2020/02/29 22:26:50 Could not create a tarball of the upstream source: [go list -f {{.ImportPath}} {{.Name}} rsc.io/quote/...]: exit status 1

$ GO111MODULE=off go list -f "{{.ImportPath}} {{.Name}}" rsc.io/quote... can't load package: /home/foka/go/src/rsc.io/quote/quote.go:8:8: code in directory /home/foka/go/src/rsc.io/quote/v3 expects import "rsc.io/quote" rsc.io/quote quote rsc.io/quote/buggy buggy

creekorful commented 3 years ago

(removing from milestone since already released)