#1145862 dh-golang: Generating go.work in dh_auto_build breaks the possibility to adjust the go.work for edge case

#1145862#5
Date:
2026-08-27 11:56:32 UTC
From:
To:
Dear dh-golang maintainers,

This is a bugreport for dh-golang version (>> 1.66~exp2) with
module-aware builds enabled.

After we moved generating go.work from dh_auto_configure to
dh_auto_build. I completely lost the possibility to adjust the
go.work file afterwards for edge cases.
And DH_GOLANG_MODULE_MAPPINGS are also not functioning anymore.

In fact, I was trying to port golang-google-cloud package to
module-aware builds. And this package has many edge cases that I
have to adjust the generated go.work file to make go compiler
happy. This has been blocked all my progress for module-aware
builds since this being made from version 1.66~exp3.

Would that be possible to revert and keep generating go.work file
from dh_auto_configure for now so that I can continue to port
golang-google-cloud package to module-aware build?

We can port the adjustment into dh-golang to make it handles that
automaticlly and discuss where is the best to generating go.work
file in later stage.

Best regards,

#1145862#8
Date:
2026-09-02 11:55:50 UTC
From:
To:
Hi,

this has been fixed in dh-go, pending NEW review. I'm not adjusting the
bug metadata, because the new package does not exist yet.

Regards,
Tobias

#1145862#13
Date:
2026-09-03 01:00:09 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
dh-go, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1145862@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dr. Tobias Quathamer <toddy@debian.org> (supplier of updated dh-go package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 02 Sep 2026 13:27:28 +0200
Binary: dh-go
Source: dh-go
Architecture: all source
Version: 1.66
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Changed-By: Dr. Tobias Quathamer <toddy@debian.org>
Closes: 1145862
Description:
 dh-go      - debhelper add-on for packaging software written in Go (golang)
Changes:
 dh-go (1.66) unstable; urgency=medium
 .
   * Create go.work during configuration.
     This reverts a small part of ffc3d2876d611c5f876b9fa66a5a96f5e26492e7.
     (Closes: #1145862)
   * Reformat with perltidy
   * Update package name to dh-go
     - Add Conflicts: dh-golang
     - Keep all other references and buildsystem names to "dh-golang" and
       "golang", in order to be able to easily replace the dh-golang addon
       with this addon. Maintainers can just Build-Depend on this package,
       while keeping all other configurations the same.
Checksums-Sha1:
 0cde06ca455794980e5f73aba46ee6c76f38f23e 1744 dh-go_1.66.dsc
 07db7e2859922fd9c727f6e011e4ca0c513c3b9b 26640 dh-go_1.66.tar.xz
 f487d5ffb32680ff46e87a9b64351fcc2262ad22 5245 dh-go_1.66_amd64.buildinfo
 e8607dee3b29a74f5597004e2186a12e12d0d1f6 26320 dh-go_1.66_all.deb
Checksums-Sha256:
 8fd5344af996a5add6537d646e8c42cdec247f0a7733fb1e29824b339785ec1f 1744 dh-go_1.66.dsc
 e80e49ea9fb9b65cfcb01f7549e01052d5b78e89f23f834819159b4abe2fdcae 26640 dh-go_1.66.tar.xz
 73710dceec03c0ae5e83df66afc9da567c6308f1f7530be7e60c8ceab10514dc 5245 dh-go_1.66_amd64.buildinfo
 6027b7d7296dfff233f11076b9ba87a3d910f2d3e3f37b44350aa1f726aff6ae 26320 dh-go_1.66_all.deb
Files:
 c3416fd79b6d4124b694d7d66de54325 1744 golang optional dh-go_1.66.dsc
 eaab2331dbfddf081cffa284b8fec70c 26640 golang optional dh-go_1.66.tar.xz
 a3924f2f14b0fda7ee32bc73b914eb04 5245 golang optional dh-go_1.66_amd64.buildinfo
 63007975c876645c46d8d8947b836a9c 26320 golang optional dh-go_1.66_all.deb
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE0cuPObxd7STF0seMEwLx8Dbr6xkFAmqYCYEACgkQEwLx8Dbr
6xm3ARAAgULmcJ1XaaqFPWJdAlwEdfdSaSsYPh9AxBiB4TiT3Txf0fC+0FXOsPrV
bQuSBGdkl/mUv0r6yKbPKFik9jzzKtAbokL6KFm9yH8qj4ywPjBGh0iTM2UBcYEj
FvK/a7ftblM/EwWwgsV6cF2iIfmDtw0X4Ec+aNxTXA8ZkgLk4gC6PqB6qS4wgd7+
NF2fsTCHisywtdgLWCv4sS01hXQ66PNEIz76+gkAPnlGv/QX438zQTynwNrNbB4P
GxpQTNYEXF6lolUkV/2f4WC3bI5lsFL5bvtW57dn50+VTBNjhC/pRWNRDxnuRsYY
GbQKEo+GUJdF9SqwXaqvMjOeQIiy4xUqxq//wCFIZFy4t2nJmewwWPHo2gpvyRs+
BjaMuXOLMeRzNBW5lHj/5tHkiJJrTeTKVxlcCzZooSqGyqEep9CT1zb8pQL3FKDo
QLSV9JbwTNS3QYOk8SOdr8OEBshwrFmaVf276CuYc15uVhI+bKSq/F8M3BeWTxkh
pEWEGkQOB7loKRzYG6gQQFnLzjOpCFqg9oER6jVVl3jvPvllraEss9ZXs9o6LK0v
eUXUdH4bmmT7teEJSZ+0YMpGEC0FYU/ag+xhYunn78EqI0Ik7mTsbrXm39eIHwxv
ITRCUMuCeZrVzoYUz2wMCzjJciF8nSfAXDB9/Ackwui04z8AavU=
=GAHF
-----END PGP SIGNATURE-----