Skip to content

CB-14243: change dash to underscore for save-exact key reference - #631

Merged
brody2consult merged 1 commit into
apache:masterfrom
amaldonado:CB-14243
Aug 3, 2018
Merged

CB-14243: change dash to underscore for save-exact key reference#631
brody2consult merged 1 commit into
apache:masterfrom
amaldonado:CB-14243

Conversation

@amaldonado

@amaldonado amaldonado commented Aug 1, 2018

Copy link
Copy Markdown

Platforms affected

This affects how plugins are added for both Android and IOS.

What does this PR do?

This PR fixes CB-14243. Cordova-lib is ignoring save-exact b/c the wrong key name is being used to reference it in the options object that is propagated from cli.js.

What testing has been done on this change?

Unit tests have been run and are passing.

Checklist

✅Reported an issue in the JIRA database
✅Commit message follows the format: "CB-14243: {message}"
✅ Unit Tests pass

@brody2consult

brody2consult commented Aug 3, 2018

Copy link
Copy Markdown

Thanks @amaldonado for the contribution, merged it since it definitely looks right to me. A couple points of feedback:

I think it could have been done a little bit better, raised #632 with the suggestion.

This behavior is evidently not covered by the unit test suite, marking this as a major TODO item in #632.

P.S. If I would do npm i apache/cordova-lib#master in local checkout of cordova-cli then use that version to add a plugin with --save-exact flag it does save the exact plugin version in package.json & config.xml.

@brody2consult brody2consult mentioned this pull request Aug 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants