Skip to content

Update goreleaser#22

Merged
ntnn merged 2 commits intomainfrom
update-goreleaser
Feb 14, 2026
Merged

Update goreleaser#22
ntnn merged 2 commits intomainfrom
update-goreleaser

Conversation

@ntnn
Copy link
Copy Markdown
Owner

@ntnn ntnn commented Feb 14, 2026

No description provided.

ntnn added 2 commits February 14, 2026 13:20
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
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 the GoReleaser configuration and adds a dedicated GitHub Actions workflow for releases. The changes simplify the GoReleaser configuration by removing custom archive formatting, changelog filters, and release footer, opting instead for GoReleaser v2 defaults.

Changes:

  • Simplified .goreleaser.yaml to use GoReleaser v2 defaults with minimal configuration
  • Added .github/workflows/release.yml for automated releases on version tags
  • Added make lint as a pre-release hook

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
.goreleaser.yaml Simplified configuration using GoReleaser v2 defaults, added lint hook, configured build with trimpath and ldflags
.github/workflows/release.yml New workflow for automated releases triggered by version tags or manual dispatch with snapshot support

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


permissions:
contents: write
packages: write
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

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

The workflow grants 'packages: write' permission, but there's no configuration in .goreleaser.yaml for publishing to GitHub Container Registry or any package registry. If package publishing is not needed, this permission should be removed to follow the principle of least privilege. If it's intended for future use or Docker image publishing, consider adding a comment explaining its purpose.

Suggested change
packages: write

Copilot uses AI. Check for mistakes.
Comment thread .goreleaser.yaml
flags:
- trimpath
ldflags:
- -s -w No newline at end of file
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

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

The removal of the archives section means GoReleaser will use default archive settings. This changes the naming convention from the previous custom template (e.g., 'mdextract_Linux_x86_64') to GoReleaser's default naming scheme. This is a breaking change for users who may have scripts or processes that depend on the specific archive naming pattern. Consider whether this breaking change is intentional, and if so, document it in release notes.

Suggested change
- -s -w
- -s -w
archives:
- id: default
builds:
- default
# Preserve legacy naming like: mdextract_Linux_x86_64
name_template: >-
mdextract_{{- if eq .Os "linux" -}}Linux{{- else -}}{{ .Os }}{{- end -}}_{{- if eq .Arch "amd64" -}}x86_64{{- else -}}{{ .Arch }}{{- end -}}
format: tar.gz

Copilot uses AI. Check for mistakes.
Comment thread .goreleaser.yaml

builds:
- env:
- main: .
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

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

The removal of the goos specification (linux, windows, darwin) means the build will now use GoReleaser v2's defaults. In GoReleaser v2, if goos is not specified, it defaults to building for linux, darwin, and windows, which matches the previous configuration. However, it's worth explicitly verifying that the default architectures (likely amd64 and arm64) are acceptable, as the previous configuration had custom handling for amd64/386/arm architectures in the archives section.

Suggested change
- main: .
- main: .
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- 386
- arm

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/release.yml
@ntnn ntnn merged commit 176a0c6 into main Feb 14, 2026
14 checks passed
@ntnn ntnn deleted the update-goreleaser branch February 14, 2026 12:45
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