helmfile/pkg
javex 4c72814bfa
feat: Ensure repo update is only run once (#1310)
By default `helm dep build` will fetch repo updates before building the
chart. For helmfile this means for every chart with remote dependencies,
another repo update is performed. This isn't necessary as the cache only
needs to be refreshed once.

By performing a `helm repo update` before running any `helm dep`, it is
safe to pass `--skip-refresh` to all `helm dep build` commands as the
cache will be up-to-date.

A few notes to be aware of for this change:
* If there are **no remote dependencies** then this will lead to an
  extra refresh that could be unnecessary. However, a single repo update
  is usually quite fast and can still be skipped with a manual
  `--skip-refresh`.
* There are no tests for this new behaviour yet
* I think even this single update might be unnecessary as any initial
  `helm repo add --force-update` that is normally performed anyway and
  should already refresh all repos. However, I wasn't confident enough
  to simply force this flag at all times and considered this the safer
  option.

Resolves #1310

Signed-off-by: javex <code@inexplicity.de>
2025-09-18 20:42:24 +09:30
..
app build: update helm-diff plugin to v3.13.0 (#2189) 2025-09-13 10:08:15 +08:00
argparser fix #1095 (#1100) 2023-11-01 11:55:55 +08:00
config Add missing --timeout flag to helmfile sync command with documentation (#2148) 2025-08-27 14:32:02 +08:00
environment update test to table driven with assertions & test GetMergedValues (#1721) 2024-09-27 05:27:19 +08:00
envvar refactor(yaml): upgrade from gopkg.in/yaml.v2 to v3 (#2039) 2025-05-15 10:21:37 -04:00
errors build(deps): bump golangci/golangci-lint-action from 6 to 7 (#1975) 2025-03-28 07:52:06 +08:00
event feat: include func support (#1187) 2023-12-04 21:51:01 +08:00
exectest feat: add skip json schema validation during the install /upgrade of a Chart (#1737) 2024-10-24 20:53:18 +08:00
filesystem refactor(filesystem): add CopyDir method and optimize Fetch function (#2111) 2025-07-28 16:10:25 -04:00
hcllang feat: update go version and adjust dependencies in Dockerfile and go.mod (#1722) 2024-09-30 09:21:44 -04:00
helmexec Fix panic when helm isn't installed (#2169) 2025-09-09 07:15:46 +08:00
maputil chore: support parsing any type with `fromYaml` (#2017) 2025-04-25 06:56:01 +08:00
plugins bump vals to v0.22.0 (#703) 2023-02-17 14:09:49 +08:00
policy build(deps): bump golangci/golangci-lint-action from 6 to 7 (#1975) 2025-03-28 07:52:06 +08:00
remote Allow caching of remote files to be disabled (#2112) 2025-07-31 13:38:36 +08:00
runtime refactor(yaml): switch yaml library import paths from gopkg.in to go.yaml.in (#2114) 2025-08-01 11:28:39 +08:00
state feat: Ensure repo update is only run once (#1310) 2025-09-18 20:42:24 +09:30
testhelper replace custom diff in tests using testify (#1215) 2023-12-13 06:32:38 +08:00
testutil feat: add namespace info in syncRelease and diffRelease (#1609) 2024-07-16 09:47:00 +08:00
tmpl refactor(yaml): switch yaml library import paths from gopkg.in to go.yaml.in (#2114) 2025-08-01 11:28:39 +08:00
yaml refactor(yaml): switch yaml library import paths from gopkg.in to go.yaml.in (#2114) 2025-08-01 11:28:39 +08:00