Enum brane_cli::errors::BuildError
source · pub enum BuildError {
Show 54 variants
ContainerInfoOpenError {
file: PathBuf,
err: Error,
},
ContainerInfoParseError {
file: PathBuf,
err: ContainerInfoError,
},
PackageDirError {
err: UtilError,
},
OasDocumentParseError {
file: PathBuf,
err: Error,
},
VersionParseError {
err: ParseError,
},
PackageInfoFromOpenAPIError {
err: Error,
},
LockCreateError {
name: String,
err: Error,
},
DockerfileStrWriteError {
err: Error,
},
UnsafePath {
path: PathBuf,
},
MissingExecutable {
path: PathBuf,
},
DockerfileCreateError {
path: PathBuf,
err: Error,
},
DockerfileWriteError {
path: PathBuf,
err: Error,
},
ContainerDirCreateError {
path: PathBuf,
err: Error,
},
BraneletCanonicalizeError {
path: PathBuf,
err: Error,
},
BraneletCopyError {
source: PathBuf,
target: PathBuf,
err: Error,
},
WdClearError {
path: PathBuf,
err: Error,
},
WdCreateError {
path: PathBuf,
err: Error,
},
LocalContainerInfoCreateError {
err: LocalContainerInfoError,
},
WdSourceFileCanonicalizeError {
path: PathBuf,
err: Error,
},
WdTargetFileCanonicalizeError {
path: PathBuf,
err: Error,
},
WdDirCreateError {
path: PathBuf,
err: Error,
},
WdFileCopyError {
source: PathBuf,
target: PathBuf,
err: Error,
},
WdDirReadError {
path: PathBuf,
err: Error,
},
WdDirEntryError {
path: PathBuf,
err: Error,
},
WdFileRenameError {
source: PathBuf,
target: PathBuf,
err: Error,
},
WdFileCreateError {
path: PathBuf,
err: Error,
},
WdFileOpenError {
path: PathBuf,
err: Error,
},
WdFileReadError {
path: PathBuf,
err: Error,
},
WdFileWriteError {
path: PathBuf,
err: Error,
},
WdFileRemoveError {
path: PathBuf,
err: Error,
},
WdCompressionLaunchError {
command: String,
err: Error,
},
WdCompressionError {
command: String,
code: i32,
stdout: String,
stderr: String,
},
WdConfirmationError {
err: Error,
},
OpenAPISerializeError {
err: Error,
},
OpenAPIFileCreateError {
path: PathBuf,
err: Error,
},
OpenAPIFileWriteError {
path: PathBuf,
err: Error,
},
BuildKitLaunchError {
command: String,
err: Error,
},
BuildKitError {
command: String,
code: i32,
stdout: String,
stderr: String,
},
ImageBuildLaunchError {
command: String,
err: Error,
},
ImageBuildError {
command: String,
code: i32,
},
DigestError {
err: Error,
},
PackageFileCreateError {
err: PackageInfoError,
},
FileCleanupError {
path: PathBuf,
err: Error,
},
DirCleanupError {
path: PathBuf,
err: Error,
},
CleanupError {
path: PathBuf,
err: Error,
},
ImageTarOpenError {
path: PathBuf,
err: Error,
},
ImageTarEntriesError {
path: PathBuf,
err: Error,
},
ManifestParseError {
path: PathBuf,
err: Error,
},
ManifestNotOneEntry {
path: PathBuf,
n: usize,
},
ManifestInvalidConfigBlob {
path: PathBuf,
config: String,
},
NoManifest {
path: PathBuf,
},
DigestFileCreateError {
path: PathBuf,
err: Error,
},
DigestFileWriteError {
path: PathBuf,
err: Error,
},
HostArchError {
err: ArchError,
},
}
Expand description
Collects errors during the build subcommand
Variants§
ContainerInfoOpenError
Could not open the given container info file
ContainerInfoParseError
Could not read/open the given container info file
PackageDirError
Could not create/resolve the package directory
OasDocumentParseError
Could not read/open the given OAS document
VersionParseError
Could not parse the version in the given OAS document
Fields
err: ParseError
PackageInfoFromOpenAPIError
Could not properly convert the OpenAPI document into a PackageInfo
LockCreateError
Failed to create a LockFile.
DockerfileStrWriteError
Could not write to the DockerFile string.
UnsafePath
A given filepath escaped the working directory
MissingExecutable
The entrypoint executable referenced was not found
DockerfileCreateError
Could not create the Dockerfile in the build directory.
DockerfileWriteError
Could not write to the Dockerfile in the build directory.
ContainerDirCreateError
Could not create the container directory
BraneletCanonicalizeError
Could not resolve the custom branelet’s path
BraneletCopyError
Could not copy the branelet executable
WdClearError
Could not clear an existing working directory
WdCreateError
Could not create a new working directory
LocalContainerInfoCreateError
Could not write the LocalContainerInfo to the container directory.
Fields
WdSourceFileCanonicalizeError
Could not canonicalize file’s path that will be copied to the working directory
WdTargetFileCanonicalizeError
Could not canonicalize a workdir file’s path
WdDirCreateError
Could not create a directory in the working directory
WdFileCopyError
Could not copy a file to the working directory
WdDirReadError
Could not read a directory’s entries.
WdDirEntryError
Could not unwrap an entry in a directory.
WdFileRenameError
Could not rename a file.
WdFileCreateError
Failed to create a new file.
WdFileOpenError
Failed to open a file.
WdFileReadError
Failed to read a file.
WdFileWriteError
Failed to write to a file.
WdFileRemoveError
Failed to remove a file.
WdCompressionLaunchError
Could not launch the command to compress the working directory
WdCompressionError
Command to compress the working directory returned a non-zero exit code
WdConfirmationError
Failed to ask the user for consent.
OpenAPISerializeError
Could not serialize the OPenAPI file
OpenAPIFileCreateError
COuld not create a new OpenAPI file
OpenAPIFileWriteError
Could not write to a new OpenAPI file
BuildKitLaunchError
Could not launch the command to see if buildkit is installed
BuildKitError
The simple command to instantiate/test the BuildKit plugin for Docker returned a non-success
ImageBuildLaunchError
Could not launch the command to build the package image
ImageBuildError
The command to build the image returned a non-zero exit code (we don’t accept stdout or stderr here, as the command’s output itself will be passed to stdout & stderr)
DigestError
Could not get the digest from the just-built image
PackageFileCreateError
Could not write the PackageFile to the build directory.
Fields
err: PackageInfoError
FileCleanupError
Failed to cleanup a file from the build directory after a successfull build.
DirCleanupError
Failed to cleanup a directory from the build directory after a successfull build.
CleanupError
Failed to cleanup the build directory after a failed build.
ImageTarOpenError
Could not open the just-build image.tar
ImageTarEntriesError
Could not get the entries in the image.tar
ManifestParseError
Could not parse the extracted manifest file
ManifestNotOneEntry
The number of entries in the given manifest is not one (?)
ManifestInvalidConfigBlob
The path to the config blob (which contains Docker’s digest) is invalid
NoManifest
Didn’t find any manifest.json in the image.tar
DigestFileCreateError
Could not create the resulting digest.txt file
DigestFileWriteError
Could not write to the resulting digest.txt file
HostArchError
Could not get the host architecture
Trait Implementations§
source§impl Debug for BuildError
impl Debug for BuildError
source§impl Display for BuildError
impl Display for BuildError
source§impl Error for BuildError
impl Error for BuildError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for BuildError
impl !RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl !UnwindSafe for BuildError
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> ErrorTrace for Twhere
T: Error,
impl<T> ErrorTrace for Twhere
T: Error,
source§fn trace(&self) -> ErrorTraceFormatter<'_>
fn trace(&self) -> ErrorTraceFormatter<'_>
source§impl<T> ErrorTrace for T
impl<T> ErrorTrace for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request