Skip to content

Comments

Fix chart url for digests#136

Merged
tamalsaha merged 1 commit intokubepack:masterfrom
ArnobKumarSaha:chart
Feb 2, 2026
Merged

Fix chart url for digests#136
tamalsaha merged 1 commit intokubepack:masterfrom
ArnobKumarSaha:chart

Conversation

@ArnobKumarSaha
Copy link
Contributor

No description provided.

Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
@@ -140,8 +140,12 @@ func (r *OCIChartRepository) GetChartVersion(name, ver string) (*repo.ChartVersi
_, err := version.ParseVersion(ver)
usesSemver := err == nil
if usesSemver || usesDigest {
Copy link
Contributor

Choose a reason for hiding this comment

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

How did it work before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here is the stack trace :

  1. helmClient.get() : https://github.com/kubepack/lib-helm/blob/master/pkg/internal/helm/repository/oci_chart_repository.go#L214

  2. parseReference uses "oras.land" v2 api now:
    https://github.com/kubepack/lib-helm/blob/master/vendor/helm.sh/helm/v3/pkg/registry/reference.go#L22

  3. That oras package added some new validations :

    validator = ref.ValidateReferenceAsTag

@tamalsaha tamalsaha merged commit c7c3bbf into kubepack:master Feb 2, 2026
3 of 4 checks passed
@ArnobKumarSaha ArnobKumarSaha deleted the chart branch February 2, 2026 11:03
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