Skip to content

_cargo_build_script_run not executing relative to crate? #391

Closed

Description

@parisholley

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).

Activity

  1. damienmg commented on Sep 2, 2020

    @damienmg
    Collaborator

    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?

  2. damienmg commented on Sep 2, 2020

    @damienmg
    Collaborator

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

  3. parisholley commented on Sep 2, 2020

    @parisholley
    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

  4. damienmg commented on Sep 3, 2020

    @damienmg
    Collaborator

    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?

  5. parisholley commented on Sep 3, 2020

    @parisholley
    Author

    yep

  6. UebelAndre commented on Sep 11, 2020

    @UebelAndre
    Collaborator

    Does this happen when using remote mode with cargo raze?

  7. dae commented on Oct 21, 2020

    @dae
    Contributor

    @parisholley did #427 solve your problem?

  8. UebelAndre commented on Feb 16, 2026

    @UebelAndre
    Collaborator

    Closed by #427

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions