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

Commit

Permalink
lib: Add a few semver-break cookies
Browse files Browse the repository at this point in the history
So we know what to change for the next semver break; all minor
cleanups.
  • Loading branch information
cgwalters committed Sep 15, 2023
1 parent 454dd88 commit 1408d02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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 1408d02

Please sign in to comment.