On 30.03.25 09:58, François Kooman via golang wrote:
Is there an (official) way to override this in a sustainable way? Is
there a path to "modernizing" these flags to have e.g. TLSv1.0 and DES3
disabled? Am I missing something? Is the output of `go version -m` a red
herring and am I doing something else wrong?
I figured it out! Maybe it is super trivial to everyone here, but just
in case ;-)
As Go modules are disabled when building packages, the Go version is not
picked up from go.mod and therefore the compiler doesn't opt-in to any
of the "flags", e.g. the Go 1.22 HTTP Mux patterns. The output of `go
version -m` was a bit confusing as it seemed someone was explicitly
setting some kind of default, BUT these are just the values of the flags
if you never opted in to *any* of them.
The "fix" is to patch the main.go file and add this to the top:
//go:debug default=go1.23
Then things start working as expected! :)
I don't know how to do this using GODEBUG, it seems export
`GODEBUG=default=go1.23` in the spec file does NOT work, but probably
patching it in the source code is not the worst approach.
Regards,
François
--
_______________________________________________
golang mailing list -- golang@lists.fedoraproject.org
To unsubscribe send an email to golang-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/golang@lists.fedoraproject.org
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue