Skip to content

fix(worktrees): preserve the runtime Traefik network label - #304

Open
xarem wants to merge 1 commit into
mainfrom
fix/worktree-traefik-network-label
Open

xarem wants to merge 1 commit into
mainfrom
fix/worktree-traefik-network-label

Conversation

@xarem

@xarem xarem commented Sep 16, 2026

Copy link
Copy Markdown
Member

An inherited traefik.docker.network label can override the project network selected by dde when worktree labels are replaced with !override. The worktree then advertises a network it does not join.

Exclude inherited network-selection labels, including differently capitalized spellings, from the worktree label copy. The runtime overlay remains the single source of truth while other user labels remain intact. Document this precedence in the worktree guide and Compose override contract.

Validation: regression cases for list/map labels and shell-less containers fail without the fix; ECS, PHPStan level 8, Rector dry-run, and the full test suite pass (1,393 tests, 3 skipped).

@xarem
xarem force-pushed the fix/worktree-traefik-network-label branch from 456431f to c04a47f Compare September 16, 2026 13:34
Base and user override labels could overwrite the worktree network selected by dde. Drop inherited network labels case-insensitively so each worktree advertises only its own routing network.

Signed-off-by: Ueli Banholzer <ueli@whatwedo.ch>
@xarem
xarem force-pushed the fix/worktree-traefik-network-label branch from c04a47f to d3704d2 Compare September 16, 2026 13:35
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