Skip to content
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

refactor(cli): Create wrapper around deno_lockfile::Lockfile #24366

Merged
merged 5 commits into from
Jun 29, 2024

Conversation

nathanwhit
Copy link
Member

As suggested in #24355 (comment).

I wasn't able to hide the mutex stuff as much as I'd like (ended up just adding an escape hatch inner() method that locks the inner mutex), because you can't return references to the inner fields through a mutex.

This is mostly motivated by the frozen lockfile changes

@nathanwhit nathanwhit requested a review from dsherret June 28, 2024 21:00
cli/lockfile.rs Outdated Show resolved Hide resolved
cli/lockfile.rs Outdated Show resolved Hide resolved
cli/lockfile.rs Outdated Show resolved Hide resolved
cli/lockfile.rs Outdated Show resolved Hide resolved
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

Nice! LGTM

@nathanwhit nathanwhit merged commit bc8a0e6 into denoland:main Jun 29, 2024
17 checks passed
sbmsr pushed a commit to sbmsr/deno-1 that referenced this pull request Jul 2, 2024
…and#24366)

As suggested in
denoland#24355 (comment).

I wasn't able to hide the mutex stuff as much as I'd like (ended up just
adding an escape hatch `inner()` method that locks the inner mutex),
because you can't return references to the inner fields through a mutex.

This is mostly motivated by the frozen lockfile changes
zebreus pushed a commit to zebreus/deno that referenced this pull request Jul 8, 2024
…and#24366)

As suggested in
denoland#24355 (comment).

I wasn't able to hide the mutex stuff as much as I'd like (ended up just
adding an escape hatch `inner()` method that locks the inner mutex),
because you can't return references to the inner fields through a mutex.

This is mostly motivated by the frozen lockfile changes
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.

None yet

2 participants