it might be tangential to environments, but fyi
https://github.com/pantsbuild/pants/pull/16843 contains my naive attempt to make use of the subgraphs/multi-parameters support by adding a
GoBuildContext
type. There are rule graph errors which might be of interest.