Skip to content

package.xml ordering different between Mac & Windows #278

@jonny-harte

Description

@jonny-harte

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?

We are trying to use the package.xml from the delta to keep the manifest package up to date as well as deployments. However,
the order of the package.xml file appears to be different depending on whether you run the command on Windows or Mac. This is making it hard to spot genuine updates in PR's.

Screenshot 2022-03-28 at 3 34 30 pm

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

mkdir \"manifest/changed-sources\" ; sfdx sgd:source:delta --api-version=54 --loglevel trace --to \"HEAD\" --from $(git rev-list --max-parents=0 HEAD) --output \"manifest/changed-sources\" --source force-app --ignore .forceignore ; rm \"manifest/package.xml\" ; mv \"manifest/changed-sources/package/package.xml\" \"manifest/package.xml\" ; rm -R \"manifest/changed-sources\" ; prettier --write \"manifest/package.xml\"

What is the expected result?

Consistent package.xml order regardless of where it has been run.

What is the actual result?

Types & Members are in a different order creating large diff's between commits.

Operating System:
Windows 11, macOS Monterey

node version:
v17.8.0

git version:
git version 2.32.0 (Apple Git-132)

sfdx version:
sfdx-cli/7.142.1 darwin-x64 node-v16.14.0

sgd plugin version:
5.0.3

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