The documentation related to sbom has a typo for GO_SBOM_OPTS env : --main . instead of -main ..
GO_SBOM_OPTS
--main .
-main .