-
Notifications
You must be signed in to change notification settings - Fork 28.6k
refactor(turbopack): Refactor turbo-tasks-fs
to take &self
instead
#80633
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
base: canary
Are you sure you want to change the base?
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
turbo-tasks-fs
to take &self
instead
Failing test suitesCommit: 7c2c1ff
Expand output● app-dir - missing required html tags › should hmr when you fix the error
Read more about building and testing Next.js in contributing.md.
Expand output● app-dir action handling › should forward action request to a worker that contains the action handler (node)
● app-dir action handling › should forward action request to a worker that contains the action handler (edge)
Read more about building and testing Next.js in contributing.md.
Expand output● fallback-shells › without IO › should start and not postpone the response
Read more about building and testing Next.js in contributing.md. |
CodSpeed Performance ReportMerging #80633 will not alter performanceComparing Summary
|
let this = self.await?; | ||
if let Some(path) = join_path(&this.path, &path) { | ||
Ok(Self::new_normalized(*this.fs, path.into())) | ||
pub fn join(&self, path: RcStr) -> Result<Vc<Self>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dropping async
also tags this as immutable
is that correct? since it needs to read `Vc`` to be executed?
This is kind of unrelated to your PR... sorry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was intentional, but I have thought about it again because of your comment. Thank you.
I think we may need to distinguish &self
and self: Vc<Self>
from the immutability detector, but not sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My guess was that, if it's a problem, CI would catch it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two are equivalent, so you probably need some handling for this?
- taking
&self
self: Vc<Self>
and then doingself.await
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made #80646
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think we have a ton of test coverage for invalidations
What?
Take
&self
from some trivial methods.Why?
To prepare
Vc<FileSystemPath>
toFileSystemPath
.