Skip to content

Fix conflicting workspace template fragments - #7501

Merged
peterkir merged 1 commit into
masterfrom
fea-fragment-import-conflicts
Oct 28, 2026
Merged

peterkir merged 1 commit into
masterfrom
fea-fragment-import-conflicts

Conversation

@peterkir

Copy link
Copy Markdown
Contributor

Workspace fragments can provide the same target file. Unconditionally concatenating their content corrupts shared files and hides conflicting selections.

Deduplicate byte-identical contributions, reject conflicting non-append content before writing, and write the base before append contributions with line separation. Correct update removal so callers can resolve conflicts.

Report conflicting files and fragment names in the new-workspace wizard and bnd add fragment. Add regression coverage and document duplicate, append, and conflict behavior.

Validation: all 13 TemplateFragmentsTest tests passed with no skips; CLI and bndtools.core compileJava tasks passed; git diff --check passed. Full workspace build and live Eclipse UI validation were not run.
Signed-off-by: peterkir peter@klib.io

Workspace fragments can provide the same target file. Unconditionally concatenating their content corrupts shared files and hides conflicting selections.

Deduplicate byte-identical contributions, reject conflicting non-append content before writing, and write the base before append contributions with line separation. Correct update removal so callers can resolve conflicts.

Report conflicting files and fragment names in the new-workspace wizard and bnd add fragment. Add regression coverage and document duplicate, append, and conflict behavior.

Validation: all 13 TemplateFragmentsTest tests passed with no skips; CLI and bndtools.core compileJava tasks passed; git diff --check passed. Full workspace build and live Eclipse UI validation were not run.
Signed-off-by: peterkir <peter@klib.io>
@peterkir
peterkir force-pushed the fea-fragment-import-conflicts branch from 99acb05 to b4cd769 Compare October 28, 2026 10:18
@peterkir
peterkir merged commit 7603bcd into master Oct 28, 2026
28 checks passed
@peterkir
peterkir deleted the fea-fragment-import-conflicts branch October 28, 2026 11:17
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