You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The usual (and expected) behavior behind top-level allow script option is that it's merged with allow of subsequent script. This isn't problem at all.
But why --allow-* flags are being added to any command besides "deno run"? For example, whenever these are appended to "deno cache", it will complain about unexpected flags. Notice again that top-level allow is sebsequently inherited by all scripts. These flags are mostly specific to "deno run" only.
Describe the solution you'd like
Add condition to check whether full command starts with "deno run" and append --allow-* flags only when this condition is satisfied.
Describe alternatives you've considered
As workaround, I plant allow option individually on each script that involves "deno run".
Is your feature request related to a problem? Please describe.
The usual (and expected) behavior behind top-level
allow
script option is that it's merged withallow
of subsequent script. This isn't problem at all.But why
--allow-*
flags are being added to any command besides "deno run"? For example, whenever these are appended to "deno cache", it will complain about unexpected flags. Notice again that top-levelallow
is sebsequently inherited by all scripts. These flags are mostly specific to "deno run" only.Describe the solution you'd like
Add condition to check whether full command starts with "deno run" and append
--allow-*
flags only when this condition is satisfied.Describe alternatives you've considered
As workaround, I plant
allow
option individually on each script that involves "deno run".Additional context
Denon resolves "lock" script to:
To which "deno cache" returns error:
It can happen basically with any command besides "deno run".
The text was updated successfully, but these errors were encountered: