Skip to content

Commit

Permalink
fix: remove raw recipe (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
swarnimarun authored Nov 20, 2023
1 parent 2291f1e commit 83e4f79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use indicatif::MultiProgress;
use miette::IntoDiagnostic;
use rattler_conda_types::{package::ArchiveType, NoArchType, Platform};
use rattler_networking::AuthenticatedClient;
use serde::{Deserialize, Serialize};
use serde_yaml::Value as YamlValue;
use std::{
collections::BTreeMap,
Expand All @@ -34,13 +33,6 @@ mod rebuild;

use crate::console_utils::{IndicatifWriter, TracingFormatter};

#[derive(Serialize, Deserialize, Debug)]
struct RawRecipe {
context: BTreeMap<String, serde_yaml::Value>,
#[serde(flatten)]
recipe: BTreeMap<String, serde_yaml::Value>,
}

#[derive(Parser)]
enum SubCommands {
/// Build a package
Expand Down
2 changes: 1 addition & 1 deletion src/recipe/parser.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Second and final stage of the recipe parser pipeline.
//!
//! This stage takes the [`RawRecipe`] from the first stage and parses it into a [`Recipe`], where
//! This phase parses YAML and [`SelectorConfig`] into a [`Recipe`], where
//! if-selectors are handled and any jinja string is processed, resulting in a rendered recipe.
use minijinja::Value;
use serde::{Deserialize, Serialize};
Expand Down

0 comments on commit 83e4f79

Please sign in to comment.