Skip to content

chore: jsii-rosetta cannot be found when building individual packages#16112

Merged
mergify[bot] merged 4 commits intoaws:v2-mainfrom
otaviomacedo:create-sym-links
Aug 19, 2021
Merged

chore: jsii-rosetta cannot be found when building individual packages#16112
mergify[bot] merged 4 commits intoaws:v2-mainfrom
otaviomacedo:create-sym-links

Conversation

@otaviomacedo
Copy link
Copy Markdown
Contributor

One of the steps of the build of experimental packages is to run yarn --silent jsii-rosetta extract for each package. Since yarn can't find the jsii-rosetta executable, the build fails. For some reason, running yarn bin jsii-rosetta at the individual-packages folder shows that yarn can find it at the root folder's node_modules, but running the same command inside each individual package result in "error Couldn't find a binary named "jsii-rosetta"".

This change adds a .bin symlink to each individual package's node_module pointing to the root folder's node_modules/.bin folder.

Fixes #15825


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
Copy Markdown

gitpod-io bot commented Aug 18, 2021

@otaviomacedo otaviomacedo requested a review from rix0rrr August 18, 2021 08:58
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Aug 18, 2021
@otaviomacedo otaviomacedo added the pr-linter/exempt-test The PR linter will not require test changes label Aug 18, 2021
@rix0rrr rix0rrr changed the title fix: jsii-rosetta cannot be found when building individual packages chore: jsii-rosetta cannot be found when building individual packages Aug 19, 2021
Copy link
Copy Markdown
Contributor

@rix0rrr rix0rrr left a comment

Choose a reason for hiding this comment

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

Thanks. I hate it.

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 19, 2021

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).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

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

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

@mergify mergify bot merged commit a8863d6 into aws:v2-main Aug 19, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 19, 2021

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution/core This is a PR that came from AWS. 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.

3 participants