mirror of
https://github.com/go-sigma/sigma.git
synced 2026-10-28 17:06:24 +08:00
The builder container and the daemons on the host resolve the server differently: internalEndpoint is used by syft and grype on the host, so in a setup where the server runs on the host and the builder runs in docker it cannot be host.docker.internal for both. Use the previously unused internalDistributionEndpoint for the builder's ENDPOINT and for the buildkit insecure registries, falling back to internalEndpoint when it is not set. The dev config keeps internalEndpoint on 127.0.0.1 for the host daemons and points the distribution endpoint at host.docker.internal. Verification: - go test -tags "netgo,timetzdata,exclude_graphdriver_btrfs,containers_image_openpgp" ./pkg/config/... - go build -tags "netgo,timetzdata,exclude_graphdriver_btrfs,containers_image_openpgp" ./pkg/config/... ./pkg/background/build/... - golangci-lint run --build-tags "netgo,timetzdata,exclude_graphdriver_btrfs,containers_image_openpgp" ./pkg/config/... ./pkg/background/build/...