Skip to content

Commit

Permalink
Restore lockfile in phylum parse output (#1317)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewillmon authored Dec 12, 2023
1 parent 1794d5f commit 344554c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/commands/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub fn handle_parse(matches: &clap::ArgMatches) -> CommandResult {
);

// Map dedicated exit code for failure due to disabled generation.
let mut parsed_lockfile = match parse_result {
let parsed_lockfile = match parse_result {
Ok(parsed_lockfile) => parsed_lockfile,
Err(err @ ParseError::ManifestWithoutGeneration(_)) => {
print_user_failure!("Could not parse manifest: {}", err);
Expand All @@ -95,7 +95,7 @@ pub fn handle_parse(matches: &clap::ArgMatches) -> CommandResult {
},
};

pkgs.append(&mut parsed_lockfile.packages);
pkgs.append(&mut parsed_lockfile.api_packages());
}

serde_json::to_writer_pretty(&mut io::stdout(), &pkgs)?;
Expand Down

0 comments on commit 344554c

Please sign in to comment.