Handle GOEXPERIMENTs in go version (#2893)

* Handle GOEXPERIMENTs in go version

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>

* bump JSON schema

Signed-off-by: Will Murphy <will.murphy@anchore.com>

---------

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
Co-authored-by: Will Murphy <will.murphy@anchore.com>
This commit is contained in:
Jon Johnson
2024-05-25 20:23:30 +00:00
committed by GitHub
co-authored by Will Murphy
parent 05e8ba948d
commit c314e05aae
8 changed files with 96 additions and 7 deletions
+1
View File
@@ -8,6 +8,7 @@ type GolangBinaryBuildinfoEntry struct {
H1Digest string `json:"h1Digest,omitempty" cyclonedx:"h1Digest"`
MainModule string `json:"mainModule,omitempty" cyclonedx:"mainModule"`
GoCryptoSettings []string `json:"goCryptoSettings,omitempty" cyclonedx:"goCryptoSettings"`
GoExperiments []string `json:"goExperiments,omitempty" cyclonedx:"goExperiments"`
}
// GolangModuleEntry represents all captured data for a Golang source scan with go.mod/go.sum