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

Round two of fixing #124 #129

Merged
merged 1 commit into from
Feb 14, 2021
Merged

Round two of fixing #124 #129

merged 1 commit into from
Feb 14, 2021

Conversation

thedodd
Copy link
Member

@thedodd thedodd commented Feb 11, 2021

This time, the path was being canonicalized in another location. My
original verification apparently did not account for this.

All calls to canonicalize have been audited, and every location where
such is called, it is also expected that the path exist, and is indeed
considered an error if it does not exist.

closes #124

Checklist

  • Updated CHANGELOG.md describing pertinent changes.
  • Updated README.md with pertinent info (may not always apply).

@thedodd thedodd self-assigned this Feb 11, 2021
@thedodd thedodd added the bug Something isn't working label Feb 11, 2021
.await
.context("error taking canonical path to cargo target dir")?;
let _ = chan.try_send(target_dir.into());
let _ = chan.try_send(self.manifest.metadata.target_directory.clone());
}
Copy link
Member Author

Choose a reason for hiding this comment

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

For those reviewing, self.manifest.metadata.target_directory always comes out of cargo_metadata as a canonical path.

This time, the path was being canonicalized in another location. My
original verification apparently did not account for this.

All calls to `canonicalize` have been audited, and every location where
such is called, it is also expected that the path exist, and is indeed
considered an error if it does not exist.
@thedodd thedodd merged commit 6dc36e7 into master Feb 14, 2021
@thedodd thedodd deleted the 124-round-two branch February 14, 2021 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

trunk 0.8.0 fails to build if the target directory does not already exist
1 participant