-
Notifications
You must be signed in to change notification settings - Fork 101
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
Feat: Adding option to specify the package manager version that you want #486
base: master
Are you sure you want to change the base?
Conversation
|
313a196
to
9a25dc8
Compare
Could this also support using |
The question of Bun support is a complex topic. The immediate answer to your question would be NO.
|
9a25dc8
to
7f9ebc5
Compare
e241bd6
to
352bca5
Compare
@jennifer-shehane I think this will also fix the failing pnpm test you mentioned here #485 (comment) but I created a specific PR just for that fix as well #492 |
Will you resolve the conflicts in this PR?
|
- Pnpm Example | ||
- Pnpm Version Example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pnpm Version Example
is not defined
Are you using the VSCode CircleCI extension to catch errors in your syntax?
post-install: "./check-yarn-version.sh 1.22.5 && npx cypress install" | ||
package-manager: "yarn" | ||
package-manager-version: "1.22.5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yarn 1.22.5
is not really a useful version anymore.
For Yarn Classic v1, it's probably better to use Yarn 1.22.22
name: Yarn Version Example | ||
working-directory: examples/yarn-install | ||
cypress-cache-key: cypress-cache{{ arch }}-{{ checksum "examples/yarn-install/package.json" }} | ||
post-install: "./check-yarn-version.sh 1.22.5 && npx cypress install" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you intend to support Yarn Modern Plug'n'Play then you can't use npx
. It has to be yarn
.
- node/install: | ||
install-yarn: true | ||
yarn-version: << parameters.package-manager-version >> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./src/commands/install.yml
83:11 warning wrong indentation: expected 8 but found 10 (indentation)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some comments and suggestions
- cypress/run: | ||
filters: *filters | ||
name: Pnpm Example | ||
working-directory: examples/pnpm-install | ||
cypress-cache-key: cypress-cache{{ arch }}-{{ checksum "examples/pnpm-install/package.json" }} | ||
post-install: "pnpm dlx cypress install" | ||
package-manager: "pnpm" | ||
- cypress/run: | ||
filters: *filters | ||
name: Pnpm Example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate name - should probably be
Pnpm Version Example
Would you like to give some feedback about whether you want to continue with this PR? It looks like the pnpm process is working now without needing to specify the pnpm version (it's just using the latest version by default). |
Both pnpm and Yarn allow settting the package manager using
|
This will make it possible to install a specific version of a package manager through the cypress orb