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

fix(cli): breaks due to faulty version of colors #18324

Merged
merged 2 commits into from Jan 9, 2022
Merged

fix(cli): breaks due to faulty version of colors #18324

merged 2 commits into from Jan 9, 2022

Conversation

SheaBelsky
Copy link
Contributor

@SheaBelsky SheaBelsky commented Jan 8, 2022

Fixes #18322 and #18323

Clarifying question: I'm not sure if the yarn.lock file should have automatically updated itself to only refer to colors@1.4.0 when I set the dependency within the workspace and added the resolution for child dependencies. If it's expected behavior for it not to update the yarn.lock file after adding resolutions, great! If I need to do something else for that to happen, let me know!


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Jan 8, 2022

@github-actions github-actions bot added the @aws-cdk/aws-workspaces Related Amazon WorkSpaces label Jan 8, 2022
@SheaBelsky SheaBelsky changed the title Pin colors dependency across the workspace (bug): Pin colors dependency across the workspace Jan 8, 2022
@SheaBelsky SheaBelsky changed the title (bug): Pin colors dependency across the workspace (fix): Pin colors dependency across the workspace Jan 8, 2022
@mergify
Copy link
Contributor

mergify bot commented Jan 8, 2022

Title does not follow the guidelines of Conventional Commits. Please adjust title before merge.

@SheaBelsky SheaBelsky changed the title (fix): Pin colors dependency across the workspace fix: Pin colors dependency across the workspace Jan 8, 2022
@DanielRuf
Copy link

Keep in mind that lockfiles might not workwhen packages are globally installed.

@DanielRuf
Copy link

DanielRuf commented Jan 8, 2022

that locks down the version for all deeply nested dependencies: https://classic.yarnpkg.com/lang/en/docs/selective-version-resolutions/

npm users might need also https://www.npmjs.com/package/npm-force-resolutions

@bodokaiser
Copy link

Adding

 "resolutions": { "colors": "1.4.0" }

to my package.json worked for me

@iliapolo iliapolo added pr-linter/exempt-readme The PR linter will not require README changes pr-linter/exempt-test The PR linter will not require test changes labels Jan 9, 2022
@iliapolo iliapolo changed the title fix: Pin colors dependency across the workspace fix: cli breaks due to faulty version of colors Jan 9, 2022
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Jan 9, 2022
@iliapolo iliapolo changed the title fix: cli breaks due to faulty version of colors fix(cli): breaks due to faulty version of colors Jan 9, 2022
Copy link
Contributor

@iliapolo iliapolo left a comment

Choose a reason for hiding this comment

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

@SheaBelsky Thanks for this!

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 02a2344
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Jan 9, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit ddc2bc6 into aws:master Jan 9, 2022
iliapolo pushed a commit that referenced this pull request Jan 9, 2022
Fixes #18322 and #18323

Clarifying question: I'm not sure if the `yarn.lock` file should have automatically updated itself to only refer to `colors@1.4.0` when I set the dependency within the workspace _and_ added the resolution for child dependencies. If it's expected behavior for it _not_ to update the `yarn.lock` file after adding `resolutions`, great! If I need to do something else for that to happen, let me know!

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
iliapolo pushed a commit that referenced this pull request Jan 9, 2022
Fixes #18322 and #18323

Clarifying question: I'm not sure if the `yarn.lock` file should have automatically updated itself to only refer to `colors@1.4.0` when I set the dependency within the workspace _and_ added the resolution for child dependencies. If it's expected behavior for it _not_ to update the `yarn.lock` file after adding `resolutions`, great! If I need to do something else for that to happen, let me know!

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
mergify bot pushed a commit that referenced this pull request Jan 9, 2022
Forward merging #18324 

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@blimmer blimmer mentioned this pull request Jan 9, 2022
2 tasks
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
Fixes aws#18322 and aws#18323

Clarifying question: I'm not sure if the `yarn.lock` file should have automatically updated itself to only refer to `colors@1.4.0` when I set the dependency within the workspace _and_ added the resolution for child dependencies. If it's expected behavior for it _not_ to update the `yarn.lock` file after adding `resolutions`, great! If I need to do something else for that to happen, let me know!

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-workspaces Related Amazon WorkSpaces package/tools Related to AWS CDK Tools or CLI pr-linter/exempt-readme The PR linter will not require README changes pr-linter/exempt-test The PR linter will not require test changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cdk-cli: cannot deploy due to colors dependency
8 participants