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

Use host target directory when calling host cargo. #714

Merged
merged 2 commits into from
May 25, 2022

Conversation

Alexhuszagh
Copy link
Contributor

When using docker, the target directory is mounted at /target. However, when falling back to the host cargo, if we provide a custom target directory, we incorrectly pass it as --target-dir /target. To rectify this, this PR passes the original command-line arguments to cargo.

Fixes #619.

When using docker, the target directory is mounted at `/target`.
However, when falling back to the host cargo, if we provide a custom
target directory, we incorrectly pass it as `--target-dir /target`. To
rectify this, this PR passes the original command-line arguments to
cargo.

Fixes cross-rs#619.
@Alexhuszagh Alexhuszagh requested a review from a team as a code owner May 24, 2022 18:17
Copy link
Member

@Emilgardis Emilgardis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's no need to mention why this specific change was done in the comment, rather we should have done this from the beginning.

src/main.rs Outdated Show resolved Hide resolved
Remove unnecessary detail in comment.

Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
Copy link
Member

@Emilgardis Emilgardis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@bors
Copy link
Contributor

bors bot commented May 25, 2022

Build succeeded:

@bors bors bot merged commit c4f5ae4 into cross-rs:main May 25, 2022
@Emilgardis Emilgardis added this to the v0.2.2 milestone Jun 15, 2022
@Alexhuszagh Alexhuszagh added bug no-ci-targets PRs that do not affect any cross-compilation targets. labels Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug no-ci-targets PRs that do not affect any cross-compilation targets.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cross clean does not work with --target-dir
2 participants