Hi all,

While trying to package a Go web application that uses the new Go HTTP Mux patterns, available in Go >= 1.22, I'm having trouble "enabling" this when building the application using the %gobuild macro.

It looks like this functionality is explicitly disabled, and I don't know how to override this. A lot of searching through existing spec files and the go build RPM macros did not really lead anywhere. It can't find it! :-)

$ go version -m /usr/sbin/app | grep GODEBUG
build DefaultGODEBUG=asynctimerchan=1,gotypesalias=0,httplaxcontentlength=1,httpmuxgo121=1,httpservecontentkeepheaders=1,netedns0=0,panicnil=1,tls10server=1,tls3des=1,tlskyber=0,tlsrsakex=1,tlsunsafeekm=1,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1

It seems no matter what I try, I can't seem to be able to override the `httpmuxgo121=1` flag. Looking through this list, it seems it also wouldn't hurt to modify `tls10server=1` and `tls3des=1` to a safer value ;-)

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?

Thanks in advance!

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

Reply via email to