Executing a compiled binary from any path that is not the same as the current working directory when invoking deno compile returns a permission error even when the permission flags have been set. This started to happen since Deno 1.42.
$ ./bin/a.out
No such file or directory (os error 2): readfile 'a.txt'
$ cd bin && ./a.out
No such file or directory (os error 2): readfile 'a.txt'
Actual output:
$ ./bin/a.out
No such file or directory (os error 2): readfile 'a.txt'
$ cd bin && ./a.out
Requires read access to "a.txt", run again with the --allow-read flag
Executing a compiled binary from any path that is not the same as the current working directory when invoking
deno compile
returns a permission error even when the permission flags have been set. This started to happen since Deno 1.42.Minimal reproducible example:
Expected output:
Actual output: