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 lime doesn't work in windows-latest github actions #185

Open
NQNStudios opened this issue May 11, 2023 · 2 comments
Open

lix run lime doesn't work in windows-latest github actions #185

NQNStudios opened this issue May 11, 2023 · 2 comments

Comments

@NQNStudios
Copy link
Contributor

In a private cross-platform project I'm using GitHub actions to run my build which goes basically like this:

  • install lix with the setup-lix action.
  • lix download to get the dependencies
  • lix run lime build <args> to run the build.

This worked smoothly for macos-latest and ubuntu-latest github actions, but on windows-latest, I get this error from the last step:

Error: Could not find haxelib "lime", does it need to be installed?
Failed to invoke `haxelib run-dir lime "C:\Users\runneradmin\AppData\Roaming/haxe/haxe_libraries/lime/8.0.1/haxelib"` because Error: Command failed: haxelib run-dir lime "C:\Users\runneradmin\AppData\Roaming/haxe/haxe_libraries/lime/8.0.1/haxelib"

I know lime is installed, so I'm thinking this has to be a scope resolution issue?

I made a new public repo with a minimal reproduction of the error:

https://github.com/NQNStudios/lix-lime-debug

The latest action run is here, showing that the same workflow succeeds on ubuntu and macos, but not Windows:

https://github.com/NQNStudios/lix-lime-debug/actions/runs/4943468182

@NQNStudios
Copy link
Contributor Author

In all my debugging I've found that it IS running the lime haxelib, but on the first time lime is run, it has to compile its tools by referencing the output of haxelib path lime. That's where the process is failing to find lime installed, but again, I don't know why windows is the only OS that can't do it.

@NQNStudios
Copy link
Contributor Author

I've started experimenting with different workarounds. To keep it clear, THIS commit is the state of the repository that I believe uses lix as intended, and should work if the underlying error is fixed: https://github.com/NQNStudios/lix-lime-debug/tree/5ec584d6491efa0350ec3a84bf3a666608a2c9eb

Commits following that are me trying various things to get it to work, some of which may be trying hacky workarounds while others might be digging for the real problem.

It's so weird that the build DOES work for me locally in git bash on Windows.

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

1 participant