Expand description
The directory that the reads of a project may reach. The owner rule of the read scope base.
The read scope base of a project (fallow_config::project_scope_base) can
be a directory above the analysis root, such as the Git work tree of a
package root. A directory above the root widens the scope only when other
users cannot write to it and one of these users owns it:
- the current user (the effective uid), or
- the user that owns the analysis root.
So a CI job that runs as root on a checkout of another user still reads
the shared configs of that checkout. A /tmp/.git entry, or a workspace
manifest in a shared directory, does not widen the scope of a project
below it, because a different user owns it or all users can write to it.
On Windows the rule compares owner SIDs: a directory above the root widens
the scope only when its owner is the user of the current process or the
owner of the analysis root. So a .git entry in C:\Users\Public does not
widen the scope of a project below it. The Windows rule has no check of
the write access of other users, because the default ACLs of a user folder
often grant that access and the check would drop the monorepo scope for
most Windows users.
Functionsยง
- may_
widen_ scope - True when the directory
dirabove the analysis rootrootmay widen the read scope: other users cannot write todir, and the current user or the owner ofrootownsdir. A metadata error counts as false. On Windows the rule does not apply, and the result is true.