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

_cargo_build_script_run not executing relative to crate? #391

Open
parisholley opened this issue Aug 28, 2020 · 8 comments
Open

_cargo_build_script_run not executing relative to crate? #391

parisholley opened this issue Aug 28, 2020 · 8 comments

Comments

@parisholley
Copy link

i am having issues with crates such as ring/openssl that attempt to compile libraries as part of the build... they try to refer to files that are relative to the crate (when vendor'd) but instead, the working directory is my repository root. if i manually edit the build files to do ./cargo/vendor/crate-name-version/path/to/file.c then it works fine (but obviously isn't a solution).

@damienmg
Copy link
Collaborator

damienmg commented Sep 2, 2020

Hi, sorry for the delay, I am a bit overloaded at the moment,

Would you mind sharing the Cargo.toml file you used so I can repro? Can you also share some details about your operating system?

@parisholley
Copy link
Author

@damienmg
Copy link
Collaborator

damienmg commented Sep 2, 2020

Thanks for the repro. Sorry I still don't follow fully, what are you changing in the BUILD file?

@parisholley
Copy link
Author

if you checkout the repo, and run the instructions in the readme, you can reproduce the error. i'm on Mac OS 10.15.5

@damienmg
Copy link
Collaborator

damienmg commented Sep 3, 2020

Yes I can repro, this was not what I wanted to ask. You said earlier that:

if i manually edit the build files to do ./cargo/vendor/crate-name-version/path/to/file.c then it works fine (but obviously isn't a solution).

Are you editing the build.rs?

@parisholley
Copy link
Author

yep

@UebelAndre
Copy link
Collaborator

Does this happen when using remote mode with cargo raze?

@dae
Copy link
Contributor

dae commented Oct 21, 2020

@parisholley did #427 solve your problem?

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

4 participants