-
Notifications
You must be signed in to change notification settings - Fork 57
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
Have rebar3.cmd work on a Windows CMD shell #151
Have rebar3.cmd work on a Windows CMD shell #151
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful, thank you!
I will still want to add a Rust -specific case, as we briefly discussed before, to see if this fits the bill. Edit: I'm doing that now. |
Added a Rust-specific test case, but |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice 😎
It would be even nicer if I could understand why Rust can't find the executable, but the shell it runs on can. I'll try to find some time to continue this today, at night. |
Even though this seems to be working, it's not. Look at |
Yeah, so the binary is in the PATH, as per Rust output, but Rust is probably not using that same variable's content to search for stuff. |
@lpil, from Rust, for example,
can, as of this pull request, at least, find Another possible way to do it is
for example. Let me know if this is enough (you can also test with this branch and find out if you need to adjust). |
Hi @paulo-ferraz-oliveira . Adding an environment variable would not be suitable because that environment variable would only be set on GitHub actions when using this action, and we need to use the same code for all environments. |
But, in that case, would
be suitable? Can you give me an example (either on GitHub or by pasting code here) of what you're actually using? That way I can hack it until it passes 😆 (not your code, but mine). |
It would not, we don't spawn a shell to run subprocesses for any other program. Here's where we use it: https://github.com/gleam-lang/gleam/blob/75f3e02af3a35f236d6dd9fd0f673953e7cf5959/compiler-core/src/build/project_compiler.rs#L319-L325 This runs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for env var issues to be sorted out.
(Windows on non-PowerShell)
If the "run" were to fail the job would too
Force pushed to rebase onto |
Hey, @lpil. I've been trying to update this pull request with different degrees of sustained frustration. Let me know if this is enough (or maybe you can test the action as-is, from this branch - just use I'm not Rust savvy so don't actually understand what's preventing this from working as expected. The result is apparently Ok, but there's the potential for the current implementation to not serve your needs. Thank you. |
Hi @paulo-ferraz-oliveira ! That looks perfect, thank you! 💜 |
Hey, @starbelly, I believe we're ready for review, finally 😄 Have fun! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳
Merging... @lpil, let me know if you'd require a release for this, otherwise it can wait a while longer for the other open pull request to get merged in too... |
Closes #147.
@lpil