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

Deno emit ignores No Prompt for permissions #3

Open
irbull opened this issue May 18, 2022 · 1 comment
Open

Deno emit ignores No Prompt for permissions #3

irbull opened this issue May 18, 2022 · 1 comment
Labels
upstream An issue with an upstream dependency

Comments

@irbull
Copy link

irbull commented May 18, 2022

With the following example:

// example.ts
import { emit } from "https://deno.land/x/emit@0.0.1/mod.ts";

const url = new URL("./example.ts", import.meta.url);
const result = await emit(url.href);

console.log(result);

If I try to run it with:

deno run --no-prompt emit_example.ts

or if I set:

export DENO_NO_PROMPT=1 

Deno still prompts for permissions. This happens with Deno 1.22.0 🦖. I test this with a simple example that just Deno.readFileSync and the flags work fine there, so it seems specific to Deno Emit.

@kitsonk kitsonk added the upstream An issue with an upstream dependency label May 19, 2022
@kitsonk
Copy link
Contributor

kitsonk commented May 19, 2022

This is an upstream issue with https://github.com/kitsonk/deno_cache, in that deno_cache prompts for permissions it requires to work properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream An issue with an upstream dependency
Projects
None yet
Development

No branches or pull requests

2 participants