Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #538 from cgwalters/add-semver-cleanup-cookies
Browse files Browse the repository at this point in the history
two minor patches
  • Loading branch information
jmarrero authored Sep 15, 2023
2 parents 454dd88 + dec7c3b commit 29df18f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ fn handle_serialize_to_file<T: serde::Serialize>(path: Option<&Utf8Path>, obj: T
}

/// Parse the provided arguments and execute.
/// Calls [`structopt::clap::Error::exit`] on failure, printing the error message and aborting the program.
/// Calls [`clap::Error::exit`] on failure, printing the error message and aborting the program.
pub async fn run_from_iter<I>(args: I) -> Result<()>
where
I: IntoIterator,
Expand Down
1 change: 1 addition & 0 deletions lib/src/container/encapsulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use tracing::instrument;
/// The label which may be used in addition to the standard OCI label.
pub const LEGACY_VERSION_LABEL: &str = "version";

// semver-break: Delete this and only support v1
/// Type of container image generated
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub(crate) enum ExportLayout {
Expand Down
2 changes: 2 additions & 0 deletions lib/src/container/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,7 @@ pub fn query_image_commit(repo: &ostree::Repo, commit: &str) -> Result<Box<Layer
///
/// This is a thin wrapper for [`query_image_ref`] and should
/// be considered deprecated.
// semver-break: Delete this and rename query_image_ref -> query_image
pub fn query_image(
repo: &ostree::Repo,
imgref: &OstreeImageReference,
Expand All @@ -1030,6 +1031,7 @@ fn manifest_for_image(repo: &ostree::Repo, imgref: &ImageReference) -> Result<Im
/// Copy a downloaded image from one repository to another.
#[context("Copying image")]
#[deprecated = "Use copy_as instead"]
// semver-break: Delete this and rename copy_as -> copy
pub async fn copy(
src_repo: &ostree::Repo,
dest_repo: &ostree::Repo,
Expand Down

0 comments on commit 29df18f

Please sign in to comment.