diff --git a/provisioner/hcp-sbom/syft_dependency.go b/provisioner/hcp-sbom/syft_dependency.go index eaaf76f9a..90185eade 100644 --- a/provisioner/hcp-sbom/syft_dependency.go +++ b/provisioner/hcp-sbom/syft_dependency.go @@ -1,6 +1,12 @@ // Copyright IBM Corp. 2013, 2025 // SPDX-License-Identifier: BUSL-1.1 +// Exclude platforms where containerd (a transitive dependency of syft) doesn't compile. +// Containerd has platform-specific code that lacks support for NetBSD, OpenBSD, and Solaris. +// This exclusion only affects dependency tracking; the hcp-sbom provisioner downloads +// pre-built syft binaries at runtime and works on all platforms where those binaries exist. +//go:build !netbsd && !openbsd && !solaris + package hcp_sbom import (