Giter Site home page Giter Site logo

Comments (9)

Jaryt avatar Jaryt commented on July 25, 2024 3

@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.

Jaryt avatar Jaryt commented on July 25, 2024 2

Thanks! Will take a look into this and get back to you shortly 👍

from node-orb.

Jaryt avatar Jaryt commented on July 25, 2024 1

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.

Jaryt avatar Jaryt commented on July 25, 2024 1

Confirmed fixed 😄
image
Will be in next fix release!

from node-orb.

techpeace avatar techpeace commented on July 25, 2024

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.

Jaryt avatar Jaryt commented on July 25, 2024

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.

gggritso avatar gggritso commented on July 25, 2024

@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.

gggritso avatar gggritso commented on July 25, 2024

@Jaryt that's great, thank you!

from node-orb.

gggritso avatar gggritso commented on July 25, 2024

@Jaryt thank you very much for fixing this!

from node-orb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.