aloof-angle-91616
09/24/2019, 11:35 PMred-balloon-89377
09/26/2019, 2:20 PM❯ tree src
src
└── <http://source.rs|source.rs>
Would turn into:
❯ tree src
src
└── source
├── <http://lib.rs|lib.rs>
└── <http://tests.rs|tests.rs>
average-vr-56795
09/26/2019, 2:41 PM@console_rule
using @union
- we’re keeping track of some areas that we got stuck or gave really bad errors, and will file a series of bugs - will link to them in this thread as we go:average-vr-56795
09/26/2019, 3:45 PMaloof-angle-91616
09/26/2019, 3:59 PM@dataclass
for engine params PR), and just rebased it after the mypy-type @rule
parameters change john merged yesterday, and there's consistently this one very confusing what-looks-like-a-flake-but-is-happening-reliably in CI -- will try to nail that down today but no promises until i get more time this weekendaverage-vr-56795
09/26/2019, 4:05 PMconsole_rule
named fmt
conflicts with the scope of the v1 goal named fmt
- we can’t work out how we fixed this for test
, which doesn’t appear to do any magic to avoid this… Anyone know/remember?average-vr-56795
09/26/2019, 5:28 PMhundreds-breakfast-49010
09/26/2019, 5:48 PMhundreds-breakfast-49010
09/26/2019, 9:07 PMhundreds-breakfast-49010
09/26/2019, 9:08 PM./pants test src/python/pants/fs:
hundreds-breakfast-49010
09/26/2019, 9:08 PMhundreds-breakfast-49010
09/26/2019, 9:08 PMhundreds-breakfast-49010
09/26/2019, 9:08 PMhundreds-breakfast-49010
09/26/2019, 10:50 PM@rule
, and this implies that we'd need an intrinsic and a pair of new types HttpRequest
and HttpResponse
, that would work sort of like the existing UrlToFetch
intrinsic, but more generalaloof-angle-91616
09/26/2019, 10:50 PMhundreds-breakfast-49010
09/26/2019, 10:51 PMUrlToFetch
is implemented is by creating a rust type DownloadedFile
, and having it implement WrappedNode
and then the get
method on WrappedNode
acutally makes the HTTP request and packages up the response into a Snapshot
aloof-angle-91616
09/26/2019, 10:52 PMhundreds-breakfast-49010
09/26/2019, 10:53 PMaloof-angle-91616
09/26/2019, 10:53 PM@rule
right now, in which you don't worry about what type of request is being made (it's just injected as the Snapshot
param, hiding arbitrary logic) and i think the rule graph allows you to avoid having to create massive abstractions upfront like http requestshundreds-breakfast-49010
09/26/2019, 10:53 PMaloof-angle-91616
09/26/2019, 10:53 PMhundreds-breakfast-49010
09/26/2019, 10:53 PMWrappedNode
aloof-angle-91616
09/26/2019, 10:54 PMaloof-angle-91616
09/26/2019, 10:54 PMaloof-angle-91616
09/26/2019, 10:54 PMaloof-angle-91616
09/26/2019, 10:54 PMaloof-angle-91616
09/26/2019, 10:54 PMhundreds-breakfast-49010
09/26/2019, 10:54 PMUrlToFetch
abstraction, just add an additional, more complex onealoof-angle-91616
09/26/2019, 10:54 PMaloof-angle-91616
09/26/2019, 10:54 PM