feat: replace TinyGo with standard Go for WebAssembly modules (#8496)

This commit is contained in:
Teppei Fukuda
2025-03-07 14:10:15 +04:00
committed by GitHub
parent fe09410ed4
commit 529957eac1
54 changed files with 337 additions and 521 deletions

View File

@@ -73,12 +73,12 @@ func (a Artifact) Inspect(ctx context.Context) (artifact.Reference, error) {
return artifact.Reference{}, xerrors.Errorf("failed to store blob (%s) in cache: %w", cacheKey, err)
}
var artifactType artifact.Type
var artifactType types.ArtifactType
switch format {
case sbom.FormatCycloneDXJSON, sbom.FormatCycloneDXXML, sbom.FormatAttestCycloneDXJSON, sbom.FormatLegacyCosignAttestCycloneDXJSON:
artifactType = artifact.TypeCycloneDX
artifactType = types.TypeCycloneDX
case sbom.FormatSPDXTV, sbom.FormatSPDXJSON:
artifactType = artifact.TypeSPDX
artifactType = types.TypeSPDX
}