rough-minister-58256
05/21/2018, 10:15 PMwitty-crayon-22786
05/21/2018, 10:16 PMwitty-crayon-22786
05/21/2018, 10:16 PMwitty-crayon-22786
05/21/2018, 10:17 PMrough-minister-58256
05/21/2018, 10:17 PMwitty-crayon-22786
05/21/2018, 10:17 PM<http://lib.rs|lib.rs>
and <http://externs.rs|externs.rs>
for interfacing with python)witty-crayon-22786
05/21/2018, 10:17 PMrough-minister-58256
05/21/2018, 10:17 PMwitty-crayon-22786
05/21/2018, 10:18 PMwitty-crayon-22786
05/21/2018, 10:19 PMget_stdout_raw().len()
, for examplewitty-crayon-22786
05/21/2018, 10:19 PMrough-minister-58256
05/21/2018, 10:20 PMbytes::Bytes
?witty-crayon-22786
05/21/2018, 10:20 PMwitty-crayon-22786
05/21/2018, 10:20 PMrough-minister-58256
05/21/2018, 10:20 PMrough-minister-58256
05/21/2018, 10:21 PM::bytes::Bytes::borrow
?witty-crayon-22786
05/21/2018, 10:22 PMrough-minister-58256
05/21/2018, 10:22 PMwitty-crayon-22786
05/21/2018, 10:22 PMfn from
, and then keep skipping until you see one that is the right shaperough-minister-58256
05/21/2018, 10:22 PMaloof-angle-91616
05/21/2018, 10:57 PMglobs()
) => (PathGlobs
) => (an error which the hydrate_sources()
method can catch and interpret).
(1) is there a reason a PathGlob
needs to expand to only a set of `PathStat`s or only a set of `PathGlob`s? because i'm thinking if that's relaxed (so a DirWildcard
can then expand into `PathStat`s and `PathGlob`s instead of having to go through a Wildcard
first) then we can go 1:1 String -> PathGlob
instead of having the spread_filespecs()
stuff. the answer is almost definitely no i think
(2) how do i / can i catch a Throw
from a Get
within an @rule
? i'm assuming that's how the failure to expand a glob would propagate back to the python sidealoof-angle-91616
05/21/2018, 11:02 PMparse_globs()
just return a single DirWildcard
, which would then have a potentially non-empty path_stats
field in the return value for expand_single()
instead of having to have a wildcard spawned as wellwitty-crayon-22786
05/21/2018, 11:08 PM"is there a reason ano... it can expand to both. some of the architecture is there because we used to memoize individual glob expansions.needs to expand to only a set of `PathStat`s or only a set of `PathGlob`s"PathGlob
witty-crayon-22786
05/21/2018, 11:08 PMhow do i / can i catch ayou don't: error handling is explicitly not supported.from aThrow
within anGet
? i'm assuming that's how the failure to expand a glob would propagate back to the python side@rule
aloof-angle-91616
05/21/2018, 11:08 PMSnapshotWithMatchData
intrinsic probably?witty-crayon-22786
05/21/2018, 11:09 PMaloof-angle-91616
05/21/2018, 11:09 PMwitty-crayon-22786
05/21/2018, 11:09 PMwitty-crayon-22786
05/21/2018, 11:09 PMaloof-angle-91616
05/21/2018, 11:10 PM