abathur / resholve

a shell resolver? :) (find and resolve shell script dependencies)
MIT License
231 stars 5 forks source link

handling commands that run other commands in a different path-space (different system, chroot, vm, etc.) #90

Open abathur opened 1 year ago

abathur commented 1 year ago

I think the main questions that help tease out whether these are on resholve's turf are:

  1. whether a given case has a safety/accuracy problem that's detectable from resholve's perspective
  2. whether there's a meaningful/productive way for resholve to intervene to improve the situation
abathur commented 1 year ago

One (potentially worst-case) example is an ssh invocation that would run commands on another system.

abathur commented 1 year ago

Another example is nixos-enter (brought up in https://github.com/abathur/resholve/issues/81#issuecomment-1366964535) which will run the commands in a chroot (potentially with or without a shell) on the same system. Despite being nixos-native, I suspect this case is actually very similar to the ssh case? If I'm understanding it, the chroot would contain the system packages (which could also change between invocations)?