Skip to content

Commit

Permalink
Merge pull request #161 from albertofaria/release-0.6.5
Browse files Browse the repository at this point in the history
A couple fixes and release 0.6.5
  • Loading branch information
rhatdan authored Feb 20, 2024
2 parents b6af7e2 + 8c20ddd commit 7880e8b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
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

0 comments on commit 7880e8b

Please sign in to comment.