HaxeFoundation / HaxeFoundation/haxe

Classpath order and init macro execution order for haxelib dependencies

Open
#8,607 3 comments 1 reaction 0 assignees View on GitHub
documentation
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

I have two libs: libA and libB.
libA depends on libB. Both have init macros. I'd expect init macros of libB to be executed first, however:
```
$ haxe -lib libA
/home/alex/temp/test/.haxelib/liba/InitA.hx:3: Lib A
/home/alex/temp/test/.haxelib/libb/InitB.hx:3: Lib B
```
I think this should be changed to always execute init macros of dependencies before init macros of dependants.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.