Skip to content

Commit

Permalink
fix Version resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed Nov 22, 2024
1 parent 1420a4e commit 5a83628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/haxelib/client/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ class Main {
version: {
final versionStr = libraryAndVersion.matched(2);
if (versionStr != null)
haxelib.api.Version.ofString(versionStr.split(":")[0])
haxelib.api.LibraryData.Version.ofString(versionStr.split(":")[0])
else
null;
}
Expand Down Expand Up @@ -768,7 +768,7 @@ class Main {

final project = ProjectName.ofString(libraryAndVersion.matched(1));
final versionStr = libraryAndVersion.matched(2);
final version = if (versionStr != null) haxelib.api.Version.ofString(versionStr) else null;
final version = if (versionStr != null) haxelib.api.LibraryData.Version.ofString(versionStr) else null;

try {
scope.runScript(project, {
Expand Down

0 comments on commit 5a83628

Please sign in to comment.