mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
Release/0.2.15 (#411)
* remove all apt-get calls from check phase of startup * Fix "n is undefined" config spec change bug (#392) Fixes the issue where an old config with a new config spec sometimes renders the config inaccessible, with the error `n is undefined` * updates version numbers * version change for appmgr * updates version numbers and welcome message * adds migration for 0.2.15 to the agent * actually add 0.2.15 migration to appmgr Co-authored-by: Chris Guida <chrisguida@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
46643cb3a4
commit
18a069e6fd
@@ -31,8 +31,9 @@ mod v0_2_11;
|
||||
mod v0_2_12;
|
||||
mod v0_2_13;
|
||||
mod v0_2_14;
|
||||
mod v0_2_15;
|
||||
|
||||
pub use v0_2_14::Version as Current;
|
||||
pub use v0_2_15::Version as Current;
|
||||
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[serde(untagged)]
|
||||
@@ -59,6 +60,7 @@ enum Version {
|
||||
V0_2_12(Wrapper<v0_2_12::Version>),
|
||||
V0_2_13(Wrapper<v0_2_13::Version>),
|
||||
V0_2_14(Wrapper<v0_2_14::Version>),
|
||||
V0_2_15(Wrapper<v0_2_15::Version>),
|
||||
Other(emver::Version),
|
||||
}
|
||||
|
||||
@@ -175,6 +177,7 @@ pub async fn init() -> Result<(), failure::Error> {
|
||||
Version::V0_2_12(v) => v.0.migrate_to(&Current::new()).await?,
|
||||
Version::V0_2_13(v) => v.0.migrate_to(&Current::new()).await?,
|
||||
Version::V0_2_14(v) => v.0.migrate_to(&Current::new()).await?,
|
||||
Version::V0_2_15(v) => v.0.migrate_to(&Current::new()).await?,
|
||||
Version::Other(_) => (),
|
||||
// TODO find some way to automate this?
|
||||
}
|
||||
@@ -270,6 +273,7 @@ pub async fn self_update(requirement: emver::VersionRange) -> Result<(), Error>
|
||||
Version::V0_2_12(v) => Current::new().migrate_to(&v.0).await?,
|
||||
Version::V0_2_13(v) => Current::new().migrate_to(&v.0).await?,
|
||||
Version::V0_2_14(v) => Current::new().migrate_to(&v.0).await?,
|
||||
Version::V0_2_15(v) => Current::new().migrate_to(&v.0).await?,
|
||||
Version::Other(_) => (),
|
||||
// TODO find some way to automate this?
|
||||
};
|
||||
|
||||
21
appmgr/src/version/v0_2_15.rs
Normal file
21
appmgr/src/version/v0_2_15.rs
Normal file
@@ -0,0 +1,21 @@
|
||||
use super::*;
|
||||
|
||||
const V0_2_15: emver::Version = emver::Version::new(0, 2, 15, 0);
|
||||
|
||||
pub struct Version;
|
||||
#[async_trait]
|
||||
impl VersionT for Version {
|
||||
type Previous = v0_2_14::Version;
|
||||
fn new() -> Self {
|
||||
Version
|
||||
}
|
||||
fn semver(&self) -> &'static emver::Version {
|
||||
&V0_2_15
|
||||
}
|
||||
async fn up(&self) -> Result<(), Error> {
|
||||
Ok(())
|
||||
}
|
||||
async fn down(&self) -> Result<(), Error> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user