It should use the resolver for the os.Stat call. However, there's some added complexity here, as in my experience, not all users will mount the entirety of / at /hostfs, which means we'll need some kind of check where if hostfs.IsSet() && err == ENOENT then we print a special error message or something.
Right now,
avoidFileSystem()
infilesystem.go
doesn't really have any understanding of an alternate hostfs set via a resolver:It should use the resolver for the
os.Stat
call. However, there's some added complexity here, as in my experience, not all users will mount the entirety of/
at/hostfs
, which means we'll need some kind of check where ifhostfs.IsSet() && err == ENOENT
then we print a special error message or something.