Skip to content

Explicit git Haxelib dependencies in referenced projects can not be overridden with 'dev' #572

Open
@onehundredfeet

Description

@onehundredfeet

If you have a library with a haxelib.json

{
	"name": "something",
	"url": "https://github.com/person/something",
	"description": "something",
	"dependencies": {
		"something_else": "git:https://github.com/person/something_else.git",
	}
}

And then in a project .hxml you have:
--library something

And then run the following:
haxelib dev something_else ../something_else

Compiling will still look for the git version even though you have specified dev in haxelib. There doesn't seem to be a way, at a project level, to override specified dependencies in haxelib.

haxe compile.hxml

If I'm missing something let me know.

There is a work around:

If you add the dev library to the project level .hxml it will pick up the dev version.

--library something_else
--library something

This is not obvious behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions