Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[haxe 4.0.1] still git dependecies error #483

Closed
djaonourside opened this issue Nov 4, 2019 · 4 comments
Closed

[haxe 4.0.1] still git dependecies error #483

djaonourside opened this issue Nov 4, 2019 · 4 comments

Comments

@djaonourside
Copy link

I'm trying build my project with haxe 4.0.1 and get
Error: Error: Cannot process [name of the lib]: git is not a valid version string. Same thing with haxe 4.0.0. Haxe 4 rc5 works fine.

@RealyUniqueName
Copy link
Member

Please, provide a sample haxelib.json and a haxelib command you are trying to execute.

@RealyUniqueName RealyUniqueName transferred this issue from HaxeFoundation/haxe Nov 4, 2019
@tbrosman
Copy link

I am also hitting this. I've come up with a repro involving transitive dependencies on git libraries and confirmed it is only an issue on Haxe 4.0.0 or newer (4.0.0-rc.5 was fine). Gist: https://gist.github.com/tbrosman/4d146abf3cb534e28be16646ffc04103

Instructions from Gist:

Overview

A repro for an issue in Haxelib where versions on transitive dependencies are always parsed as SemVer. This breaks in the case where you have:

A
B --(git ref)--> A
C --(git ref)--> B

Running

To check out the source:

git clone https://gist.github.com/fa733e78442af62abfb50a9c458677a1.git dummy-haxe-library-a
git clone https://gist.github.com/228302fc7eda9dc0b3f7f3f7d365b8e8.git dummy-haxe-library-b
git clone https://gist.github.com/4d146abf3cb534e28be16646ffc04103.git dummy-haxe-library-c

Then, install locally in a new repo to avoid polluting your system's global haxelib repo:

cd dummy-haxe-library-c
haxelib newrepo
haxelib install ./haxelib.json

Build:

haxe ./build.hxml

Error:

Error: Error: Cannot process [dummy-haxe-library-b]: git:https://gist.github.com/tbrosman/fa733e78442af62abfb50a9c458677a1.git#56ef121dfe88e8b10c2d0f643134927358f6f002 is not a valid version string

Note that the dependency in the error is dummy-haxe-library-a (fa7...) referenced from dummy-haxe-library-b.

@djaonourside
Copy link
Author

My problem was solved by changing "version": "git" to "version": "0.0.1" in haxelib.json

@RealyUniqueName
Copy link
Member

Fixed by #485. Released with Haxe 4.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants