[Trimmed the CC list to [email protected]] Am 11.07.26 um 06:16 schrieb Andrew Lee: > Hi Toddy, > > I have been trying to create an example package for switch to > module-aware builds with new dh-golang (>= 1.66~). > > In golang-github-pocketbase-pocketbase package. I found I have to > specific this in debian/rules: > ``` > override_dh_auto_build: > »·······dh_auto_build -- github.com/pocketbase/pocketbase/... > ``` > to get the binaries builds or it FTBFS with: > ``` > dh_install: warning: Cannot find (any matches for) "usr/bin/" (tried > in ., debian/tmp) > > dh_install: warning: pocketbase missing files: usr/bin/ > dh_install: error: missing files, aborting > make: *** [debian/rules:9: binary] Error 255 > ``` > > Any idea?
Hi Andrew, I've just seen the same error with the package "age". It can also be resolved by using "dh_auto_build -- filippo.io/age/...". The FTBFS seems to occur because those packages do not specify "package main" in the top-level directory. Both packages have their "main" package in a subdirectory. I suspect that the current dh-golang approach is to build the "main" package from the toplevel directory, so usr/bin is empty if there's no main package to build. By using the three dots, you instruct the go compiler to recursively cycle through all subdirectories, where it finds and builds the "main" packages. I'm wondering if we can just submit the value from "XS-Go-Import-Path" to the building step of dh-golang? Or would that have any negative consequences? Regards, Tobias
OpenPGP_signature.asc
Description: OpenPGP digital signature
