Skip to content

Commit

Permalink
Fix fs_util not working due to workunit init (pantsbuild#17229)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano authored Oct 15, 2022
1 parent 89ef823 commit 698fa0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rust/engine/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/rust/engine/fs/fs_util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ grpc_util = { path = "../../grpc_util" }
fs = { path = ".." }
futures = "0.3"
hashing = { path = "../../hashing" }
log = "0.4"
parking_lot = "0.12"
prost = "0.9"
rand = "0.8"
Expand Down
3 changes: 3 additions & 0 deletions src/rust/engine/fs/fs_util/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ use std::collections::BTreeMap;
use store::{
Snapshot, SnapshotOps, Store, StoreError, StoreFileByDigest, SubsetParams, UploadSummary,
};
use workunit_store::WorkunitStore;

#[derive(Debug)]
enum ExitCode {
Expand Down Expand Up @@ -84,6 +85,8 @@ struct SummaryWithDigest {
#[tokio::main]
async fn main() {
env_logger::init();
let workunit_store = WorkunitStore::new(false, log::Level::Debug);
workunit_store.init_thread_state(None);

match execute(
&Command::new("fs_util")
Expand Down

0 comments on commit 698fa0c

Please sign in to comment.