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: do not store windows specific package manager extension #13047

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

jhockett
Copy link
Contributor

@jhockett jhockett commented Aug 2, 2023

Description of changes

Remove the .cmd extension from yarn for Windows since it's not needed and causes issues with teams working across multiple OS's

Issue #, if available

#13043
#13001

Description of how you validated changes

https://us-east-1.console.aws.amazon.com/codesuite/codebuild/671107461633/projects/AmplifyCLI-E2E-Testing/batch/AmplifyCLI-E2E-Testing:1306a0c1-9604-4ed5-906c-96f456d5bf3a?region=us-east-1#

I'm relying on this test for verification.

Checklist

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

@codecov-commenter
Copy link

Codecov Report

Merging #13047 (3212a24) into dev (ec9a2ba) will increase coverage by 48.45%.
Report is 284 commits behind head on dev.
The diff coverage is 59.37%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@             Coverage Diff             @@
##              dev   #13047       +/-   ##
===========================================
+ Coverage    0.00%   48.45%   +48.45%     
===========================================
  Files        1296      842      -454     
  Lines      149743    38038   -111705     
  Branches     1296     7788     +6492     
===========================================
+ Hits            0    18432    +18432     
+ Misses     148447    18016   -130431     
- Partials     1296     1590      +294     
Files Changed Coverage Δ
...rmation/auth-stack-builder/auth-stack-transform.ts 91.30% <0.00%> (+91.30%) ⬆️
...tack-builder/auth-user-pool-group-stack-builder.ts 51.72% <ø> (+51.72%) ⬆️
...h-stack-builder/user-pool-group-stack-transform.ts 94.59% <0.00%> (+94.59%) ⬆️
.../src/provider-utils/awscloudformation/constants.ts 100.00% <ø> (+100.00%) ⬆️
...e-walkthrough-types/awsCognito-user-input-types.ts 100.00% <ø> (+100.00%) ⬆️
...vice-walkthrough-types/cognito-user-input-types.ts 100.00% <ø> (+100.00%) ⬆️
...y-category-function/src/commands/function/build.ts 0.00% <0.00%> (ø)
...ify-category-function/src/events/prePushHandler.ts 33.33% <0.00%> (+33.33%) ⬆️
...ider-utils/awscloudformation/utils/layerHelpers.ts 21.80% <0.00%> (+21.80%) ⬆️
...er-utils/awscloudformation/utils/storeResources.ts 30.38% <ø> (+30.38%) ⬆️
... and 58 more

... and 1243 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jhockett jhockett marked this pull request as ready for review August 2, 2023 16:27
@jhockett jhockett requested a review from a team as a code owner August 2, 2023 16:27
@@ -40,14 +40,14 @@ class NpmPackageManager implements PackageManager {
class YarnPackageManager implements PackageManager {
readonly packageManager: PackageManagerType = 'yarn';
readonly displayValue = 'Yarn';
readonly executable = isWindows ? 'yarn.cmd' : 'yarn';
readonly executable = 'yarn'; // Windows does not require `.cmd` extension to invoke yarn
Copy link
Contributor

@0618 0618 Aug 3, 2023

Choose a reason for hiding this comment

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

nit: do we need that comment at all? 😂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jhockett jhockett merged commit d29a075 into aws-amplify:dev Aug 3, 2023
@jhockett jhockett deleted the win-fn-fix branch August 3, 2023 17:54
@0618
Copy link
Contributor

0618 commented Aug 7, 2023

#13043

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.

4 participants