MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / manifest_fetch_error

Method manifest_fetch_error

atomic-cli/src/commands/clone/command.rs:332–343  ·  view source on GitHub ↗

Convert a manifest-fetch failure into a CLI error. A protocol error means the server predates `?view-manifest` support. That is fatal: without manifests a clone cannot preserve view identity (scope and parent), so there is no fallback to the old flat changelist path.

(&self, err: RemoteError)

Source from the content-addressed store, hash-verified

330 /// identity (scope and parent), so there is no fallback to the old flat
331 /// changelist path.
332 fn manifest_fetch_error(&self, err: RemoteError) -> CliError {
333 if matches!(err, RemoteError::ProtocolError { .. }) {
334 CliError::RemoteError {
335 message: "This server is too old for identity-preserving clone: it does not \
336 support view manifests (?view-manifest). Upgrade the server."
337 .to_string(),
338 url: Some(self.url.clone()),
339 }
340 } else {
341 convert_remote_error(err, &self.url)
342 }
343 }
344
345 /// Fetch and validate one view's manifest from the remote.
346 ///

Calls 2

convert_remote_errorFunction · 0.70
cloneMethod · 0.45