Skip to content

chore: Fix pre-release Helm chart version#181

Merged
minhtule merged 1 commit intomasterfrom
feat/mt/fix-dev-helm-chart-version
Jan 20, 2026
Merged

chore: Fix pre-release Helm chart version#181
minhtule merged 1 commit intomasterfrom
feat/mt/fix-dev-helm-chart-version

Conversation

@minhtule
Copy link
Copy Markdown
Contributor

@minhtule minhtule commented Jan 16, 2026

Changes

Change the Git tag for dev (prerelease) version from 0.12.1-dev+ca27a29 to 0.12.1-dev-ca27a29, which is still a valid semantic version, to be compatible with OCI tag format.

Notes

While Helm chart version supports full semantic versioning (doc), our Helm charts are distributed via OCI-based Github registry. OCI tag doesn't allow the + character (spec) so installing our Helm chart would run into issues like

helm upgrade gateway oci://ghcr.io/twingate/helmcharts/kubernetes-access-gateway:0.12.1-dev+ca27a29 --install --wait -f ./values.yaml                                                                 
Error: invalid reference: invalid tag "0.12.1-dev+ca27a29"

A tag with + would also cause issues with dependabot for Helm charts.

@minhtule minhtule requested review from clement0010, Copilot and ekampf and removed request for clement0010 January 16, 2026 02:16
@minhtule minhtule marked this pull request as ready for review January 16, 2026 02:16
Copy link
Copy Markdown
Contributor

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 modifies the pre-release version format to ensure compatibility with OCI registry tag requirements. The change replaces the SemVer build metadata separator (+) with a hyphen (-) in dev tags, transforming versions from 0.12.1-dev+ca27a29 to 0.12.1-dev-ca27a29.

Changes:

  • Modified the Makefile to generate dev tags with hyphen-separated commit hash instead of using SemVer metadata format
  • Removed unnecessary replace function calls from .goreleaser.yaml since version strings no longer contain + character

Reviewed changes

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

File Description
Makefile Updated cut-release-dev target to generate pre-release tags with hyphen-separated git commit hash
.goreleaser.yaml Removed all replace .Version "+" "-" template function calls from Docker image and manifest templates
Comments suppressed due to low confidence (1)

.goreleaser.yaml:13

  • The snapshot version template still uses the + character for build metadata. This will cause OCI compatibility issues when building snapshots (e.g., during CI builds). Consider updating this to use a hyphen instead: '{{ .Version }}-{{envOrDefault "VERSION_PRERELEASE" "local"}}-{{ .ShortCommit }}'
  version_template: '{{ .Version }}-{{envOrDefault "VERSION_PRERELEASE" "local"}}+{{ .ShortCommit }}'

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

@minhtule minhtule force-pushed the feat/mt/fix-dev-helm-chart-version branch from 7640208 to 678928d Compare January 16, 2026 02:40
Copy link
Copy Markdown
Contributor

@clement0010 clement0010 left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏻

@minhtule minhtule merged commit 5bd3b41 into master Jan 20, 2026
12 checks passed
@minhtule minhtule deleted the feat/mt/fix-dev-helm-chart-version branch January 20, 2026 23:01
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.

4 participants