Repository navigation
[Package] test_force.js --sdkdependencies flag is broken (double-JSON-encodes CLI arg) - #345
Merged
Conversation
…s (Value was already a JSON string; re-stringifying it broke overrideSdkDependencies() parsing, silently no-opping the SDK override)
Contributor
Author
|
Why wasn't this caught sooner? Three compounding reasons:
This response was generated by an AI agent on behalf of @JohnsonEricAtSalesforce. |
Contributor
Author
|
CI failures are pre-existing, unrelated to this change The
Path forward: once those 3 PRs merge, CI here should go green with no further changes needed on this branch. This response was generated by an AI agent on behalf of @JohnsonEricAtSalesforce. |
wmathurin
approved these changes
Aug 23, 2026
…r --spm-update path (sdkDependencies is reassigned to a plain object when --spm-update is set; the prior one-line fix assumed it was always a string, which would throw)
wmathurin
approved these changes
Aug 24, 2026
JohnsonEricAtSalesforce
merged commit Aug 24, 2026
50347bc
into
forcedotcom:dev
13 of 17 checks passed
JohnsonEricAtSalesforce
deleted the
bugfix/package-test-force-sdkdependencies-double-json-encoded
branch
August 24, 2026 23:00
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
test_force.js's--sdkdependenciesvalue is already a JSON string (passed straight throughfrom the CLI arg). The code re-
JSON.stringify'd it before forwarding toforcereact/forceios,double-encoding the value and corrupting its quoting.
createHelper.js'soverrideSdkDependencies()then silently failed
JSON.parse()on the corrupted string and no-op'd — so--sdkdependencieshas been non-functional for every caller of
test_force.js, not just this repro.Fix: pass the already-JSON-string value through as-is instead of re-stringifying it.
Test plan
test_force.jswith--sdkdependenciespointed at a fork+branch override during the2026-08-22 integration re-test; generated app's
package.jsoncorrectly reflected theoverride (previously silently ignored)
overrideSdkDependencies()now successfully parses the passed-through valueThis response was generated by an AI agent on behalf of @JohnsonEricAtSalesforce.