capturing/monitoring files from absolute paths? #17952
Replies: 3 comments 4 replies
-
Thanks for looking into this! Never a dull moment in Go. ccing @thejcannon who recently did a bunch of work on sources from URLs. I wonder if we can leverage that somehow. Those required manually specifying a SHA, which would be onerous here, but maybe we can figure something out for local URLs. |
Beta Was this translation helpful? Give feedback.
-
I'm guessing this is a whole directory's worth of files, whose names are not known in advance? |
Beta Was this translation helpful? Give feedback.
-
#10842 covers capturing snapshots from absolute paths. A little bit of work (see the |
Beta Was this translation helpful? Give feedback.
-
Go 1.20 will no longer ship with precompiled package archives for the standard library. See #17950. This means Pants will need to compile the Go standard library from source from filesystem paths.
Even if the Go backend compiles the stdlib from the sources in the filesystem (versus capturing to a digest), the Go backend will at least still need to monitor those paths for changes so it can properly invalidate cached results. (An alternative would be to capture Go stdlib sources to the Pants cache and compile "normally".)
Beta Was this translation helpful? Give feedback.
All reactions