fix: strip base URL path prefix from helm chart download URLs #64

Merged
benvin merged 1 commits from benvin/fix-helm-url-path-dedup into master 2026-06-27 08:02:52 +10:00
Owner

When a helm repo base URL includes a path component (e.g. `stakater.github.io/stakater-charts`), the merger was extracting the full URL path (`stakater-charts/reloader-2.2.8.tgz`) and the proxy then constructed `base_url/stakater-charts/reloader-2.2.8.tgz` = double path = 404.

Fix: `extractPathRelativeToBase()` strips the shared base path prefix so only the filename portion is used as the proxy path.

When a helm repo base URL includes a path component (e.g. \`stakater.github.io/stakater-charts\`), the merger was extracting the full URL path (\`stakater-charts/reloader-2.2.8.tgz\`) and the proxy then constructed \`base_url/stakater-charts/reloader-2.2.8.tgz\` = double path = 404. Fix: \`extractPathRelativeToBase()\` strips the shared base path prefix so only the filename portion is used as the proxy path.
unkinben added 1 commit 2026-06-27 07:57:03 +10:00
fix: strip base URL path prefix from helm chart download URLs
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
cca640958d
When a helm repo's base URL includes a path (e.g. stakater.github.io/
stakater-charts), the merger extracted the full path from download URLs
causing duplication: /stakater-charts/stakater-charts/reloader.tgz.

Now strips the base URL's path prefix from same-host download URLs so
the proxy constructs the correct upstream URL.
benvin merged commit 30b7cef026 into master 2026-06-27 08:02:52 +10:00
benvin deleted branch benvin/fix-helm-url-path-dedup 2026-06-27 08:02:52 +10:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/artifactapi#64