golang-github-digitalocean-go-smbios is an old library which doesn't have a go.mod file. It also doesn't have any Go source files in the top-level directory. When building with dh-golang 1.66~exp2, I see the following error:
> dh binary --builddirectory=_build --buildsystem=golang --with=golang > dh_update_autotools_config -O--builddirectory=_build -O--buildsystem=golang > dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang > dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang > dh_auto_build -O--builddirectory=_build -O--buildsystem=golang > go: cannot load module _build/src/github.com/digitalocean/go-smbios listed in > go.work file: open _build/src/github.com/digitalocean/go-smbios/go.mod: no > such file or directory > cd _build && go install -trimpath -v -p 16 > go: cannot load module src/github.com/digitalocean/go-smbios listed in > go.work file: open src/github.com/digitalocean/go-smbios/go.mod: no such file > or directory > dh_auto_build: error: cd _build && go install -trimpath -v -p 16 returned > exit code 1 Creating a minimal go.mod by hand fixes the build, but I feel that this won't be the only library affected in this manner, and it would be nice if dh-golang could handle packages without a go.mod whose code lives in a sub-directory. > module github.com/digitalocean/go-smbios > > require ( > github.com/google/go-cmp v0.7.0 > ) Mathias
signature.asc
Description: This is a digitally signed message part
