pub enum VersionResolveError {
MissingManifestVersion {
targets: Vec<UnversionedTarget>,
},
InconsistentTree {
versions: Vec<VersionMismatch>,
},
Undeterminable,
}Expand description
Why a single release version could not be resolved from the workspace manifest —
the single source of truth for the release version. ossctl release cut
publishes the version already in the tree; there is no --version input to
override it (release-drop-version-flag).
Variants§
MissingManifestVersion
One or more manifest-versioned targets (VersionSource::Manifest) have a
resolved package but no detected manifest version — the detector returned
nothing for an ecosystem that is manifest-versioned (npm/PyPI/…). Failing
closed here (rather than silently skipping the target) is the fix for
version-source-fail-closed-nonrust: a distribution target is skipped by
design, but a manifest target with no readable version is a bug that must not
publish an unchecked version. Carries each such target (sorted, one per
package).
Fields
targets: Vec<UnversionedTarget>Every manifest-versioned target whose version could not be read.
InconsistentTree
The tree’s publishable manifests declare more than one distinct version, so there is no single source of truth to derive the release version from — bring the workspace into lockstep first. Carries each checkable target’s package + version (sorted, one per package).
Fields
versions: Vec<VersionMismatch>Every checkable target and the version its manifest declares.
Undeterminable
No manifest version could be detected — every target is a distribution target
with no manifest version by design (or has no resolved package) — so there is
no manifest to derive the release version from. With the --version input
removed, the release version can only come from a manifest; a repo with no
version-carrying manifest cannot be cut until one declares a version.
Trait Implementations§
Source§impl Clone for VersionResolveError
impl Clone for VersionResolveError
Source§fn clone(&self) -> VersionResolveError
fn clone(&self) -> VersionResolveError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VersionResolveError
impl Debug for VersionResolveError
impl Eq for VersionResolveError
Source§impl PartialEq for VersionResolveError
impl PartialEq for VersionResolveError
impl StructuralPartialEq for VersionResolveError
Auto Trait Implementations§
impl Freeze for VersionResolveError
impl RefUnwindSafe for VersionResolveError
impl Send for VersionResolveError
impl Sync for VersionResolveError
impl Unpin for VersionResolveError
impl UnsafeUnpin for VersionResolveError
impl UnwindSafe for VersionResolveError
Blanket Implementations§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.