Fix graph command

This commit is contained in:
Sleepy Monax 2024-02-29 16:48:36 +01:00
parent 3cb7a7ab80
commit f0d1664623
3 changed files with 10 additions and 16 deletions

View file

@ -47,15 +47,8 @@ if [ ! -f .cutekit/tools/ready ]; then
fi
source .cutekit/venv/bin/activate
echo "Downloading CuteKit..."
if [ ! -d .cutekit/tools/cutekit ]; then
git clone --depth 1 https://github.com/cute-engineering/cutekit .cutekit/tools/cutekit --branch "$CUTEKIT_VERSION"
else
echo "CuteKit already downloaded."
fi
echo "Installing Tools..."
$CUTEKIT_PYTHON -m pip install -e .cutekit/tools/cutekit
$CUTEKIT_PYTHON -m pip install "git+https://github.com/cute-engineering/cutekit@$CUTEKIT_VERSION"
echo "Installing plugins requirements..."
if [ -f "meta/plugins/requirements.txt" ]; then

View file

@ -624,11 +624,11 @@ class Registry(DataClassJsonMixin):
)
else:
victim.resolved[target.id].injected.append(c.id)
victim.resolved[target.id].required = (
utils.uniqPreserveOrder(
c.resolved[target.id].required
+ victim.resolved[target.id].required
)
victim.resolved[
target.id
].required = utils.uniqPreserveOrder(
c.resolved[target.id].required
+ victim.resolved[target.id].required
)
# Resolve tooling
@ -700,7 +700,7 @@ def view(
if scope is not None:
scopeInstance = registry.lookup(scope, Component)
for component in registry.iterEnabled(target):
for component in registry.iter(Component):
if not component.type == Kind.LIB and not showExe:
continue

View file

@ -56,5 +56,6 @@ class PluginsArgs:
def setup(args: PluginsArgs):
if not args.safemod:
loadAll()
if args.safemod:
return
loadAll()