Skip to content

Ensure copied Cargo.lock is writable#98

Merged
phil-opp merged 1 commit into
rust-osdev:masterfrom
astro:writable-cargo-lock
Jan 25, 2021
Merged

Ensure copied Cargo.lock is writable#98
phil-opp merged 1 commit into
rust-osdev:masterfrom
astro:writable-cargo-lock

Conversation

@astro

@astro astro commented Nov 13, 2020

Copy link
Copy Markdown

Updated from #96:

If the path pointed to by XARGO_RUST_SRC contains read-only Cargo
lockfiles, then xbuild fails because the copies it makes and attempts to
modify are also read-only.

@astro
astro force-pushed the writable-cargo-lock branch from a75bb56 to 12fa703 Compare November 13, 2020 20:15

@phil-opp phil-opp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! I left two inline comments about the error handling, but otherwise this looks good to me.

Comment thread src/sysroot.rs Outdated
Comment thread src/sysroot.rs Outdated
> If the path pointed to by XARGO_RUST_SRC contains read-only Cargo
> lockfiles, then xbuild fails because the copies it makes and attempts to
> modify are also read-only.
@astro
astro force-pushed the writable-cargo-lock branch from 12fa703 to 8f597f3 Compare January 21, 2021 22:18
@astro

astro commented Jan 21, 2021

Copy link
Copy Markdown
Author

Thank you for your feedback. PR updated.

@phil-opp

Copy link
Copy Markdown
Member

Thanks!

@phil-opp
phil-opp merged commit 5753165 into rust-osdev:master Jan 25, 2021
phil-opp added a commit that referenced this pull request Jan 25, 2021
@phil-opp

Copy link
Copy Markdown
Member

Published as v0.6.5

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

Successfully merging this pull request may close these issues.

3 participants