Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 8a23862

Browse files
committed
Revert the location of the setupFolder
1 parent ead63eb commit 8a23862

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/agent/onefuzz-agent/src/work.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ impl WorkSet {
9191

9292
pub fn setup_dir(&self) -> Result<PathBuf> {
9393
let root = self.get_root_folder()?;
94-
self.setup_url.as_path(root)
94+
// Putting the setup container at the root for backward compatibility.
95+
// The path of setup folder can be used as part of the deduplication logic in the bug filing service
96+
let setup_root = root.parent().ok_or_else(|| anyhow!("Invalid root"))?;
97+
self.setup_url.as_path(setup_root)
9598
}
9699

97100
pub fn extra_setup_dir(&self) -> Result<Option<PathBuf>> {

0 commit comments

Comments
 (0)