Debian / dh-make-golang

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

Fails to package github.com/charmbracelet/x/ansi #222

Open mdosch opened 1 week ago

mdosch commented 1 week ago

Dear maintainer,

I want to package github.com/charmbracelet/x/ansi as it is a dependency of the latest golang-github-charmbracelet-lipgloss, but dh-make-golang does not work for me in that case:

~/build/go/bin/dh-make-golang -type lib github.com/charmbracelet/x/ansi
2024/06/26 21:43:43 Starting "dh-make-golang v0.7.0 linux/amd64"
2024/06/26 21:43:43 Continuing with repository root "github.com/charmbracelet/x" instead of specified import path "github.com/charmbracelet/x/ansi" (repositories are the unit of packaging in Debian)

So it wants to package github.com/charmbracelet/x instead of github.com/charmbracelet/x/ansi, which would probably also be ok but somehow it only adds the source files of github.com/charmbracelet/x/exp:

 ll golang-github-charmbracelet-x
insgesamt 20K
-rw-rw-r-- 1 martin martin 1,1K 26. Jun 21:43 LICENSE
-rw-rw-r-- 1 martin martin 1,7K 26. Jun 21:43 README.md
drwxr-xr-x 4 martin martin 4,0K 26. Jun 21:43 debian
drwxrwxr-x 3 martin martin 4,0K 26. Jun 21:43 exp
-rw-rw-r-- 1 martin martin   28 26. Jun 21:43 go.work
mdosch commented 1 week ago

Seems it needed an gbp import-orig --uscan afterwards as the it initially checked out an old version.