beacon-biosignals / julia_pod

k8s native julia development
MIT License
10 stars 3 forks source link

devspace v5 installation is broken #52

Open ssfrr opened 1 year ago

ssfrr commented 1 year ago

Sometime in 2022 github changed their URLs for releases, and the v5 devspace doesn't know about it, so it fails to download. (apparently devspace does another download/install the first time it's run after being installed with npm).

After installing with npm (but before running devspace) I had to edit ~/.local/lib/node_modules/devspace/index.js and change

const downloadPathTemplate =
    "https://github.com/loft-sh/devspace/releases/download/{{version}}/devspace-{{platform}}-{{arch}}";

to

const downloadPathTemplate =
    "https://github.com/loft-sh/devspace/releases/download/v{{version}}/devspace-{{platform}}-{{arch}}";

(note the added v proceeding {{version}}). Note that if you run devspace before making this change, it replaces the devspace executable script with a blank file.

Ideally we could use the latest devspace release, but in the interim I think this workaround is necessary. There might be a cleaner way to do it.

kleinschmidt commented 1 year ago

This is fixed on devspace v5 branch since september (commit and associated PR) but AFAIU without a NPM release it's still borken.