From 2cb94573b29af883b578449dc183eae162c901c4 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Wed, 25 Oct 2023 13:10:20 -0700 Subject: [PATCH 1/2] Ignore lock and changes to node_modules --- pgml-dashboard/.ignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 pgml-dashboard/.ignore 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/ From ce578f8688f7fd56dd89b784c4851c2773157b32 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Wed, 25 Oct 2023 13:12:32 -0700 Subject: [PATCH 2/2] build.rs --- pgml-dashboard/build.rs | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) 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