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: cross-drive linking support for amplify-dev #6951

Merged
merged 2 commits into from
Mar 25, 2021

Conversation

PawanKolhe
Copy link
Contributor

Description of changes

Using the pnpm/cmd-shim library instead of npm/cmd-shim would fix the cross-drive linking issue for amplify-dev on Windows. A PR on pnpm/cmd-shim fixed the issue whereas it's still not fixed on npm/cmd-shim.

This PR adds the pnpm/cmd-shim library and updates the imports in scripts/link-bin.js

Issue #, if available

fixes #6950

Description of how you validated changes

I checked the file at C:\Users\Pawan\AppData\Local\Yarn\bin\amplify-dev.ps1 for proper linking and verified that the amplify-dev command is properly running in sample projects.

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

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

@PawanKolhe PawanKolhe requested a review from a team as a code owner March 23, 2021 09:36
@codecov
Copy link

codecov bot commented Mar 23, 2021

Codecov Report

Merging #6951 (753f707) into master (99cb013) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6951   +/-   ##
=======================================
  Coverage   56.41%   56.41%           
=======================================
  Files         445      445           
  Lines       21764    21764           
  Branches     4354     4354           
=======================================
  Hits        12278    12278           
  Misses       8671     8671           
  Partials      815      815           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99cb013...753f707. Read the comment docs.

package.json Outdated
@@ -86,6 +86,7 @@
"@typescript-eslint/parser": "^4.14.2",
"babel-loader": "^8.1.0",
"babel-eslint": "^10.1.0",
"@zkochan/cmd-shim": "^5.1.0",
"cmd-shim": "^3.0.3",
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you remove this from package.json and yarn.lock.

@@ -86,6 +86,7 @@
"@typescript-eslint/parser": "^4.14.2",
"babel-loader": "^8.1.0",
"babel-eslint": "^10.1.0",
"@zkochan/cmd-shim": "^5.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you add this entry by hand? It's not sorted.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did move its order around. The latest commit should sort everything properly.

@cjihrig cjihrig self-assigned this Mar 24, 2021
@PawanKolhe PawanKolhe requested a review from cjihrig March 25, 2021 06:13
@cjihrig
Copy link
Contributor

cjihrig commented Mar 25, 2021

It looks like there are conflicts. Can you please rebase this.

@yuth yuth merged commit 07fcf45 into aws-amplify:master Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support cross-drive linking for amplify-dev on windows
3 participants