memo33 / sc4pac-tools

Package manager for SC4
https://memo33.github.io/sc4pac/
GNU General Public License v3.0
9 stars 1 forks source link

Download of JSON is cancelled when CLI prompt is displayed #5

Open memo33 opened 1 month ago

memo33 commented 1 month ago

When a prompt for selecting a variant is displayed, in some circumstances downloads of JSON metadata files are consistently cancelled. This leads to warnings being printed and messing up the prompt display.

However, this is harmless, as the downloads succeed once a variant is selected.

  > Downloading https://memo33.github.io/sc4pac/channel/metadata/simmaster07/sc4fix/1.0.7/pkg.json
  > Downloading https://memo33.github.io/sc4pac/channel/metadata/memo/region-thumbnail-fix-dll/1.0.0/pkg.json
Choose a variant for sc4c:terrain-texture-selector:

  (1) sc4c.terrain-texture.provider = maxis
  (2) sc4c.terrain-texture.provider = cycledogg
  (3) sc4c.terrain-texture.provider = lowkee33
  (4) sc4c.terrain-texture.provider = vip

Enter a number [1-4]: Warning: Download was canceled, so partially downloaded file is incomplete: /home/memo/.cache/sc4pac/coursier/https/memo33.github.io/sc4pac/channel/metadata/memo/region-thumbnail-fix-dll/1.0.0/.pkg.json.part
Warning: Download was canceled, so partially downloaded file is incomplete: /home/memo/.cache/sc4pac/coursier/https/memo33.github.io/sc4pac/channel/metadata/simmaster07/sc4fix/1.0.7/.pkg.json.part
    Download of https://memo33.github.io/sc4pac/channel/metadata/simmaster07/sc4fix/1.0.7/pkg.json unsuccessful
    Download of https://memo33.github.io/sc4pac/channel/metadata/memo/region-thumbnail-fix-dll/1.0.0/pkg.json unsuccessful
  > Downloading https://memo33.github.io/sc4pac/channel/metadata/memo/transparent-texture-fix-dll/1.0.0/pkg.json
Warning: Download was canceled, so partially downloaded file is incomplete: /home/memo/.cache/sc4pac/coursier/https/memo33.github.io/sc4pac/channel/metadata/memo/transparent-texture-fix-dll/1.0.0/.pkg.json.part
    Download of https://memo33.github.io/sc4pac/channel/metadata/memo/transparent-texture-fix-dll/1.0.0/pkg.json unsuccessful

Enter a number [1-4]: 4