#[non_exhaustive]pub enum ResolveProblem {
Show 15 variants
ResolveFailed {
spec: String,
base_dir: String,
err: Error,
},
TargetNotRegularFile {
target: String,
},
TargetIsRootFile {
spec: String,
},
ParentIdNotAbsoluteCanonical {
parent_id: String,
},
ParentResolveFailed {
parent_id: String,
from_name: String,
err: Error,
},
ParentNotRegularFile {
parent: String,
},
ParentHasNoDirectory {
parent: String,
},
ResolvesOutsideRoot {
spec: String,
root: String,
},
TraversesSymlink {
spec: String,
},
AbsolutePathNotAllowed {
spec: String,
},
EmptyPath,
InvalidExtension {
spec: String,
},
HiddenFile {
spec: String,
},
EmptyFragment,
FragmentContainsHash {
spec: String,
},
}Expand description
Specific problems encountered during file include resolution.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ResolveFailed
Failed to canonicalize the include target path.
TargetNotRegularFile
The include target is not a regular file.
TargetIsRootFile
The include target resolves to the configured root file itself (cyclic include).
ParentIdNotAbsoluteCanonical
The parent include id was not an absolute canonical path.
ParentResolveFailed
Failed to resolve the parent include source.
ParentNotRegularFile
The parent include is not a regular file.
ParentHasNoDirectory
The parent include does not have a parent directory.
ResolvesOutsideRoot
The include resolves outside the configured root directory.
TraversesSymlink
The include traverses a symlink, which is disabled by policy.
AbsolutePathNotAllowed
Absolute include paths are not allowed.
EmptyPath
The include path is empty.
InvalidExtension
The include target does not have a valid YAML extension (.yml or .yaml).
HiddenFile
The include target is a hidden file (starts with a dot).
EmptyFragment
The include fragment is empty.
FragmentContainsHash
The include fragment contains a ‘#’ character.