package-manager icon indicating copy to clipboard operation
package-manager copied to clipboard

add flag to ignore dirty local git clone

Open mmguero opened this issue 1 year ago • 2 comments

When doing zkg install, a check is made to ensure the local repository isn't dirty. If it is, the install fails.

For development purposes, it would be convenient to have a flag named something like --ignore-dirty-git that would allow the install operation to proceed anyway.

e.g.

$ touch asdfasdf

$ zkg install .
error: local git clone at . is dirty

$ zkg install --ignore-dirty-git .
The following packages will be INSTALLED:
...

related to #145

mmguero avatar Mar 09 '23 14:03 mmguero

Reopening as the change was reverted with #179

awelzel avatar Feb 20 '24 14:02 awelzel

Thanks, I had noticed this behavior ("The existing implementation isn't function and behaves confusingly (silently discards the actual changes during install/test)") and hadn't gotten around to trying to figure out if I was doing something wrong or if it was a problem with zkg itself.

mmguero avatar Feb 20 '24 14:02 mmguero