Skip to content

[2.x] fix: Skip checksums for PGP signature files (.asc)#8535

Merged
eed3si9n merged 2 commits intosbt:developfrom
Dairus01:fix-8134
Jan 15, 2026
Merged

[2.x] fix: Skip checksums for PGP signature files (.asc)#8535
eed3si9n merged 2 commits intosbt:developfrom
Dairus01:fix-8134

Conversation

@Dairus01
Copy link
Copy Markdown
Contributor

@Dairus01 Dairus01 commented Jan 15, 2026

Problem

When using publishSigned (via sbt-pgp), sbt creates checksum files (e.g., .pom.asc.sha1) for PGP signature files (.asc). This violates Maven norms, where checksums should only be generated for raw artifacts like JARs and POMs, not for signatures.

Fixes #8134

Solution

Modified the checksum generation logic in ChecksumFriendlyURLResolver.put (in lm-ivy/src/main/scala/sbt/internal/librarymanagement/ConvertResolver.scala) to skip generating checksums for artifacts whose names end with .asc.

The change wraps the checksum loop in:

if (!artifact.getName.endsWith(".asc")) {
  // checksum generation code
}

Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=201190161

@Dairus01
Copy link
Copy Markdown
Contributor Author

@eed3si9n Please I'd love you to take a look at this PR

Copy link
Copy Markdown
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eed3si9n eed3si9n changed the title Fix #8134: Skip checksums for PGP signature files (.asc) during publishing [2.x] fix #8134: Skip checksums for PGP signature files (.asc) during publishing Jan 15, 2026
@eed3si9n
Copy link
Copy Markdown
Member

@Dairus01 Before I land, would you like to change the pull request description to say Fixes #8134?

@Dairus01 Dairus01 changed the title [2.x] fix #8134: Skip checksums for PGP signature files (.asc) during publishing fix #8134 Jan 15, 2026
@Dairus01 Dairus01 changed the title fix #8134 Fixes #8134 Jan 15, 2026
@Dairus01
Copy link
Copy Markdown
Contributor Author

@Dairus01 Before I land, would you like to change the pull request description to say Fixes #8134?

Done

@eed3si9n
Copy link
Copy Markdown
Member

I meant

Issue: #8134

I'll just do it myself.

@eed3si9n eed3si9n changed the title Fixes #8134 [2.x] fix: Skip checksums for PGP signature files (.asc) Jan 15, 2026
@eed3si9n eed3si9n merged commit 7368252 into sbt:develop Jan 15, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publishing creates checksum files for PGP signature asc file

2 participants