diff --git a/.gitignore b/.gitignore index 31219eb..3d6a49b 100644 --- a/.gitignore +++ b/.gitignore @@ -119,3 +119,4 @@ packages/downloader/test/nginx.conf packages/binding/index.d.ts .DS_Store package-lock.json +.vscode \ No newline at end of file diff --git a/packages/deamon/src/config.rs b/packages/deamon/src/config.rs index f6f7c97..c45bd9d 100644 --- a/packages/deamon/src/config.rs +++ b/packages/deamon/src/config.rs @@ -290,19 +290,9 @@ impl Overlay { } } - let workdir = match &self.workdir { - Some(s) => s, - None => { - return Err(anyhow!( - "workdir is empty, node_modules_dir is {}", - self.node_modules_dir - )) - } - }; - let mount_str = format!( r#"mount -t overlay overlay -o lowerdir={},upperdir={},workdir={} {}"#, - self.mnt, self.upper, workdir, self.node_modules_dir + self.mnt, self.upper, &self.workdir, self.node_modules_dir ); match start_command(&mount_str) { Ok(output) => {