pub fn check_metadata(
  raze_metadata: &RazeMetadata,
  settings: &RazeSettings,
  bazel_workspace_root: &Path,
) -> Result<()> {
  // Check for errors
  check_resolve_matches_packages(&raze_metadata.metadata)?;

  if settings.genmode == GenMode::Vendored {
    check_all_vendored(&raze_metadata.metadata, settings, bazel_workspace_root)?;
  }

  // Check for incomplete lockfiles
  if let Err(err) =
    check_lockfile_for_missing_checksums(&raze_metadata.metadata, &raze_metadata.checksums)
  {
    eprintln!("WARNING: {}", err);
  }

  // Check for unused crate settings
  warn_unused_settings(&settings.crates, &raze_metadata.metadata.packages);

  Ok(())
}
/// Ensure that the given Metadata is valid and ready to use for planning.
Ensure that the given Metadata is valid and ready to use for planning.
Ensure that the given Metadata is valid and ready to use for planning .
pub fn check_metadata(
  raze_metadata: &RazeMetadata,
  settings: &RazeSettings,
  bazel_workspace_root: &Path,
) -> Result<()> {
  // Check for errors
  check_resolve_matches_packages(&raze_metadata.metadata)?;
  if settings.genmode == GenMode::Vendored {
    check_all_vendored(&raze_metadata.metadata, settings, bazel_workspace_root)?;
  }
  // Check for incomplete lockfiles
  if let Err(err) =
    check_lockfile_for_missing_checksums(&raze_metadata.metadata, &raze_metadata.checksums)
  {
    eprintln!("WARNING: {}", err);
  }
  // Check for unused crate settings
  warn_unused_settings(&settings.crates, &raze_metadata.metadata.packages);
  Ok(())
}
pub fn check_metadata ( raze_metadata : & RazeMetadata , settings : & RazeSettings , bazel_workspace_root : & Path , ) -> Result < ( ) > { // Check for errors check_resolve_matches_packages ( & raze_metadata . metadata ) ? ; if settings . genmode == GenMode :: Vendored { check_all_vendored ( & raze_metadata . metadata , settings , bazel_workspace_root ) ? ; } // Check for incomplete lockfiles if let Err ( err ) = check_lockfile_for_missing_checksums ( & raze_metadata . metadata , & raze_metadata . checksums ) { eprintln ! ( " " err ) ; } // Check for unused crate settings warn_unused_settings ( & settings . crates , & raze_metadata . metadata . packages ) ; Ok ( ( ) ) }
Ensure that the given Metadata is valid and ready to use for planning.
Ensure that the given Metadata is valid and ready to use for planning .
raze_metadata
&RazeMetadata
settings
&RazeSettings
bazel_workspace_root
&Path
raze_metadata
&RazeMetadata
settings
&RazeSettings
bazel_workspace_root
&Path