Skip to content

Commit 9e0f4dc

Browse files
waveywavesclaude
andcommitted
fix(materials): remove assertion on deprecated Artifact.Id field
The Id field is deprecated in crafting_state.proto (kept only for server-side compatibility). Remove the test assertion to fix the SA1019 staticcheck lint failure. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> Signed-off-by: Vibhav Bobade <[email protected]>
1 parent 732b95a commit 9e0f4dc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pkg/attestation/crafter/materials/spdxjson_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ func TestSPDXJSONCraft(t *testing.T) {
215215
require.NotNil(t, sbomArtifact)
216216
assert.Equal(tc.wantDigest, sbomArtifact.Artifact.Digest)
217217
assert.Equal(tc.wantFilename, sbomArtifact.Artifact.Name)
218-
assert.Equal("test", sbomArtifact.Artifact.Id)
219218

220219
// Validate main component extraction
221220
if tc.wantNoMainComponent {

0 commit comments

Comments
 (0)