Skip to content

Instantly share code, notes, and snippets.

@iugo
Last active September 11, 2022 01:53
Show Gist options
  • Save iugo/66cf24ad826734d611e4b348f4308adf to your computer and use it in GitHub Desktop.
Save iugo/66cf24ad826734d611e4b348f4308adf to your computer and use it in GitHub Desktop.
deno 1.25.1 NotFound: No such file or directory (os error 2)
import { test } from './test-main.ts';
Deno.test('test', async () => {
await test();
})
// deno run -A test-main.ts
export async function test() {
const p = Deno.run({cmd: ['deno', 'run', '-A', 'test-mod.ts'], env: { ABC: '123' }})
await p.status()
p.close()
}
await test()
const v = Deno.env.get('ABC');
console.log(v);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment