Skip to content

Use subdirectory within target/tests/#219

Merged
dtolnay merged 1 commit into
dtolnay:masterfrom
ijackson:namespace-test-directory
Jan 15, 2023
Merged

Use subdirectory within target/tests/#219
dtolnay merged 1 commit into
dtolnay:masterfrom
ijackson:namespace-test-directory

Conversation

@ijackson

Copy link
Copy Markdown
Contributor

Or to put it another way, do not assume that the project's target/tests/target/ is ours to use as we wish.

Empirically, this is sufficient on its own to resolve
eupn/macrotest#83
#218

(I don't know precisely what the difference is between trybuild's and mcarotest's build invocations. It is possible that it would be better for cargo to be able to cache both in the target directory, but I think we should use a namespaced directory, regardless.)

I will be submitting a similar merge request for macrotest, which, likewise, is sufficient on its own to resolve the problem I was experiencing. I think these changes should be made to both packages.

Or to put it another way, do not assume that the project's
target/tests/target/ is ours to use as we wish.

Empirically, this is sufficient on its own to resolve
  eupn/macrotest#83
  dtolnay#218

(I don't know precisely what the difference is between trybuild's and
mcarotest's build invocations.  It is possible that it would be better
for cargo to be able to cache both in the target directory, but I
think we should use a namespaced directory, regardless.)

@dtolnay dtolnay left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks!

@dtolnay dtolnay merged commit cd40633 into dtolnay:master Jan 15, 2023
bors Bot added a commit to taiki-e/cargo-llvm-cov that referenced this pull request Jan 15, 2023
238: Address target directory change in trybuild 1.0.76 r=taiki-e a=taiki-e

See dtolnay/trybuild#219

Co-authored-by: Taiki Endo <te316e89@gmail.com>
djc pushed a commit to askama-rs/askama-old that referenced this pull request Jan 24, 2023
In <dtolnay/trybuild#219> the output of error
messages was subtly changed, because they introduced a subdirectoy in
their temp path.

This PR fixes the mismatch between the expected and the actual output.
@ijackson ijackson deleted the namespace-test-directory branch March 4, 2023 12:31
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.

2 participants