Fix Go packages when using Go modules (#351)

This commit is contained in:
Roey Darwish Dror
2020-02-29 16:30:31 +02:00
committed by GitHub
parent d01aff7abd
commit 9c98005c61
2 changed files with 20 additions and 1 deletions

View File

@@ -101,6 +101,21 @@ impl Executor {
self
}
/// See `std::process::Command::remove_env`
pub fn env_remove<K>(&mut self, key: K) -> &mut Executor
where
K: AsRef<OsStr>,
{
match self {
Executor::Wet(c) => {
c.env_remove(key);
}
Executor::Dry(_) => (),
}
self
}
#[allow(dead_code)]
/// See `std::process::Command::env`
pub fn env<K, V>(&mut self, key: K, val: V) -> &mut Executor