Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A couple fixes and release 0.6.5 #161

Merged
merged 4 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oci-spec"
version = "0.6.4"
version = "0.6.5"
edition = "2021"
authors = [
"Furisto",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This library provides a convenient way to interact with the specifications defin

```toml
[dependencies]
oci-spec = "0.6.4"
oci-spec = "0.6.5"
```
*Compiler support: requires rustc 1.54+*

Expand Down
2 changes: 2 additions & 0 deletions hack/release
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ VERSION_DEV_FILES=(

for FILE in "${VERSION_DEV_FILES[@]}"; do
sed -Ei "s/^(pub const VERSION_DEV: &str = ).*/\1\"\";/g" "$FILE"
sed -Ei 's/(assert_eq!\(version\(\), "[0-9]+\.[0-9]+\.[0-9]+).*("\.to_string\(\)\))/\1\2/g' "$FILE"
done
git add .
git commit -sm "Bump to $VERSION"

for FILE in "${VERSION_DEV_FILES[@]}"; do
sed -Ei "s/^(pub const VERSION_DEV: &str = ).*/\1\"-dev\";/g" "$FILE"
sed -Ei 's/(assert_eq!\(version\(\), "[0-9]+\.[0-9]+\.[0-9]+).*("\.to_string\(\)\))/\1-dev\2/g' "$FILE"
done
git add .
git commit -sm "Back to dev"
2 changes: 1 addition & 1 deletion src/image/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ mod tests {
use std::{fs, path::PathBuf};

use super::*;
use crate::image::{Os, ANNOTATION_CREATED, ANNOTATION_VERSION};
use crate::image::{ANNOTATION_CREATED, ANNOTATION_VERSION};

fn create_base_config() -> ConfigBuilder {
ConfigBuilder::default()
Expand Down
1 change: 0 additions & 1 deletion src/image/descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ impl Descriptor {
#[cfg(test)]
mod tests {
use super::*;
use crate::image::Descriptor;

#[test]
fn test_deserialize() {
Expand Down
2 changes: 1 addition & 1 deletion src/image/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ mod tests {
use std::{fs, path::PathBuf};

use super::*;
use crate::image::{Descriptor, DescriptorBuilder};
use crate::image::DescriptorBuilder;

fn create_manifest() -> ImageManifest {
use crate::image::SCHEMA_VERSION;
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::error::{oci_error, OciSpecError};
use derive_builder::Builder;
use getset::{CopyGetters, Getters, Setters};
use serde::{Deserialize, Serialize};
use std::{collections::HashMap, convert::TryFrom, path::PathBuf, vec};
use std::{collections::HashMap, path::PathBuf, vec};

#[derive(Builder, Clone, Debug, Deserialize, Eq, Getters, Setters, PartialEq, Serialize)]
#[serde(rename_all = "camelCase")]
Expand Down
Loading