generated from PlexSheep/rs-base
Merge branch 'devel' of https://git.cscherr.de/PlexSheep/autocrate into devel
cargo devel CI / cargo CI (push) Failing after 1m51s
Details
cargo devel CI / cargo CI (push) Failing after 1m51s
Details
This commit is contained in:
commit
39538b7b01
|
@ -10,7 +10,6 @@ use crate::error::*;
|
|||
pub mod cli;
|
||||
pub mod packages;
|
||||
use cli::Cli;
|
||||
use packages::*;
|
||||
|
||||
pub trait YamlConfigSection: Debug + Clone + for<'a> Deserialize<'a> {
|
||||
fn check(&self) -> Result<()>;
|
||||
|
@ -65,7 +64,7 @@ impl Pass {
|
|||
self.check()?;
|
||||
Ok(match self {
|
||||
Self::Text(pass) => pass.clone(),
|
||||
Self::Env(key) => std::env::var(key).map_err(|err| ConfigError::from(err))?,
|
||||
Self::Env(key) => std::env::var(key).map_err(ConfigError::from)?,
|
||||
Self::File(file) => std::fs::read_to_string(file)?,
|
||||
})
|
||||
}
|
||||
|
@ -75,10 +74,7 @@ impl YamlConfigSection for Pass {
|
|||
match self {
|
||||
Self::Text(_) => (),
|
||||
Self::Env(envvar) => {
|
||||
if !std::env::var(envvar)
|
||||
.map_err(ConfigError::from)?
|
||||
.is_empty()
|
||||
{
|
||||
if !std::env::var(envvar).map_err(ConfigError::from)?.is_empty() {
|
||||
} else {
|
||||
return Err(ConfigError::EnvNotSet(envvar.clone()).into());
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
pub enum PackageType {
|
||||
Cargo
|
||||
Cargo,
|
||||
}
|
||||
|
|
|
@ -22,6 +22,6 @@ pub async fn release(cfg: &Config, apis: &mut ApiCollection) -> Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
async fn tag(cfg: &Config) -> Result<()> {
|
||||
async fn tag(_cfg: &Config) -> Result<()> {
|
||||
todo!()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue