-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Use built escript to execute ex_doc instead of one in PATH #8378
Comments
Why does it not play nice with nix? The doc build is run using |
This is a bit of a can of worms, but I think the most concise explanation is this answer on stack overflow and the most detailed answer is here on discourse In short: I can't use I'll admit that this is a very nix specific issue. You already have the path |
I was just able to test this with the rc3 nix update, this patch simplifies my build
|
This is slightly off though because of the way |
A patch doing that would be welcome, however it should do it using |
I tried doing this but it is more subtle due to the wrapper (because it is a bash script you can't execute with escript). Ideas,
I think I prefer "1." but maybe "2." is desirable because you only need |
Okay, I am a goofball. We can just rewrite |
In #8596 i tried to solve this problem. Can you have a look and see if it works? |
Fixed in #8596 |
Is your feature request related to a problem? Please describe.
Working on adding Erlang w/ OTP 27-rc2 to nixpkgs (https://github.com/NixOS/nixpkgs/pull/303750/files). The default shebang line for
ex_doc
is#! /usr/bin/env escript
however this doesn't play nice with nix.Describe the solution you'd like
I believe you could change this line to not rely on the
ex_doc
in the PATH and executeescript ex_doc ...
otp/make/ex_doc_wrapper
Line 8 in e6d3401
That
escript
can be hardcoded to the one built atmake
time and checked to ensure it exists (telling the user you need tomake
first).Describe alternatives you've considered
You could simply leave it, this is likely a pretty
nix
specific issue.Additional context
I am happy to implement this but wanted to ensure the contribution is welcome. Thanks.
The text was updated successfully, but these errors were encountered: