Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix - recommend running install after bit env set, replace and updated #8437

Merged
merged 2 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class EnvsReplaceCmd implements Command {
const componentIds = components.map((comp) => comp.id);
await this.workspace.setEnvToComponents(envId, componentIds);
return `added ${chalk.bold(envId.toString())} env to the following component(s):
${componentIds.map((compId) => compId.toString()).join('\n')}`;
${componentIds.map((compId) => compId.toString()).join('\n')}\n
please run 'bit install' for env replace changes to take effect`;
}
}
3 changes: 2 additions & 1 deletion scopes/workspace/workspace/envs-subcommands/envs-set.cmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class EnvsSetCmd implements Command {
const componentIds = await this.workspace.idsByPattern(pattern);
await this.workspace.setEnvToComponents(envId, componentIds);
return `assigned ${chalk.bold(envId.toString())} env to the following component(s):
${componentIds.map((compId) => compId.toString()).join('\n')}`;
${componentIds.map((compId) => compId.toString()).join('\n')}\n
please run 'bit install' for env replace changes to take effect`;
}
}