OpenAPITools / OpenAPITools/openapi-generator-cli
Consider moving downloaded jar cache directory outside of the package directory
@kay-schecker is already working on this.
Since Oct 6, 2022.
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 208
- Avg merge
- 7h 12m
- Merged PRs (30d)
- 6
Description
🐛 Bug Report:
Describe the bug
Due to storing the downloaded jar inside <package>/versions, they will get wiped out whenever openapi-generator-cli gets reinstalled, this can cause a lot of unnecessary slow redownloads of the jar and quite a bit of unnecessary load on the downloads server.
Steps to Reproduce
Steps to reproduce the behavior:
- Run
openapi-generator-cli - Make some dependencies change which will cause the package to be reinstalled. (Depends on packaging tool, yarn 1.x seems to do so for every change)
- The jars in
<pacakage>/versionswill be wiped out.
Expected behavior
The jars to remain, so they only have to ever be downloaded once per host.
Screenshots
If applicable, add screenshots to help explain your problem.
Operation System (please complete the following information):
- OS: macOS
- Version 12.6
Package System (please complete the following information):
- Yarn Version 1.22.19
Additional context
There are standard paths for caching such files. Be it a folder under the npm-cache or ${XDG_CACHE_HOME:-$HOME/.cache}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.