1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00
denoland-deno/cli/cache
Bartek Iwańczuk fac6447815
refactor(permissions): add PermissionsContainer struct for internal mutability (#17134)
Turns out we were cloning permissions which after prompting were discarded,
so the state of permissions was never preserved. To handle that we need to store
all permissions behind "Arc<Mutex<>>" (because there are situations where we
need to send them to other thread).

Testing and benching code still uses "Permissions" in most places - it's undesirable
to share the same permission set between various test/bench files - otherwise
granting or revoking permissions in one file would influence behavior of other test
files.
2023-01-07 17:25:34 +01:00
..
check.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
common.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
deno_dir.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
disk_cache.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
emit.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
http_cache.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
incremental.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
mod.rs refactor(permissions): add PermissionsContainer struct for internal mutability (#17134) 2023-01-07 17:25:34 +01:00
node.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
parsed_source.rs chore: more debug logging and avoid allocating strings in ts logging when not debug (#16689) 2022-11-23 13:34:44 -05:00