aws-amplify / aws-amplify/amplify-cli

resource overrides with yarn3/yarn2

Open
#13,180 0 comments 0 reactions 0 assignees View on GitHub
bug override p2
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### How did you install the Amplify CLI?

_No response_

### If applicable, what version of Node.js are you using?

_No response_

### Amplify CLI Version

12.4.0

### What operating system are you using?

macos

### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

no

### Describe the bug

When we have yarn3 installed locally, then try to add override to a category the CLI fails similar to https://github.com/aws-amplify/amplify-cli/issues/13178.

But adding `--debug` to the override command when failing causes the override file to get created.
![image](https://github.com/aws-amplify/amplify-cli/assets/87995712/3050c520-2cc5-490c-a0c1-2fc9d36a4502)

similar behaviour with yarn2
![image](https://github.com/aws-amplify/amplify-cli/assets/87995712/3c4ff684-d9ce-4c19-b390-180d5acd7324)

### Expected behavior

consistent behavior

### Reproduction steps

1. yarn set version stable
2. yarn install
3. amplify api override -> observe error
4. amplify api override -> no error

### Project Identifier

_No response_

### Log output

```
# Put your logs below this line

```

### Additional information

_No response_

### Before submitting, please confirm:

- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.