OpenAPITools / OpenAPITools/openapi-generator-cli

Consider moving downloaded jar cache directory outside of the package directory

Offen
#666 2 Kommentare 1 Reaktion 1 zugewiesene Person Auf GitHub ansehen

@kay-schecker arbeitet bereits daran.

Seit 06.10.2022.

bug
Vorherrschende Sprache
TypeScript
Sterne
2k
Forks
208
Ø Merge
7 Std. 12 Min.
Gemergte PRs (30 T.)
6

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.