fix(cap): remove root directory naming convention validation warning#470
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR removes the CAP validation warning that enforced a root directory naming convention ({id}-v{version}), which is no longer a valid requirement. The change updates the local CAP validation logic in the tooling SDK and publishes the behavior change via a patch changeset.
Changes:
- Removed the root-directory naming convention warning from
validateCap()in the CAP validation operation. - Added a patch changeset documenting the warning removal for
@salesforce/b2c-tooling-sdk.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/b2c-tooling-sdk/src/operations/cap/validate.ts | Removes the root directory {id}-v{version} naming convention warning from CAP validation. |
| .changeset/remove-cap-root-dir-convention-warning.md | Adds a patch changeset documenting the CAP validation warning removal. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jbisaSF
approved these changes
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the CAP validation warning that flagged a root directory not matching the
{id}-v{version}naming convention (e.g.Root directory "commerce-noibu-app-v1.0.0" does not match expected convention "noibu-v1.0.0").This convention is no longer a valid check, so the warning has been dropped from
b2c cap validate(and by extensionb2c cap install).Changes
packages/b2c-tooling-sdk/src/operations/cap/validate.ts.Testing
pnpm --filter @salesforce/b2c-tooling-sdk run typecheck:agent— passespnpm run lint:agent— passes(Note: a pre-existing, unrelated
InstanceCommand integrationtest failure exists on the base branch and is not affected by this change.)