GitHub
05/13/2024, 9:44 AM"my pact.json", as a single parameter.
Actual behaviour
Since v14.3.5, CLIs now treat quoted parameters as individual parameters, e.g. "my pact.json" is treated as two parameters my pact.json.
Steps to reproduce
An easy way to reproduce the issue is to run a CLI from v14.3.5 or v14.3.6 using npx. e.g. npx --package=@pact-foundation/pact-core@14.3.5 -c 'pact-broker publish "my pact.json" --consumer-app-version 1'
The error output highlights that the filename (in bold) has been truncated at the space.
Specified pact file 'my' does not exist.Compared to running the same command with v14.3.4.
npx --package=@pact-foundation/pact-core@14.3.4 -c 'pact-broker publish "my pact.json" --consumer-app-version 1'
Specified pact file 'my pact.json' does not exist.pact-foundation/pact-js-core
GitHub
05/29/2024, 3:58 AM