-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
fix(compile): relative permissions should be retained as relative #23719
fix(compile): relative permissions should be retained as relative #23719
Conversation
@@ -134,7 +134,7 @@ pub enum NodeModules { | |||
pub struct Metadata { | |||
pub argv: Vec<String>, | |||
pub seed: Option<u64>, | |||
pub permissions: PermissionsOptions, | |||
pub permissions: PermissionFlags, |
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.
Fix is here. Instead of storing the resolved PermissionsOptions
we store the raw flags.
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.
LGTM
pub reload: bool, | ||
pub seed: Option<u64>, | ||
pub strace_ops: Option<Vec<String>>, | ||
pub unstable_config: UnstableConfig, | ||
pub unsafely_ignore_certificate_errors: Option<Vec<String>>, | ||
pub v8_flags: Vec<String>, | ||
pub code_cache_enabled: bool, | ||
pub permissions: PermissionFlags, |
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's a nice cleanup but I wish it was done in a separate PR, makes reviewing this one a lot harder.
"steps": [{ | ||
"if": "unix", | ||
"args": "compile --output=main --no-prompt --allow-read=a.txt main.ts", | ||
"output": "[WILDCARD]" | ||
}, { | ||
"if": "unix", | ||
"commandName": "./main", | ||
"args": [], | ||
"output": "No such file[WILDCARD]" | ||
}, { | ||
"if": "unix", | ||
"args": [ | ||
"eval", | ||
"Deno.mkdirSync('sub_dir');" | ||
], | ||
"output": "[WILDCARD]" | ||
}, { | ||
"if": "unix", | ||
"commandName": "../main", | ||
"cwd": "sub_dir", | ||
"args": [], | ||
"output": "No such file[WILDCARD]" | ||
}] |
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.
Nice flex on what spec tests can do now :)
Closes #23715