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(rosetta): OOpsie -- couldn't find root file back on Windows #1842

Merged
merged 6 commits into from
Jul 31, 2020

Conversation

RomainMuller
Copy link
Contributor

The root file was located by comparing file paths in a way that was not
adjusting path separators for Windows, and the result was inability to
match normalized paths with Unix-style ones.

This normalizes paths before attempting to match them, so that the match
can succeed.


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

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jul 31, 2020
@RomainMuller RomainMuller added bug This issue is a bug. os/windows Related specifically to Windows behavior labels Jul 31, 2020
@RomainMuller RomainMuller self-assigned this Jul 31, 2020
@RomainMuller RomainMuller requested a review from a team July 31, 2020 13:00
The root file was located by comparing file paths in a way that was not
adjusting path separators for Windows, and the result was inability to
match normalized paths with Unix-style ones.

This uses the `typescript.Program.getSourceFile` method instead, which
locates the source file and handles the path matching correctly for us.
.github/workflows/main.yml Outdated Show resolved Hide resolved
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
  • Commit ID: 6c0a809
  • 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 Jul 31, 2020

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Jul 31, 2020
@mergify mergify bot merged commit 6ea8daa into master Jul 31, 2020
@mergify mergify bot deleted the rmuller/fix-windows branch July 31, 2020 14:00
@mergify
Copy link
Contributor

mergify bot commented Jul 31, 2020

Merging (with squash)...

@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. contribution/core This is a PR that came from AWS. os/windows Related specifically to Windows behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants