Comments (7)
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.
@KyleTryon Worked like a charm! ✨
from node-orb.
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.
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.
@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 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.
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)
- Allow upgrade of resource_class for orb jobs HOT 1
- Include include-branch-in-cache-key in run and test jobs
- `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
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.