diff options
Diffstat (limited to 'cli/lockfile.rs')
-rw-r--r-- | cli/lockfile.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/lockfile.rs b/cli/lockfile.rs index 43c01b428..cdb40c530 100644 --- a/cli/lockfile.rs +++ b/cli/lockfile.rs @@ -98,6 +98,10 @@ impl Lockfile { flags: &Flags, maybe_config_file: Option<&ConfigFile>, ) -> Result<Option<Lockfile>, AnyError> { + if flags.no_lock { + return Ok(None); + } + let filename = match flags.lock { Some(ref lock) => PathBuf::from(lock), None if flags.unstable => match maybe_config_file { |