Skip to content

Take the build copy subdirectory as a single field - #24

Merged
csandanov merged 1 commit into
2.0from
codex/build-copy-subdir
Aug 21, 2026
Merged

Take the build copy subdirectory as a single field#24
csandanov merged 1 commit into
2.0from
codex/build-copy-subdir

Conversation

@csandanov

Copy link
Copy Markdown
Member

Summary

The app build configuration reported the copy subdirectory twice — copyFrom and copyTo — always with the same value, because the backend resolves both from the manifest's single copySubdir. Carrying two fields through the wire format only reopened the possibility of them differing, which is exactly what collapsing the manifest field to one was meant to prevent: a web server and the application it forwards to must resolve the docroot to the same absolute path.

This reads copySubdir and applies it under both the --from and --to roots.

Rollout

Requires a backend that reports copySubdir. There is deliberately no fallback to the old field names — the backend change renames the field and raises WODBY_CLI_VERSION in the same commit, so the build configuration and the CLI that reads it are deployed together and there is no window where one speaks the other's old contract.

Merge and release this first; the backend change pins to the resulting version.

Validation

go build ./... and go test ./cmd/... ./pkg/... pass. The existing joinCopyPath tests are unchanged and still cover default, explicit, absolute, nested and empty roots and subdirectories.

The app build configuration reported the copy subdirectory twice, once for the
source and once for the destination, always with the same value. The service
manifest expresses it once, because a web server and the application it forwards
to must resolve the docroot to the same absolute path, and carrying two fields
through the wire format only reopened the possibility of them differing.

Read copySubdir and apply it under both the --from and --to roots.

This requires a backend that reports the field, which renames it in the same
change that raises the CLI version the platform installs, so the two move
together.
@csandanov
csandanov merged commit b6ba0ca into 2.0 Aug 21, 2026
11 checks passed
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