Skip to content

Commit

Permalink
Merge pull request #3163 from jeamland/source-date-epoch
Browse files Browse the repository at this point in the history
compose: pass SOURCE_DATE_EPOCH into bubblewrap environments
  • Loading branch information
Luca Bruno authored Oct 8, 2021
2 parents fbca58e + 2a8ed34 commit 2dd49b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rust/src/bwrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ impl Bubblewrap {
let path_var = Path::new(PATH_VAR);
launcher.set_environ(&[lang_var, path_var]);

if let Ok(source_date_epoch) = std::env::var("SOURCE_DATE_EPOCH") {
launcher.setenv("SOURCE_DATE_EPOCH", source_date_epoch, true);
}

// ⚠⚠⚠ If you change this, also update scripts/bwrap-script-shell.sh ⚠⚠⚠
let mut argv = vec![
"bwrap",
Expand Down

0 comments on commit 2dd49b5

Please sign in to comment.