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

lix run <lib> issues #48

Open
Antriel opened this issue Dec 5, 2019 · 4 comments
Open

lix run <lib> issues #48

Antriel opened this issue Dec 5, 2019 · 4 comments

Comments

@Antriel
Copy link

Antriel commented Dec 5, 2019

The first 2 should be easy enough, not sure about actually running it. Would it come down to just callHaxelib(['run', name].concat(args)) or would it be better to call haxe directly?

@kevinresol
Copy link
Member

I think we should invoke the compiler directly instead of going through haxelib?

@kevinresol
Copy link
Member

kevinresol commented May 4, 2020

We need to do the followings to mimic the behaviour of haxelib:

  1. cwd of the running process would be the location of the haxelib
  2. append an extra call arg, which is the location of the "caller" (cwd where haxelib run is called)
  3. set env var "HAXELIB_RUN" to "1"
  4. set env var "HAXELIB_RUN_NAME" to <lib_name>

@kevinresol
Copy link
Member

main class support is added in 9c75d35

I think we still need to support the default value of "main": "Run".

@back2dos
Copy link
Contributor

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

No branches or pull requests

3 participants