Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
cbb858f0
Unverified
Commit
cbb858f0
authored
Feb 25, 2026
by
Niklas Mischkulnig
Committed by
GitHub
Feb 25, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turbopack: emit env_diff span attribute for update (#90466)
it already existed for `.create()`, but not `.update()`
parent
782f1662
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
121 additions
and
105 deletions
+121
-105
project.rs
crates/next-api/src/project.rs
+121
-105
No files found.
crates/next-api/src/project.rs
View file @
cbb858f0
...
@@ -608,8 +608,14 @@ impl ProjectContainer {
...
@@ -608,8 +608,14 @@ impl ProjectContainer {
.await
.await
}
}
#[tracing
::
instrument(level
=
"info"
,
name
=
"update project options"
,
skip_all)]
pub
async
fn
update
(
self
:
Vc
<
Self
>
,
options
:
PartialProjectOptions
)
->
Result
<
()
>
{
pub
async
fn
update
(
self
:
Vc
<
Self
>
,
options
:
PartialProjectOptions
)
->
Result
<
()
>
{
let
span
=
tracing
::
info_span!
(
"update project options"
,
project_name
=
%
self
.await
?
.name
,
env_diff
=
Empty
);
let
span_clone
=
span
.clone
();
async
move
{
let
PartialProjectOptions
{
let
PartialProjectOptions
{
root_path
,
root_path
,
project_path
,
project_path
,
...
@@ -692,6 +698,13 @@ impl ProjectContainer {
...
@@ -692,6 +698,13 @@ impl ProjectContainer {
.read_strongly_consistent
()
.read_strongly_consistent
()
.await
?
;
.await
?
;
if
let
Some
(
old_options
)
=
&*
this
.options_state
.get_untracked
()
{
span
.record
(
"env_diff"
,
define_env_diff_report
(
&
old_options
.define_env
,
&
new_options
.define_env
)
.as_str
(),
);
}
this
.options_state
.set
(
Some
(
new_options
));
this
.options_state
.set
(
Some
(
new_options
));
let
project
=
project_operation
(
resolved_self
)
let
project
=
project_operation
(
resolved_self
)
.resolve_strongly_consistent
()
.resolve_strongly_consistent
()
...
@@ -724,6 +737,9 @@ impl ProjectContainer {
...
@@ -724,6 +737,9 @@ impl ProjectContainer {
Ok
(())
Ok
(())
}
}
.instrument
(
span_clone
)
.await
}
}
}
#[turbo_tasks
::
value_impl]
#[turbo_tasks
::
value_impl]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment