Comments (9)
@gggritso I see! Thanks for that description of the issue. Seems like the way forward would be to automatically alias (todo: confirm that is what yarn is actually doing in the set-version script) to the yarn-path
included in either of the yarnrc files. Will work on getting this in this week 👍
from node-orb.
Thanks! Will take a look into this and get back to you shortly 👍
from node-orb.
Hi @gggritso Sorry for the delay here, had my hands full with some other tasks. I'm implementing the fix right now, and the solution actually quite simple. Since the yarn --version
command is being called while your project is the working directory, it's picking up the version from the yarn path locally. So, the only change necessary is to change the working directory to home so that it uses the yarn --version
from the actual yarn binary.
from node-orb.
Confirmed fixed 😄
Will be in next fix release!
from node-orb.
This was reported in the community forum, and I've also been running into it. A user there reported that they tracked it down to a certificate check.
from node-orb.
Hi! After looking into this further, I'm wondering if installing yarn here is redundant as it looks like the .yarn/releases
folder is allows yarn to be managed via source control. What behavior do you experience when you remove the install-yarn
parameter?
from node-orb.
@Jaryt I agree, it would be better to use the executable in .yarn/releases
, but there's no clean mechanism to do so! The behaviour we experience is that the yarn
command fails, because there isn't a yarn
command, and we use yarn
to run tasks like yarn test
.
We alias .yarn/releases/yarn-1.22.11.js
to yarn
to overcome this. It's fine, but a little gross because we have to either hard-code the Yarn version in our CircleCI config or we have to iterate through the contents of .yarn/releases
to find the file, and create an alias.
The first option is a little frustrating because we'd have to update the file any time we upgrade Yarn. The second version works better, but is a little messy. Mostly, it's just surprising that the installation fully fails if Yarn policies are used.
from node-orb.
@Jaryt that's great, thank you!
from node-orb.
@Jaryt thank you very much for fixing this!
from node-orb.
Related Issues (20)
- `node/test`: Add support to store code coverage
- Cache dependencies by workflow instead of job HOT 1
- Support pnpm HOT 2
- Change log
- "max-workers" as a parameter or a step to check the size of resource class
- Upgrade Yarn Install Command to Berry HOT 3
- Install Job Fails - Out of sync HOT 1
- Node has issues installing. HOT 1
- Prevent nvm from falling back to building from source HOT 2
- Inability to install requested NodeJS version does not break the build
- May need to be able to pass http session type to the curl commands HOT 1
- Support Bun
- Latest container no longer includes `node-gyp`
- Node fails to download HOT 2
- Change `install-packages` `include-branch-in-cache-key` default to `false` HOT 1
- Caching fails if no lockfile exists HOT 3
- Cache created but ignored by default HOT 2
- install-yarn fails stating sudo command not found
- In yarn-berrry, node_modules are not cached causing the native binaries to be rebuild every time
- install-yarn does not work on machine executors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-orb.