Skip to content

ExperienceBundle changes not detected if outside of main/default folder. #1225

@oleg-underscore-r

Description

@oleg-underscore-r

Issue verification check

  • Is the current repository fully deployable at the commit SHA provided with the 'from' parameter of the command?

What is the problem?

ExperienceBundle changes not detected when experiences are outside of main/default folder. As soon as I add it back it's working as expected.

What is the parameter and the value you used with it?

$ sf sgd source delta --from sandbox01-v20260106.29 --to HEAD --output-dir delta --generate-delta --source-dir pkg-main --include-file .sgdInclude

What is the expected result?

  • Delta package should include ExperienceBundle metadata type with member Acme_Customer_Self_Service1 (or equivalent path-based member).
  • Delta output folder should contain pkg-main/main/portals/experiences/Acme_Customer_Self_Service1/ and its contents (site-meta.xml, config/, routes/, brandingSets/, variations/, themes/, etc.).
  • package.xml should list ExperienceBundle type with the changed experience(s).

What is the actual result?

  • Delta package includes DigitalExperienceBundle (for Acme_Enrollment1 under digitalExperiences/site/) but not ExperienceBundle.
  • No files from pkg-main/main/portals/experiences/Acme_Customer_Self_Service1/ appear in the delta output.
  • package.xml has no ExperienceBundle type; only DigitalExperienceBundle is present.
  • git diff --name-status shows many added files under pkg-main/main/portals/experiences/ (e.g. Acme_Customer_Self_Service1.site-meta.xml, Acme_Customer_Self_Service1/routes/accountManagement.json, etc.), but sgd does not include them.

Steps to reproduce

  1. Use a project with packageDirectories where experiences live under a non-default path (e.g. pkg-main/main/portals).
  2. Add or modify ExperienceBundle content under pkg-main/main/portals/experiences/<ExperienceName>/.
  3. Run: sf sgd source delta --from <commit-without-changes> --to HEAD --output-dir delta --generate-delta --source-dir pkg-main --include-file .sgdInclude
  4. Observe that ExperienceBundle is not in the delta; only DigitalExperienceBundle (if present under digitalExperiences/) is included.

Execution context

Darwin Kernel Version 25.3.0: Wed Jan 28 20:48:41 PST 2026; root:xnu-12377.81.4~5/RELEASE_ARM64_T6041
11.9.0
v25.6.1
git version 2.53.0
@salesforce/cli/2.124.7 darwin-arm64 node-v25.6.1
sfdx-git-delta 6.31.0

Operating System: macOS (Darwin 25.3.0, ARM64)

npm version: 11.9.0

node version: v25.6.1

git version: 2.53.0

sf version: 2.124.7

sgd plugin version: 6.31.0

More information (optional)

Project structure

  • sfdx-project.json packageDirectories: pkg-main/main/portals, pkg-main/main/default (default), pkg-main/main/omni, pkg-main/main/sf-permissions
  • Experiences location: pkg-main/main/portals/experiences/Acme_Customer_Self_Service1/ (not under main/default/experiences)

.sgdInclude contents

pkg-main/main/portals/experiences
pkg-main/main/

git diff --name-status (experiences folder)

$ git diff --name-status --no-renames sandbox01-v20260106.29 HEAD -- pkg-main/main/portals/experiences/

A pkg-main/main/portals/experiences/Acme_Customer_Self_Service1.site-meta.xml
A pkg-main/main/portals/experiences/Acme_Customer_Self_Service1/brandingSets/customerAccountPortal.json
A pkg-main/main/portals/experiences/Acme_Customer_Self_Service1/brandingSets/standard.json
A pkg-main/main/portals/experiences/Acme_Customer_Self_Service1/config/acmeCustomerSelfService.json
A pkg-main/main/portals/experiences/Acme_Customer_Self_Service1/config/languages.json
A pkg-main/main/portals/experiences/Acme_Customer_Self_Service1/config/loginAppPage.json
A pkg-main/main/portals/experiences/Acme_Customer_Self_Service1/config/mainAppPage.json
A pkg-main/main/portals/experiences/Acme_Customer_Self_Service1/config/nativeConfig.json
A pkg-main/main/portals/experiences/Acme_Customer_Self_Service1/routes/accountManagement.json
... (many more)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions