OpenAPITools / OpenAPITools/openapi-generator-cli

Consider moving downloaded jar cache directory outside of the package directory

Đang mở
#666 2 bình luận 1 reaction 1 người được giao Xem trên GitHub

@kay-schecker đang làm issue này rồi.

Từ ngày 6/10/2022.

bug
Ngôn ngữ chính
TypeScript
Star
2k
Fork
208
Merge trung bình
7 giờ 12 phút
Pull request đã merge (30 ngày)
6

Mô tả

🐛 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:

  1. Run openapi-generator-cli
  2. 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)
  3. The jars in <pacakage>/versions will 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}

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.