exp apply: safeguard against unclean workspaces
See original GitHub issuedvc exp apply will clear the workspace of untracked files and unstaged modifications. To prevent users losing work, it would be good to follow git’s convention of preventing overwriting of untracked/modified files unless the user gives explicit permission.
- If
dvc exp applyis executed on an unclean workspace, fail with a suggestion to stash work or specify a--forceflag dvc exp apply --forceacts like the current command does.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Use Enhanced Workspaces to Manage Commerce Data
Now you can make inline edits on name and description in all workspaces. In the Product Workspace, you can select and show categories...
Read more >How to Catalog Your Workspaces to Meet the Zero Trust ...
The first step in any security exercise is to discover and take inventory of what you need to protect. While most agencies that...
Read more >Get started with WorkSpaces Quick Setup - AWS Documentation
In this tutorial, you learn how to provision a virtual, cloud-based Microsoft Windows, Amazon Linux, or Ubuntu Linux desktop, known as a WorkSpace, ......
Read more >Onboard non-persistent virtual desktop infrastructure (VDI ...
Deploy the configuration package on virtual desktop infrastructure (VDI) device so that they are onboarded to Microsoft Defender for ...
Read more >What is a clean desk policy? – Definition from TechTarget
A clean desk policy (CDP) is a corporate directive that specifies how employees should leave their work space when they leave the office....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@pmrowla Forcibly overwriting conflicts is intended as explained here and in https://github.com/iterative/dvc.org/issues/2397, but it seems like experiments are overwriting everything in the workspace, even untracked files. This seems to conflict with https://github.com/iterative/dvc.org/issues/2397#issuecomment-822887190.
Example:
@pmrowla I hadn’t noticed the
--no-forceargument. On reflection, switching between experiments would necessitate use of a--forceflag if it existed, and I guess that use-case is considered the most common.I will monitor how I use
exp applyfor now, and whether I can easily encorporate--no-forceinto my workflow.