Skip to content

fix(repo-server-api): stage the whole branch folder for kustomize sources with refs - #474

Open
mickaelicoptere wants to merge 1 commit into
dag-andersen:mainfrom
mickaelicoptere:up/kustomize-source-staging
Open

fix(repo-server-api): stage the whole branch folder for kustomize sources with refs#474
mickaelicoptere wants to merge 1 commit into
dag-andersen:mainfrom
mickaelicoptere:up/kustomize-source-staging

Conversation

@mickaelicoptere

Copy link
Copy Markdown
Contributor

Multi-source apps with a kustomize content source stage only the source dir plus .refs/, so kustomize references escaping the directory (../../base/...) fail with no such file or directory. The no-refs fast path already streams the branch root for kustomize sources; this applies the same rule to the ref-sources path (and skips .git in directory copies). Trades a per-app tree copy for correctness; only hit by kustomize sources that also have ref sources.

Regression test included; validated on a ~1700-app monorepo (6 failing apps → 0).

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