Skip to content

Commit

Permalink
fix for attempting to remove a lib when dev is set
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Aug 26, 2024
1 parent 8d07d4a commit ebfb98d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified run.n
Binary file not shown.
2 changes: 1 addition & 1 deletion src/haxelib/api/Repository.hx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class Repository {
throw 'Library $name version $version is not installed';

final current = getCurrentFileContent(name);
if (current == version)
if (getDevPath(name) == null && current == version)
throw 'Cannot remove current version of library $name';

try {
Expand Down

0 comments on commit ebfb98d

Please sign in to comment.