Closed abom closed 4 years ago
PR at: https://github.com/threefoldtech/jumpscaleX_core/pull/811
adding a package and package.toml doesn't exist: will not add the package and raises an exception
Existing package and package.toml is missing will remove the package and raise an exception
If the toml file is invalid will remove the package and raise an exception
When installing a package with a wrong path via
package_manager
actor orj.tools.threebot_packages
or even from the dashboard, we cannot deal with it later, because it checks for thepackage.toml
in_init
method.This need to be refactored, factory should have something like
from_toml
or so, instead of checking for thepackage.toml
file after getting an instance.Even when trying to delete it: