diff --git a/pgml-dashboard/.ignore b/pgml-dashboard/.ignore new file mode 100644 index 000000000..4eff5c86c --- /dev/null +++ b/pgml-dashboard/.ignore @@ -0,0 +1,2 @@ +*package-lock.json +node_modules/ diff --git a/pgml-dashboard/build.rs b/pgml-dashboard/build.rs index 8017afafb..b96470c58 100644 --- a/pgml-dashboard/build.rs +++ b/pgml-dashboard/build.rs @@ -11,15 +11,21 @@ fn main() { let git_hash = String::from_utf8(output.stdout).unwrap(); println!("cargo:rustc-env=GIT_SHA={}", git_hash); - let status = Command::new("cargo") - .arg("pgml-components") - .arg("bundle") - .arg("--lock") - .status() - .expect("failed to run 'cargo pgml-bundle'"); - - if !status.success() { - panic!("failed to run 'cargo pgml-bundle'"); + for i in 0..5 { + let status = Command::new("cargo") + .arg("pgml-components") + .arg("bundle") + .arg("--lock") + .status() + .expect("failed to run 'cargo pgml-bundle'"); + + if !status.success() { + if i < 4 { + println!("cargo:warning=failed to run 'cargo pgml-bundle', retrying"); + } else { + panic!("failed to run 'cargo pgml-bundle'"); + } + } } let css_version = pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy