How can I let a plugin read a file outside the rep...
# general
h
How can I let a plugin read a file outside the repo?
Get
with
PathGlobs
raises an error about absolute paths
w
you’d have to mark the `@rule`’s return type
EngineAwareReturnType.cacheable = False
, and then break out of the sandbox by directly using Python file APIs.
https://github.com/pantsbuild/pants/issues/10842 tracks adding an actual API for it.
h
Sounds good. My plug-in extends the publish goal so caching isn’t really important.