Repository navigation
fix: support go-getter URLs in ad-hoc dependencies to fix #821 - #2670
Merged
Merged
Conversation
yxxhero
requested review from
aditmeno,
itscaro,
mumoshu,
xiaomudk and
zhaque44
as code owners
June 28, 2026 04:36
yxxhero
force-pushed
the
fix/adhoc-dep-go-getter-821
branch
from
June 28, 2026 04:37
72ed841 to
511f730
Compare
Ad-hoc release dependencies (release.dependencies[].chart) that used go-getter URLs like "git::https://host/repo.git@path?ref=tag" were passed to chartify as-is. chartify then tried to resolve them via `helm repo list`, which fails with "no helm list entry found for repository \"git::https:\". please `helm repo add` it!". The primary chart already fetched such URLs via downloadChartWithGoGetter, but the ad-hoc dependency path in PrepareChartify only handled local directories and OCI rewrites, so go-getter URLs fell through. This adds a branch that detects remote go-getter URLs (remote.IsRemote) and fetches them to a local cache directory via a new downloadAdhocDepChartWithGoGetter helper, mirroring the primary-chart fetch path. chartify then sees a local chart and takes its file:// branch. Fixes #821 Signed-off-by: yxxhero <[email protected]>
Adds an integration test that commits a chart to a throwaway local git repo and references it via a "git::file://..." go-getter URL as a release ad-hoc dependency, then asserts `helmfile template` renders both the main chart and the fetched dependency. Using file:// (rather than https://) keeps the test deterministic and network-free while exercising the exact fix path (remote.IsRemote + downloadAdhocDepChartWithGoGetter in PrepareChartify). Verified to fail on the unfixed code with the original "no helm list entry found for repository \"git::file:\"" error and pass on the fixed code. Signed-off-by: yxxhero <[email protected]>
yxxhero
force-pushed
the
fix/adhoc-dep-go-getter-821
branch
from
June 28, 2026 05:01
6b00062 to
20e96b6
Compare
The integration runner (run.sh) enables `set -e`, so a non-zero helmfile exit aborted the script before the captured output could be printed, hiding the real failure in CI. Disable `set -e` around the helmfile invocation and report the exit code plus full output on failure. Signed-off-by: yxxhero <[email protected]>
Two issues caused the integration test to fail in CI (while passing in my local smoke test, which used an absolute path): 1. The main chart path was relative to the integration CWD, but the helmfile.yaml is generated in a temp directory and helmfile resolves `chart:` relative to that directory (its basePath). The relative path was interpreted as a named-repo chart and failed instantly with `Error: repo test not found`. Resolve the case dir to an absolute path with `$(cd ... && pwd)`. 2. run.sh runs under `set -e`, so the unguarded helmfile invocation exited the whole script on failure before the captured output could be printed, hiding the real error. Capture the exit code via `cmd || rc=$?` so failures are reported. Signed-off-by: yxxhero <[email protected]>
xiaomudk
approved these changes
Jun 28, 2026
hbjydev
pushed a commit
to hbjydev/phoebe
that referenced
this pull request
Jul 10, 2026
…227) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [aqua:helmfile/helmfile](https://github.com/helmfile/helmfile) | minor | `1.6.0` → `1.7.0` | --- ### Release Notes <details> <summary>helmfile/helmfile (aqua:helmfile/helmfile)</summary> ### [`v1.7.0`](https://github.com/helmfile/helmfile/releases/tag/v1.7.0) [Compare Source](helmfile/helmfile@v1.6.0...v1.7.0) #### What's Changed - build(deps): bump azure/setup-helm from 5.0.0 to 5.0.1 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2664](helmfile/helmfile#2664) - fix: ensure OCI charts are prepared for needed releases with --include-needs by [@​yxxhero](https://github.com/yxxhero) in [#​2663](helmfile/helmfile#2663) - fix: serialize concurrent helm operations for same chart to fix [#​768](helmfile/helmfile#768) by [@​yxxhero](https://github.com/yxxhero) in [#​2662](helmfile/helmfile#2662) - fix: clean up chartify temp directories after helm operations by [@​yxxhero](https://github.com/yxxhero) in [#​2668](helmfile/helmfile#2668) - feat: add --template-args flag to template/apply/sync for helm lookup() support by [@​yxxhero](https://github.com/yxxhero) in [#​2666](helmfile/helmfile#2666) - fix: support go-getter URLs in ad-hoc dependencies to fix [#​821](helmfile/helmfile#821) by [@​yxxhero](https://github.com/yxxhero) in [#​2670](helmfile/helmfile#2670) - test: add integration test for issue [#​1880](helmfile/helmfile#1880) transformers with file:// deps by [@​yxxhero](https://github.com/yxxhero) in [#​2673](helmfile/helmfile#2673) - fix: replace YAML-based DeepCopy with recursive deep copy to fix [#​973](helmfile/helmfile#973) by [@​yxxhero](https://github.com/yxxhero) in [#​2675](helmfile/helmfile#2675) - build(deps): bump github.com/helmfile/vals from 0.44.2 to 0.44.3 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2677](helmfile/helmfile#2677) - test: add integration test for selector filtering with requiredEnv ([#​1172](helmfile/helmfile#1172)) by [@​yxxhero](https://github.com/yxxhero) in [#​2678](helmfile/helmfile#2678) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.25 to 1.32.26 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2681](helmfile/helmfile#2681) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.104.0 to 1.104.1 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2682](helmfile/helmfile#2682) - feat: add `inherits:` for sub-helmfile config inheritance by [@​yxxhero](https://github.com/yxxhero) in [#​2680](helmfile/helmfile#2680) - feat: Add ConditionTemplate support in releaseSpec by [@​agarov](https://github.com/agarov) in [#​2669](helmfile/helmfile#2669) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.26 to 1.32.27 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2684](helmfile/helmfile#2684) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.104.1 to 1.104.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2685](helmfile/helmfile#2685) - build(deps): bump github.com/helmfile/vals from 0.44.3 to 0.44.4 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2686](helmfile/helmfile#2686) #### New Contributors - [@​agarov](https://github.com/agarov) made their first contribution in [#​2669](helmfile/helmfile#2669) **Full Changelog**: <helmfile/helmfile@v1.6.0...v1.7.0> </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/London) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNDIuMSIsInVwZGF0ZWRJblZlciI6IjQzLjI0Mi4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL21pbm9yIl19--> Reviewed-on: https://forgejo.hayden.moe/hayden/phoebe/pulls/227
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
Sep 20, 2026
helmfile 1.7.0 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>## What's Changed * build(deps): bump azure/setup-helm from 5.0.0 to 5.0.1 by @dependabot[bot] in helmfile/helmfile#2664 * fix: ensure OCI charts are prepared for needed releases with --include-needs by @yxxhero in helmfile/helmfile#2663 * fix: serialize concurrent helm operations for same chart to fix #768 by @yxxhero in helmfile/helmfile#2662 * fix: clean up chartify temp directories after helm operations by @yxxhero in helmfile/helmfile#2668 * feat: add --template-args flag to template/apply/sync for helm lookup() support by @yxxhero in helmfile/helmfile#2666 * fix: support go-getter URLs in ad-hoc dependencies to fix #821 by @yxxhero in helmfile/helmfile#2670 * test: add integration test for issue #1880 transformers with file:// deps by @yxxhero in helmfile/helmfile#2673 * fix: replace YAML-based DeepCopy with recursive deep copy to fix #973 by @yxxhero in helmfile/helmfile#2675 * build(deps): bump github.com/helmfile/vals from 0.44.2 to 0.44.3 by @dependabot[bot] in helmfile/helmfile#2677 * test: add integration test for selector filtering with requiredEnv (#1172) by @yxxhero in helmfile/helmfile#2678 * build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.25 to 1.32.26 by @dependabot[bot] in helmfile/helmfile#2681 * build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.104.0 to 1.104.1 by @dependabot[bot] in helmfile/helmfile#2682 * feat: add `inherits:` for sub-helmfile config inheritance by @yxxhero in helmfile/helmfile#2680 * feat: Add ConditionTemplate support in releaseSpec by @agarov in helmfile/helmfile#2669 * build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.26 to 1.32.27 by @dependabot[bot] in helmfile/helmfile#2684 * build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.104.1 to 1.104.2 by @dependabot[bot] in helmfile/helmfile#2685 * build(deps): bump github.com/helmfile/vals from 0.44.3 to 0.44.4 by @dependabot[bot] in helmfile/helmfile#2686 ## New Contributors * @agarov made their first contribution in helmfile/helmfile#2669 **Full Changelog**: https://github.com/helmfile/helmfile/compare/v1.6.0...v1.7.0</pre> <p>View the full release notes at <a href="https://github.com/helmfile/helmfile/releases/tag/v1.7.0">https://github.com/helmfile/helmfile/releases/tag/v1.7.0</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!13508
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ad-hoc release dependencies (
release.dependencies[].chart) that use go-getter URLs likegit::https://host/repo.git@path?ref=tagwere passed to chartify as-is. chartify then tried to resolve them viahelm repo list, failing with:The primary chart already fetched such URLs via
downloadChartWithGoGetter, but the ad-hoc dependency path inPrepareChartifyonly handled local directories and OCI rewrites, so go-getter URLs fell through.Changes
pkg/state/helmx.go: added a branch inPrepareChartifythat detects remote go-getter URLs (remote.IsRemote) and fetches them to a local cache directory via a newdownloadAdhocDepChartWithGoGetterhelper, mirroring the primary-chart fetch path. chartify then sees a local chart and takes itsfile://branch.pkg/state/issue_821_test.go: unit regression tests covering (1) theIsRemotedetection for the go-getter URL shapes used in ad-hoc deps, and (2) an end-to-end localfile://git fetch proving the dependency is materialized to disk. The fetch test uses a local git repo so it requires no network.test/integration/test-cases/issue-821-adhoc-dep-go-getter.sh(+ chart fixtures): integration test that commits a chart to a throwaway local git repo and references it via agit::file://...@charts/crd?ref=maingo-getter URL as a release ad-hoc dependency, then assertshelmfile templaterenders both the main chart and the fetched dependency. Usesfile://so the test is deterministic and network-free in CI while exercising the identical fix path. Wired intotest/integration/run.sh.Verification
go build ./pkg/state/...golangci-lint run ./pkg/state/...-> 0 issuesgo test -run 'TestAdhocDependency' ./pkg/state/ -v-> PASSgo test ./pkg/state/... -count=1 -p=1-> PASSgit::https://github.com/prometheus-operator/prometheus-operator.git@example/prometheus-operator-crd?ref=v0.63.0) -> fetched and materialized the CRD yamls locally.mainwith the originalno helm list entry found for repository "git::file:"error and passes on this branch (both resources render).Fixes #821