Version
DVC version: 0.70.0
Python version: 3.7.3
Platform: Linux-5.0.0-36-generic-x86_64-with-Ubuntu-18.04-bionic
Binary: False
Package: pip
Cache: reflink - False, hardlink - True, symlink - True
Problem
.dvc/lock is ignored when a dvc command is run for the second time.

Expected behaviour
When dvc status is run for the second time, it should throw an error since .dvc/lock isn't deleted yet so it should have prevented the command from running.
Reproduce
- Manually created
lock file.
- Run
dvc status. (Throws error)
>>>
ERROR: failed to obtain data status - cannot perform the command because another DVC process seems to be running on this project. If that is not the case, manually remove `.dvc/lock` and try again.
- Run
ls .dvc to check if lock is still present.
$ ls .dvc
>>> cache config lock state tmp updater
- Run
dvc status again.
Runs successfully. It should not since lock is still present.
Version
Problem
.dvc/lockis ignored when advccommand is run for the second time.Expected behaviour
When
dvc statusis run for the second time, it should throw an error since.dvc/lockisn't deleted yet so it should have prevented the command from running.Reproduce
lockfile.dvc status. (Throws error)ls .dvcto check iflockis still present.dvc statusagain.Runs successfully. It should not since
lockis still present.