replit / upm

⠕ Universal Package Manager - Python, Node.js, Ruby, Emacs Lisp.
https://repl.it
Other
1.06k stars 90 forks source link

[bug] If packageDir does not exist, run Install #235

Closed blast-hardcheese closed 8 months ago

blast-hardcheese commented 8 months ago

Why

During testing, rm -rf .pythonlibs followed by a Run skips package install completely:

Turns out this is because we don't verify the package directory actually exists

~/2024-02-15-venv-test$ upm show-package-dir
/home/runner/2024-02-15-venv-test/.pythonlibs
~/2024-02-15-venv-test$ du -sh $(upm show-package-dir)
du: cannot access '/home/runner/2024-02-15-venv-test/.pythonlibs': No such file or directory

What changed

Test plan