You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been considering making directory sources do a copy instead of making a symlink. That fixes this and a few other things. It'll make builds a little slower and take more disk space, but I think it's the right thing to do.
It would be pretty trivial to maintain a copy using rsync. The only real problem is determining a portable way to determine how to make those contents cacheable. I might suggest something like storing a manifest of individual file hashes. By using the --itemize-changes flag for rsync, it appears it would be pretty easy to rehash updated files.
Essentially, the configuration hash for a directory source would be a hash of the configuration + a hash of all of the file contents in the directory.
Currently, directory sources can't properly be cached due to build-affecting changes outside the needs configuration.
The text was updated successfully, but these errors were encountered: