-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include build constraints #29
Comments
Because build constraints will be controlled via environment variables, the easiest way to tackle this is by calling Full output on my machine: {
"AR": "ar",
"CC": "gcc",
"CGO_CFLAGS": "-g -O2",
"CGO_CPPFLAGS": "",
"CGO_CXXFLAGS": "-g -O2",
"CGO_ENABLED": "1",
"CGO_FFLAGS": "-g -O2",
"CGO_LDFLAGS": "-g -O2",
"CXX": "g++",
"GCCGO": "gccgo",
"GO111MODULE": "on",
"GOARCH": "amd64",
"GOBIN": "",
"GOCACHE": "/home/nscur0/.cache/go-build",
"GOENV": "/home/nscur0/.config/go/env",
"GOEXE": "",
"GOEXPERIMENT": "",
"GOFLAGS": "",
"GOGCCFLAGS": "-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3276487465=/tmp/go-build -gno-record-gcc-switches",
"GOHOSTARCH": "amd64",
"GOHOSTOS": "linux",
"GOINSECURE": "",
"GOMOD": "/home/nscur0/development/projects/minikube/go.mod",
"GOMODCACHE": "/home/nscur0/development/go/pkg/mod",
"GONOPROXY": "",
"GONOSUMDB": "",
"GOOS": "linux",
"GOPATH": "/home/nscur0/development/go",
"GOPRIVATE": "",
"GOPROXY": "https://proxy.golang.org,direct",
"GOROOT": "/home/nscur0/.local/go",
"GOSUMDB": "sum.golang.org",
"GOTMPDIR": "",
"GOTOOLDIR": "/home/nscur0/.local/go/pkg/tool/linux_amd64",
"GOVCS": "",
"GOVERSION": "go1.17",
"PKG_CONFIG": "pkg-config"
} What to include?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Once we support a "distribution mode" (for a lack of better terms; see #20 (comment) - variant 1), we need to express for which build constraints the SBOM has been generated.
Constraints could be included via properties of the main component, e.g.
Or, alternatively:
This requires
cyclonedx-go
to support v1.3 of the spec (CycloneDX/cyclonedx-go#1).Additionally, these constraints could be added to the main component's PURL as well, via qualifiers:
The text was updated successfully, but these errors were encountered: