#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,