Skip to content

Commit

Permalink
set to most recent haxelib if we remove our currently used haxelib
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Aug 26, 2024
1 parent 7773c36 commit 178ce0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Binary file modified run.n
Binary file not shown.
4 changes: 4 additions & 0 deletions src/haxelib/api/Repository.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package haxelib.api;

import haxelib.client.Cli;
import haxelib.VersionData.VcsData;
import sys.FileSystem;
import sys.io.File;
Expand Down Expand Up @@ -180,6 +181,9 @@ class Repository {
}

FsUtils.deleteRec(versionPath);

var versions = getProjectInstallationInfo(name).versions.pop();
setCurrentVersion(name, versions);
}

/** Throws an error if removing `versionPath` conflicts with the dev path of library `name` **/
Expand Down

0 comments on commit 178ce0c

Please sign in to comment.