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

Workaround for yarn interdependency conflicts #20805

Merged
merged 2 commits into from
Jul 16, 2018

Conversation

tylersmalley
Copy link
Contributor

@tylersmalley tylersmalley commented Jul 14, 2018

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
  • install dependencies in kbn-es and x-pack: yarn; cd ../../x-pack; yarn; cd ../packages/kbn-es

Move to master:

  • git checkout master
  • update kbn-es: 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

@tylersmalley tylersmalley requested a review from spalger July 14, 2018 05:44
@@ -10,6 +10,8 @@
"dedent": "^0.7.0",
"elasticsearch": "^14.1.0",
"execa": "^0.10.0",
"getopts": "^2.0.6",
Copy link
Contributor

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

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Tyler Smalley added 2 commits July 14, 2018 18:39
@elastic elastic deleted a comment from elasticmachine Jul 15, 2018
@elastic elastic deleted a comment from elasticmachine Jul 15, 2018
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@tylersmalley tylersmalley merged commit 46bacc6 into elastic:master Jul 16, 2018
tylersmalley added a commit to tylersmalley/kibana that referenced this pull request Jul 16, 2018
tylersmalley added a commit that referenced this pull request Jul 16, 2018
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Operations Team label for Operations Team v6.4.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"yarn es snapshot" fails on Windows 7
3 participants