-
Notifications
You must be signed in to change notification settings - Fork 425
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
Document alternate build workflow using esy #1590
Conversation
Not sure I wanted to advertise this until it's stable. We might break some people who rely on this workflow while we move fast to complete the important esy features. I'll hold off on merging this for a little bit but you can feel free to help some other people try out the |
I also prefer this workflow, even if it might have breaking changes. I was hoping to have something to point people to, even if it doesn't get merged right away. Although I figure people building from source/contributors ought to be able to contend with it if they want to use an experimental feature. If you like, I'll try to keep this PR updated if there are breaking changes. |
Andrey just sent out a PR for the "fast build" workflow which is pretty slick, and was the major missing piece required before encouraging people to experiment with |
I can put some time into testing fastbuild next week. |
On every version of esy since 0.28 (I tried 0.0.29-0.0.32), this series of commands fails:
On 0.0.28 it succeeds and all the tests pass. |
This is expected for now, and it's the one missing feature we need in Here's the missing feature: after you build a project, you can run commands like |
I see. Until |
It shouldn’t be too hard to implement |
You can give the workflow a try with |
I will try it out. Thanks for letting me know about it. |
Doing |
Describe what is necessary to build the project with esy after the opam instructions, with the caveat that it is still experimental.
d58db77
to
9570943
Compare
src/README.md
Outdated
The esy workflow is still experimental. | ||
If you would like to help test, you can try it with the following commands. | ||
If you already use OPAM for Reason, take care to deactivate OPAM first | ||
or ensure your node binaries precede OPAM's in your path. |
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.
I think it’s the opposite. You’d want node binaries to come after opam’s. Also, esy does a good job of scrubbing the env during builds so I’m not sure this warning is necessary. Did you run into an issue?
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.
I think this actually may not be necessary, although so far I found that esy basically eliminated my need to use opam directly. Probably best to remove this warning.
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.
But your initial concern about people having opam already installed is well-founded - it happens a lot. I think we should be okay without this warning though.
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.
Hm... I think if you use esy ...
prefix (esy x make test
and so on) in workflow the fact that OPAM is installed and how it's configured is totally irrelevant. It's a bug in Esy in any other case.
Thanks. I'll wait to land this when the new |
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.
Thank you!
Describe what is necessary to build the project with esy after the
opam instructions, with the caveat that it is still experimental.