Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

analyzer: Remove peerDependencies from NPM / Yarn test assets #4665

Merged
merged 1 commit into from
Nov 5, 2021

Conversation

sschuberth
Copy link
Member

@sschuberth sschuberth commented Nov 4, 2021

ORT does not support peerDependencies yet 1. That is mostly because
handling of peer dependencies varies with NPM versions: Some versions do
install them by default, some do not 2. This results in ORT's functional
tests to fail depending on the NPM version, and as it turns out, they
would fail with the NPM version 7 currently used in ORT's Dockerfile.
However, tests succeed on Azure CI which uses NPM 6. Avoid that
inconsistency by simply not using peer dependencies at all for testing for
now.

Signed-off-by: Sebastian Schuberth [email protected]

@sschuberth sschuberth changed the title No peer deps analyzer: Remove peerDependencies from NPM / Yarn test assets Nov 4, 2021
@sschuberth sschuberth marked this pull request as ready for review November 4, 2021 15:01
@sschuberth sschuberth requested a review from a team as a code owner November 4, 2021 15:01
ORT does not support `peerDependencies` yet [1]. That is mostly because
handling of peer dependencies varies with NPM versions: Some versions do
install them by default, some do not [2]. This results in ORT's functional
tests to fail depending on the NPM version, and as it turns out, they
would fail with the NPM version 7 currently used in ORT's `Dockerfile`.
However, tests succeed on Azure CI which uses NPM 6. Avoid that
inconsistency by simply not using peer dependencies at all for testing for
now.

[1]: #95
[2]: https://nodejs.org/en/blog/npm/peer-dependencies#using-peer-dependencies

Signed-off-by: Sebastian Schuberth <[email protected]>
@sschuberth sschuberth merged commit ab292d9 into master Nov 5, 2021
@sschuberth sschuberth deleted the no-peer-deps branch November 5, 2021 14:45
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