Package: dh-golang
Version: 1.67

Hi!

It seems if package A (e.g., golang-github-expr-lang-expr version
1.18.0-2) ships *.go sources containing [] in the filename, when package
B (e.g., golang-github-betterleaks-betterleaks) has a B-D on A's *-dev
package, dh-golang's call to dpkg-query fails with the error below.

Thanks to Maytham for identifying that dh-golang is likely source of
problem and that the filenames ought to be escaped.

/Simon

Maytham Alsudany <[email protected]> writes:

> Hi Simon,
>
> On Fri, 2026-11-27 at 14:48 +0100, Simon Josefsson wrote:
>> I'm updating golang-github-betterleaks-betterleaks adding a B-D on
>> recent golang-github-expr-lang-expr-dev but getting odd errors:
>> 
>>    dh_golang -O--builddirectory=debian/_build -O--buildsystem=golang
>> dpkg-query: no path found matching pattern
>> /usr/share/gocode/src/github.com/expr-lang/expr/vm/runtime/helpers[generated].go
>> dh_golang: error: dpkg-query --search returned exit code 1
>> 
>> Is there a dpkg-query bug involving [] characters in filenames here?
>
> According to dpkg-query(1) manpage, it interprets '*[?\' characters
> specially for globbing, so they need to be escaped in dh_golang before
> passing the path to dpkg-query.
>
> --
> Maytham
>

Attachment: signature.asc
Description: PGP signature

Reply via email to