-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Workaround for yarn interdependency conflicts #20805
Conversation
@@ -10,6 +10,8 @@ | |||
"dedent": "^0.7.0", | |||
"elasticsearch": "^14.1.0", | |||
"execa": "^0.10.0", | |||
"getopts": "^2.0.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend adding kbn-es
to the list of packages checked by eslint for dependencies: https://github.com/elastic/kibana/blob/master/.eslintrc.js#L93-L108
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Tyler Smalley <[email protected]>
Signed-off-by: Tyler Smalley <[email protected]>
d3f9d5a
to
54bde8c
Compare
💚 Build Succeeded |
Signed-off-by: Tyler Smalley <[email protected]>
Signed-off-by: Tyler Smalley <[email protected]>
💚 Build Succeeded |
Developers are running into issues when switching branches, usually resulting in needing to run
yarn kbn clean
to resolve. This is a really odd issue @spalger has reproduced https://github.com/spalger/reproduce-issues/tree/master/yarn-breaks-deps-of-linked-modules and is working on opening an issue for Yarn.Install dependencies on 6.x branch:
git checkout 6.x
yarn kbn clean
cd packages/kbn-es
yarn; cd ../../x-pack; yarn; cd ../packages/kbn-es
Move to master:
git checkout master
yarn
Check the kbn-es package and ansi-styles nested dependency
cat node_modules/ansi-styles/package.json
(note the version)yarn check
update x-pack:
cd ../../x-pack; yarn; cd ../packages/kbn-es
Re-check the kbn-es package and ansi-styles nested dependency
cat node_modules/ansi-styles/package.json
(note the version)yarn check
... weird, right?
Resolves: #20771