average-vr-56795
06/05/2018, 4:21 PMaverage-vr-56795
06/05/2018, 4:22 PMaverage-vr-56795
06/05/2018, 4:59 PMsources
, we donât currently have a context
(and itâs a public API so I canât just add one - if these werenât public APIs, this would be much easier). We could do the snapshotting at the call-site, but thatâs what we did for cloc, and is what Iâm trying to stop doing with this work đwitty-crayon-22786
06/05/2018, 5:10 PMaverage-vr-56795
06/05/2018, 6:54 PMwitty-crayon-22786
06/05/2018, 6:59 PMaverage-vr-56795
06/05/2018, 8:53 PMwitty-crayon-22786
06/05/2018, 9:41 PMaverage-vr-56795
06/06/2018, 8:30 AMwitty-crayon-22786
06/06/2018, 5:07 PMwitty-crayon-22786
06/06/2018, 5:07 PMaloof-angle-91616
06/06/2018, 5:08 PMwitty-crayon-22786
06/06/2018, 5:08 PMwitty-crayon-22786
06/06/2018, 5:08 PMaloof-angle-91616
06/06/2018, 5:09 PMrough-minister-58256
06/06/2018, 5:21 PMwitty-crayon-22786
06/06/2018, 5:23 PMrough-minister-58256
06/06/2018, 5:24 PMaloof-angle-91616
06/06/2018, 5:24 PMrough-minister-58256
06/06/2018, 5:24 PMwitty-crayon-22786
06/06/2018, 5:25 PMrough-minister-58256
06/06/2018, 5:27 PM@rule
adaptor, but the no absolute paths throws a bit of a wrench into things for e.g. ~/.pantsrc. may need to regroup.rough-minister-58256
06/06/2018, 5:33 PMrough-minister-58256
06/06/2018, 5:33 PMaloof-angle-91616
06/06/2018, 5:33 PMFilesContent
is read from a Snapshot
, and if you try to convert a PathGlobs
pointing outside the build root into a Snapshot
, we throw an error. with no further context, to me it seems that if there's an obvious way to represent file paths that originate outside the host build root in a way that we can store and e.g. pass to a remote process, we could remove that restriction. one way to do that might be to convert paths outside the build root into a new subdirectory of .pants.d
when storing them -- then, reifying the files would just insert them into that subdirectory, as if they were there in the first place. the unknown on that is what that path conversion process entails (mangling?)aloof-angle-91616
06/06/2018, 5:35 PMrough-minister-58256
06/06/2018, 5:39 PMrough-minister-58256
06/06/2018, 5:40 PMFilesContent
would also make sense that could directly read files from disk in this case as dead simple engine-handled-I/O?witty-crayon-22786
06/06/2018, 5:41 PMrough-minister-58256
06/06/2018, 5:41 PM