Skip to content

Match chalk dependency version on kibana with the one used on x-pack - #20621

Merged
mistic merged 3 commits into
elastic:masterfrom
mistic:match-dependencies-between-xpack-master
Jul 12, 2018
Merged

mistic merged 3 commits into
elastic:masterfrom
mistic:match-dependencies-between-xpack-master

Conversation

@mistic

@mistic mistic commented Jul 10, 2018 •

Copy link
Copy Markdown
Contributor

This is a simple PR that matches the chalk dependency version with the one used by x-pack (version ^2.4.1). It also bumps the chalk version to ^2.4.1 in the following dependencies and update the lockfile when applied:

  • kibana
  • xpack
  • packages/kbn-dev-utils
  • packages/kbn-es
  • packages/kbn-i18n
  • packages/kbn-plugin-generator
  • packages/kbn-pm
  • packages/kbn-test
  • packages/kbn-ui-framework

A pretty close thing was done to 6.x in the following PR: #20629

Comment thread package.json Outdated
"bunyan": "1.7.1",
"cache-loader": "1.0.3",
"chalk": "2.3.0",
"chalk": "^2.3.2",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thoughts on ^2.4.1? i don't have a preference but thought i'd note it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@jbudz looking at the changelog it seems okay to go with ^2.4.1 😃

@elastic elastic deleted a comment from elasticmachine Jul 10, 2018
@mistic

mistic commented Jul 10, 2018

Copy link
Copy Markdown
Contributor Author

@jbudz @tylersmalley I've updated the PR to bump the version of chalk to ^2.4.1 and also updating the package.json and lockfiles of the following packages:

  • kibana
  • xpack
  • packages/kbn-dev-utils
  • packages/kbn-es
  • packages/kbn-i18n
  • packages/kbn-plugin-generator
  • packages/kbn-pm
  • packages/kbn-test
  • packages/kbn-ui-framework

Are you okay with that? In case you are, I will do the same for 6.x and 6.3.

@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@tylersmalley

Copy link
Copy Markdown
Member

Jenkins, retest

@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@tylersmalley tylersmalley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks like this is consistently failing for yarn es snapshot - mind taking a look at that?

$ node scripts/es snapshot
C:\elastic\kibana\packages\kbn-es\node_modules\chalk\index.js:72
ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g');
                                                                          ^

TypeError: Cannot read property 'close' of undefined
    at Object.<anonymous> (C:\elastic\kibana\packages\kbn-es\node_modules\chalk\index.js:72:75)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\elastic\kibana\packages\kbn-es\src\cli.js:20:15)
    at Module._compile (module.js:652:30)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@tylersmalley tylersmalley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Error was due to external branch - LGTM

@mistic
mistic merged commit b142f80 into elastic:master Jul 12, 2018
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
…lastic#20621)

* chore(NA): match chalk dependency version on kibana with x-pack to ^2.3.2.

* chore(NA): bump chalk version dependencies and update lock files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants