Skip to content

Fix URL resolution for subpath base URLs in Helm downloads#292

Open
ejaifeobuks wants to merge 1 commit into
Azure:mainfrom
ejaifeobuks:fix/subpath-base-url
Open

Fix URL resolution for subpath base URLs in Helm downloads#292
ejaifeobuks wants to merge 1 commit into
Azure:mainfrom
ejaifeobuks:fix/subpath-base-url

Conversation

@ejaifeobuks

Copy link
Copy Markdown
Contributor

This pull request addresses an issue with constructing Helm download URLs when a custom base URL contains a subpath, ensuring the correct path is preserved regardless of whether the base URL ends with a trailing slash. It also adds new tests to verify this behavior.

Bug Fixes and Improvements:

  • Ensured that getHelmDownloadURL correctly handles base URLs with or without a trailing slash, preserving subpath segments and preventing incorrect URL resolution. (src/run.ts)

Testing Enhancements:

  • Added tests to verify that getHelmDownloadURL preserves subpath base URLs both with and without a trailing slash. (src/run.test.ts)Ensure downloadBaseURL ends with '/' before URL resolution so a subpath mirror (e.g. https://example/kubernetes/helm) is preserved instead of having its last path segment replaced. Fixes downloads for all subpath mirrors.

Ensure downloadBaseURL ends with '/' before URL resolution so a subpath
mirror (e.g. https://example/kubernetes/helm) is preserved instead of having
its last path segment replaced. Fixes downloads for all subpath mirrors.
@ejaifeobuks ejaifeobuks requested a review from a team as a code owner July 14, 2026 02:38
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.

1 participant