The go.mod toolchain directive, introduced in Go 1.21, could be leveraged to execute scripts and binaries relative to the root of the module when the "go" command was executed within the module. This applies to modules downloaded using the "go" command from the module proxy, as well as modules downloaded directly using VCS software.
Created golang tracking bugs for this issue: Affects: epel-all [bug 2238804] Affects: fedora-all [bug 2238805]