https://pantsbuild.org/ logo
#development
Title
# development
a

aloof-angle-91616

01/22/2019, 4:28 AM
i also don't know how to cache the result of a process execution (e.g. a generated image) in a persistent way. since this already involves pulling in
PathGlobsAndRoot
to
hackily_snapshot()
the graal
NativeTool
(which still can't be done from an
@console_rule
because it requires a
context._scheduler
) i feel like an "inverse" (ish) which writes a specific file or directory to a specified subdir of
get_pants_cachedir()
and then checks if it exists on successive runs could also be a fantastic and easy and fun way to bridge v1 and v2 tasks. i just thought of this and i think it's a great idea that will make all of this a very small amount of code. looking into that now
get_pants_cachedir()
is one value of an independent variable
a

average-vr-56795

01/22/2019, 6:33 PM
a

aloof-angle-91616

01/22/2019, 6:34 PM
you mentioned this to me before!!!! thank you
i believe the answer is 100% yes from a cursory glance
this is just great, i will look into this tonight
a

average-vr-56795

01/22/2019, 6:36 PM
FWIW that ticket is less than a day’s work 🙂
(Assuming you know rust, which you do)
a

aloof-angle-91616

01/22/2019, 6:37 PM
i fought the borrow checker bitterly and relentlessly while in bed for two months while working on glob matching after that i became unstoppable