Skip to content

Commit

Permalink
set build timestamp to always be epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
cottand committed Feb 20, 2024
1 parent 8e19c71 commit f38ad55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
eif-cli/target
result
result

**/.idea/
6 changes: 5 additions & 1 deletion eif-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ fn main() {
None => json!(null),
};

let mut build_info = generate_build_info!(kernel_config_path).expect("Can not generate build info");

build_info.build_time = "1970-01-01T00:00:00.00+00:00".to_owned();

let eif_info = EifIdentityInfo {
img_name: img_name.unwrap_or_else(|| {
// Set default value to kernel file name
Expand All @@ -200,7 +204,7 @@ fn main() {
.to_string()
}),
img_version: img_version.unwrap_or_else(|| "1.0".to_string()),
build_info: generate_build_info!(kernel_config_path).expect("Can not generate build info"),
build_info: build_info,
docker_info: json!(null),
custom_info: metadata,
};
Expand Down

0 comments on commit f38ad55

Please sign in to comment.