Skip to content

Fix installer-compatible release archive names#40

Merged
intel352 merged 1 commit into
mainfrom
codex/admin-asset-names
Jun 3, 2026
Merged

Fix installer-compatible release archive names#40
intel352 merged 1 commit into
mainfrom
codex/admin-asset-names

Conversation

@intel352
Copy link
Copy Markdown
Contributor

@intel352 intel352 commented Jun 3, 2026

Summary

  • switch GoReleaser archive names from underscores to wfctl-compatible hyphens
  • add a regression test for the expected archive name template

Tests

  • GOWORK=off go test ./... -count=1

Copilot AI review requested due to automatic review settings June 3, 2026 12:50
@intel352 intel352 merged commit 6594e22 into main Jun 3, 2026
9 checks passed
@intel352 intel352 deleted the codex/admin-asset-names branch June 3, 2026 12:54
Copy link
Copy Markdown

Copilot AI left a comment

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 GoReleaser’s release archive naming to be compatible with wfctl plugin install by switching archive name separators from underscores to hyphens, and adds a regression test to prevent the naming template from regressing.

Changes:

  • Updated .goreleaser.yaml archive name_template to use hyphens (-) instead of underscores (_).
  • Added release_config_test.go to assert the expected archive naming template and disallow underscore-based templates.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
release_config_test.go Adds a regression test for the GoReleaser archive naming template (currently needs adjustment to avoid an external-test package build failure and to make the check less brittle).
.goreleaser.yaml Switches the archive name_template from underscore-separated to hyphen-separated names for installer compatibility.

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

Comment thread release_config_test.go
Comment on lines +1 to +5
package admin_test

import (
"os"
"strings"
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.

2 participants