Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore lockfile in phylum parse output #1317

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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