Skip to content

Template Fragment Installation: Clarify 3rd-party template fragment warnings#7201

Merged
chrisrueger merged 1 commit intobndtools:masterfrom
chrisrueger:improve-template-fragment-warnings
Apr 16, 2026
Merged

Template Fragment Installation: Clarify 3rd-party template fragment warnings#7201
chrisrueger merged 1 commit intobndtools:masterfrom
chrisrueger:improve-template-fragment-warnings

Conversation

@chrisrueger
Copy link
Copy Markdown
Contributor

@chrisrueger chrisrueger commented Apr 14, 2026

Update user-facing prompts in AddCommands.java and NewWorkspaceWizard.java to improve clarity and safety. The text now adds an explicit warning that these fragments may contain build instructions (e.g., .bnd files) which are executed on the next build, asking users to proceed only if they fully trust the authors/content.

Example CLI

bnd add fragment "IndexedMavenRepository"

Your selection would install 1 template fragments from 3rd-party authors (including required dependency fragments): 
IndexedMavenRepository - Provide an OSGi repository derived from a subset of one or more maven repositories
  - Repo: https://github.com/mnlipp/de.mnl.osgi/tree/master/de.mnl.osgi.bnd.repository/workspace-template 

These fragments may contain build instructions (e.g., .bnd files) that are executed with the next build. Only continue if you fully trust the authors and the content.
Do you want to proceed? (yes/no): 

# Yes

Added 1 template fragment(s): 
IndexedMavenRepository - Provide an OSGi repository derived from a subset of one or more maven repositories
  - Repo: https://github.com/mnlipp/de.mnl.osgi/tree/master/de.mnl.osgi.bnd.repository/workspace-template 

# No

No template fragments installed with workspace, because user did not confirm the installation.

Example bndtools

image

@chrisrueger chrisrueger marked this pull request as ready for review April 16, 2026 06:44
@chrisrueger chrisrueger force-pushed the improve-template-fragment-warnings branch from bcc17f5 to 8b20fbc Compare April 16, 2026 06:53
Update user-facing prompts in AddCommands.java and NewWorkspaceWizard.java to improve clarity and safety. The text now adds an explicit warning that these fragments may contain build instructions (e.g., .bnd files) which are executed on the next build, asking users to proceed only if they fully trust the authors/content.

Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
@chrisrueger chrisrueger force-pushed the improve-template-fragment-warnings branch from 8b20fbc to 828d6f5 Compare April 16, 2026 06:54
@chrisrueger chrisrueger merged commit 325a12d into bndtools:master Apr 16, 2026
9 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