Skip to content

Ship .asc signature alongside .sig#502

Merged
dagood merged 3 commits into
mainfrom
dev/gadams/sig
Jul 8, 2026
Merged

Ship .asc signature alongside .sig#502
dagood merged 3 commits into
mainfrom
dev/gadams/sig

Conversation

@gdams

@gdams gdams commented Jun 4, 2026

Copy link
Copy Markdown
Member

Ship an .asc PGP signature file alongside the existing .sig for every archive. The .sig remains the default/primary extension; .asc is produced in parallel for compatibility with upstream Go tooling (e.g. official Dockerfiles).

See microsoft/go#181

Changes

  • buildassets.go: Recognize both .sig and .asc when scanning build output directories (prefer .sig)
  • main.go: Use .sig URLs for aka.ms links and release validation
  • dockerversions.go: Update PGPSignatureURL doc comment
  • Tests: Update test data and golden files

Companion PR

Copilot AI review requested due to automatic review settings June 4, 2026 14:30
@gdams gdams requested a review from a team as a code owner June 4, 2026 14:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates releasego and the build-assets scanning logic to align detached PGP signature handling with upstream Go’s .asc convention while still recognizing legacy .sig artifacts.

Changes:

  • Switch releasego URL/path generation from .sig to .asc for signature files.
  • Update build-assets directory scanning and filename parsing to recognize both .asc and .sig.
  • Refresh test data/golden outputs to reflect .asc signatures.
Show a summary per file
File Description
cmd/releasego/main.go Updates default signature URL/path derivation from .sig to .asc.
cmd/releasego/akams_test.go Updates in-test BuildAssets signature URLs to .asc.
cmd/releasego/testdata/Test_createLinkPairs/release_studio/aka.golden.txt Updates expected aka.ms link targets to .asc.
cmd/releasego/testdata/Test_createLinkPairs/blob/aka.golden.txt Updates expected aka.ms link targets to .asc.
buildmodel/dockerversions/dockerversions.go Updates PGPSignatureURL documentation to .asc.
buildmodel/buildassets/buildassets.go Recognizes .asc and .sig for signature files; expands filename parsing to cover both.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 6/6 changed files
  • Comments generated: 2

Comment thread buildmodel/buildassets/buildassets.go Outdated
Comment thread buildmodel/dockerversions/dockerversions.go Outdated
@gdams gdams force-pushed the dev/gadams/sig branch 2 times, most recently from ad77507 to 32c6f55 Compare June 4, 2026 14:53
Comment thread cmd/releasego/testdata/Test_createLinkPairs/release_studio/aka.golden.txt Outdated
@gdams gdams changed the title Change PGP signature file extension from .sig to .asc Ship .asc signature alongside .sig Jun 12, 2026
Recognize both .sig and .asc signature files when scanning build output
directories. The .sig extension remains the default for aka.ms links and
release URLs; .asc is accepted alongside for compatibility with upstream
Go tooling.

See microsoft/go#181

@dagood dagood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not seeing how this ends up shipping both the .sig and .asc to aka.ms, or including both in the build assets JSON?

Comment thread buildmodel/buildassets/buildassets.go Outdated
@gdams

gdams commented Jun 15, 2026

Copy link
Copy Markdown
Member Author

I'm not seeing how this ends up shipping both the .sig and .asc to aka.ms, or including both in the build assets JSON?

updated PTAL

@gdams gdams requested a review from dagood June 15, 2026 23:35
Add ASCSignatureURL to the Arch model and update CreateSummary to record
.sig and .asc independently so both appear in the build assets JSON and
both are shipped as aka.ms shortlinks.
Comment thread buildmodel/buildassets/buildassets.go Outdated
Comment thread cmd/releasego/main.go
@gdams gdams requested a review from dagood July 8, 2026 16:34
@dagood dagood added the release-on-merge Triggers an automated release when this PR is merged label Jul 8, 2026
@dagood dagood merged commit ebf0f3b into main Jul 8, 2026
15 checks passed
@dagood dagood deleted the dev/gadams/sig branch July 8, 2026 22:03
dagood added a commit that referenced this pull request Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-on-merge Triggers an automated release when this PR is merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants