hundreds-father-404
04/21/2023, 6:42 PMpants check-env
goal to make sure that users have their filesystem set up properly.)
Would that be a useful utility to open source in system_binaries.py
? Similar to BinaryRequest
, but for filesystem pathshundreds-father-404
04/21/2023, 6:44 PMProcess
with ProcessCacheScope.PER_RESTART_SUCCESFUL
, similar to what we do for finding binaries
I am not using pathlib.Path.exists()
because its caching semantics aren't correct
I'm doing it by running a Bash script. But maybe this would be better as a Rust intrinsic?happy-kitchen-89482
04/21/2023, 6:45 PMcurved-television-6568
04/21/2023, 6:47 PMcurved-television-6568
04/21/2023, 6:48 PMcurved-television-6568
04/21/2023, 6:49 PMcurved-television-6568
04/21/2023, 6:50 PMhundreds-father-404
04/21/2023, 6:51 PMENV vars and aliases are also worth looking at for this purposeI'm thinking the API would look something like
CheckedAbsolutePathsRequest(["..files"], ["..dirs"])
. So, the plugin could get fancy and determine those file paths to check via reading env vars
I only want to add the basic plumbing / LEGO brickhundreds-father-404
04/21/2023, 6:52 PMcurved-television-6568
04/21/2023, 6:54 PMhundreds-father-404
04/21/2023, 7:33 PMGet(MissingAbsolutePaths, MissingAbsolutePathsRequest)
. Note that that is not digesting the files or anything.
So, it sounds like Andreas is a +1 to upstreaming? Benjy is not sure?curved-television-6568
04/21/2023, 7:42 PMproud-dentist-22844
04/21/2023, 9:21 PMenvironments
(the target, not env vars) need ways to define what counts as "compatible" beyond just the platform/architecture. Especially for local_environment
, it would be very beneficial to define paths that must exist to use that environment. This issue is about allowing environments to determine compatibility based on env vars, and I think paths is a natural extension of that.hundreds-father-404
04/21/2023, 10:05 PMMissingAbsolutePaths
(in 1.5 weeks, leaving for a trip soon)