Skip to content

Commit

Permalink
Merge pull request #53 from jessiex87/binary
Browse files Browse the repository at this point in the history
Chore: Embed secretdata.yaml into binary
  • Loading branch information
jwong101 authored Sep 11, 2024
2 parents c709ca2 + 82fed76 commit 8547d13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/fsrt/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ fn main() -> Result<()> {
.init();
let dirs = std::mem::take(&mut args.dirs);

let secret_packages: Vec<PackageData> = std::fs::File::open("secretdata.yaml")
.map(|f| serde_yaml::from_reader(f).expect("Failed to deserialize packages"))
.unwrap_or_else(|_| vec![]);
let secretdata_file = include_str!("../../../secretdata.yaml");
let secret_packages: Vec<PackageData> =
serde_yaml::from_str(secretdata_file).expect("Failed to deserialize packages");

for dir in dirs {
let mut manifest_file = dir.join("manifest.yaml");
Expand Down

0 comments on commit 8547d13

Please sign in to comment.