Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide better decoupling between the VFS and other parts of Buildbarn #149

Merged
merged 4 commits into from
Sep 19, 2024

Conversation

EdSchouten
Copy link
Member

This change adds a new VirtualApply() method that is similar to Directory.Apply(). Namely, it can be used to apply arbitrary operations against nodes, passing through the wrapped Directory/Leaf objects of HandleAllocator. This makes it possible to significantly trim down NativeLeaf. While there, we rename NativeLeaf to LinkableLeaf.

@EdSchouten EdSchouten force-pushed the eschouten/20240918-apply branch 2 times, most recently from a590c43 to bcd70b8 Compare September 18, 2024 20:05
EdSchouten and others added 2 commits September 18, 2024 22:25
This allows us to get rid of some local patches, as bazel_remote_apis
now works well for us right out of the box.

While there, switch from git_override() to single_version_override()
where possible. This no longer requires us to fill in explicit commit
hashes.
@EdSchouten EdSchouten force-pushed the eschouten/20240918-apply branch 2 times, most recently from 7347308 to 0250622 Compare September 18, 2024 20:46
These are all operations that are used outside of the VFS to extract
data out of leaf nodes. By implementing all of these operations through
VirtualApply(), we can keep the VFS API decoupled from the rest of
Buildbarn.
With all of the methods except Link() and Unlink() removed, the name
LinkableLeaf seems more fitting.
@EdSchouten EdSchouten merged commit bf32d18 into master Sep 19, 2024
1 check passed
@EdSchouten EdSchouten deleted the eschouten/20240918-apply branch September 19, 2024 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant