Giter Site home page Giter Site logo

Comments (7)

KyleTryon avatar KyleTryon commented on July 25, 2024 2

Hello all,

@cjcolvar Thank you! We have addressed the above in the following PR: #38

Please let us know if you run into any issues in the future.

Thanks again

from node-orb.

cjcolvar avatar cjcolvar commented on July 25, 2024 2

@KyleTryon Worked like a charm! ✨

from node-orb.

KyleTryon avatar KyleTryon commented on July 25, 2024

Hello @cjcolvar

Are you able to resolve the issue by specifying the custom yarn.lock file using the cache_key parameter?

We have to default to one of the values. We could override the choice on yarn, and force users to use a yarn.lock file, which might be fair, or maybe we create a separate yarn-cache-key parameter.

from node-orb.

KyleTryon avatar KyleTryon commented on July 25, 2024

example: https://github.com/CircleCI-Public/circleci-demo-ruby-rails/blob/master/.circleci/config.yml#L15

Or would maybe a better example showcasing this for yarn users be the best option?

from node-orb.

cjcolvar avatar cjcolvar commented on July 25, 2024

@KyleTryon Thanks for checking in on this.

I was hoping to be able to use the test job since my use case was very simple but ended up having to write my own job in order to explicitly set cache-key in the install-packages step (see avalonmediasystem/react-iiif-media-player@1867520). I just submitted a PR which exposes the cache-key to the job's configuration for this use case. It would be nice though if there was a way for the job to detect and use which ever lock file is default for the pkg-manager so a user doesn't even need to know about setting the additional parameter.

from node-orb.

KyleTryon avatar KyleTryon commented on July 25, 2024

@KyleTryon Thanks for checking in on this.

It would be nice though if there was a way for the job to detect and use which ever lock file is default for the pkg-manager so a user doesn't even need to know about setting the additional parameter.

I think we could do this but then it would not be overrideable. We would lock it down to package-lock.json and yarn.lock respectively.

I don't believe this should cause any problems but I wonder if for some reason folks may want that control.

from node-orb.

cjcolvar avatar cjcolvar commented on July 25, 2024

I don't believe this should cause any problems but I wonder if for some reason folks may want that control.

I don't know enough of the landscape to know if that is too unlikely a scenario to worry about or not. I think either approach is an improvement over current behavior though.

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.