Skip to content

Conversation

nullstalgia
Copy link

Howdy howdy.

I noticed that when running my file with rust-script directly rather than the shebang, that recompilation was occurring, as a whole new project was being created for a file I had used with a shebang earlier!

It turns out that the path that rust-script throws together was different between runs to the same file, depending on how it was reached:

Before:

image

After:

image

The canonicalization is technically a fallible operation, but I'd be very surprised if cargo doesn't do the same internally. 🐈‍⬛

I think this interacts positively with #121, as they also had issue with the same behavior I observed but under a different perspective.

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.

1 participant