Is there a way to insert the current directory as ...
# plugins
b
Is there a way to insert the current directory as an argument to a
Process
?
h
what's your specific use case?
b
Trying to hack around
rpm-ostree
wanting to be root all the time by using a container, but that means I need to put the working directory into the container as a volume.
h
@witty-crayon-22786 is there a mechanism I'm not aware of?
argv
interpolation?
b
In more general terms, a “run in container” thing would be kinda handy.
h
a “run in container” thing
Like this? https://github.com/pantsbuild/pants/issues/13682 That's why responses have been way slower than normal for Pants slack: a few of us are heads down sprinting on that ticket
w
is there a mechanism I’m not aware of?
argv
interpolation?
it is fairly new, but you should be able to include a literal
{chroot}
string in your args or environment to have it replaced with the location of the sandbox
👍 1
b
What version/rev of Pants would I need to have access to that?
w
2.13.0rc
i believe
b
@hundreds-father-404 Yeah, that looks promising.
❤️ 1
I mean even being able to say “run a container with this
Digest
mounted as volume `/wotsit`” would be pretty cool.
1