Skip to content

Commit f855644

Browse files
committed
Re-bundle build if version or releases url changes.
Otherwise, I don't think the changes from env variable get picked up. Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
1 parent 8788874 commit f855644

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

postgresql_embedded/build/bundle.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ use url::Url;
1717
/// self-contained binary that does not require the PostgreSQL archive to be
1818
/// downloaded at runtime.
1919
pub(crate) async fn stage_postgresql_archive() -> Result<()> {
20+
println!("cargo:rerun-if-env-changed=POSTGRESQL_VERSION");
21+
println!("cargo:rerun-if-env-changed=POSTGRESQL_RELEASES_URL");
2022
#[cfg(feature = "theseus")]
2123
let default_releases_url = postgresql_archive::configuration::theseus::URL.to_string();
2224
#[cfg(not(feature = "theseus"))]

0 commit comments

Comments
 (0)