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) <noreply@anthropic.com> Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>
1 parent 732b95a commit 9e0f4dc

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

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)