-
Notifications
You must be signed in to change notification settings - Fork 380
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
Docker image cypress/factory does not support Yarn 3 #882
Comments
We currently only support yarn v1 in the docker factory. I think we could update the install script to support higher versions of yarn. |
This would be awesome! And since we are talking about Yarn 3 support, figured I'd mention this other relevant issue here, since it most likely has to do with Cypress not finding Typescript in the This is my enableScripts: true
nodeLinker: node-modules
npmScopes:
updater:
npmAlwaysAuth: true
npmAuthToken: "${GH_REGISTRY_TOKEN}"
npmRegistryServer: "https://npm.pkg.github.com"
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
supportedArchitectures:
cpu:
- x64
- arm64
libc:
- glibc
os:
- darwin
- linux
yarnPath: .yarn/releases/yarn-3.5.0.cjs
edit (fixed)ignore this comment, it wasn't an issue with Yarn 3, I was just building and running my images incorrectly |
Hey seems like the curl install script of Yarn might not support Yarn 2.x and 3.x. |
@mjhenkes can I work on this? |
@anishpb97, Sure! (sorry for the delay) |
Yarn Modern recommends installing using The workaround you described to install Yarn Modern using Yarn v1 Classic is for the moment the way that Cypress Docker images can support with good conscience. This can change, if/when Yarn and Node.js are able to recommended References |
Current Behavior
Cypress factory fails to install Yarn 3.
Desired Behavior
We should be able to specify Yarn berry in the build args.
Test code to reproduce
Create a dockerfile like so
Workaround
Current workaround is to specify Yarn 1 in the build arg, but then add a run step to set the version to Yarn 3 like so:
The text was updated successfully, but these errors were encountered: