-
-
Notifications
You must be signed in to change notification settings - Fork 35.7k
Snapshotting is persisting the cwdΒ #49675
Copy link
Copy link
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.snapshotIssues and PRs related to the startup snapshotIssues and PRs related to the startup snapshot
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.snapshotIssues and PRs related to the startup snapshotIssues and PRs related to the startup snapshot
Type
Fields
Give feedbackNo fields configured for issues without a type.
Version
v20.6.1
Platform
Darwin
Subsystem
snapshots
What steps will reproduce the bug?
Generate a snapshot of the given script, then run it from a different directory. The
process.cwd()function will keep returning the cwd you had while building the snapshot.How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
It should return the actual cwd.
What do you see instead?
It returns the cwd at the time of
--build-snapshot.Additional information
No response