dns/godns: Go modules mismatch and build failure

From: Daniel Engberg <daniel.engberg.lists_at_pyret.net>
Date: Sun, 01 Dec 2024 11:36:02 UTC
Hi,

Even since release 3.1.9 our framework / Go fails to build and would
appreciate some guidance as it seems to be no documentation on how to
"fix" this issue.

Updating the Makefile "as usual" (as per Porters Handbook instructs)
you'll get this error:

https://pdr2.bofh.network/data/141-diizzy/2024-12-01_05h30m07s/logs/errors/godns-3.2.0.log

Adding

pre-build:

        (cd ${GO_WRKSRC}; ${SETENVI} ${MAKE_ENV} ${GO_ENV}
${GO_CMD} mod vendor)

Results in this as Poudriere rewrites variables as far as I can tell:

https://pdr2.bofh.network/data/141-diizzy/2024-12-01_05h05m41s/logs/errors/godns-3.2.0.log

That being said, I don't see any obvious commits in upstream repo that
would be causing this behaviour but it might be something go-related
in the background that I'm not aware of.

Patch is available here:

https://projects.pyret.net/files/freebsd-patches/godns-320.patch

Any pointers would be appreciated.

Best regards,

Daniel