Allowing read permissions did not used to be necessary.
After #154 deno is suggesting that we add more permissions.
error: Uncaught (in promise) NotCapable: Requires read access to <CWD>, run again with the --allow-read flag
at Process.cwd (ext:deno_fs/30_fs.js:151:10)
at Object.<anonymous> (file:///home/runner/work/bgutil-ytdlp-pot-provider/bgutil-ytdlp-pot-provider/server/node_modules/.deno/depd@2.0.0/node_modules/depd/index.js:23:24)
at Object.<anonymous> (file:///home/runner/work/bgutil-ytdlp-pot-provider/bgutil-ytdlp-pot-provider/server/node_modules/.deno/depd@2.0.0/node_modules/depd/index.js:540:4)
at Module._compile (node:module:748:34)
at Object.Module._extensions..js (node:module:767:10)
at Module.load (node:module:665:32)
at Function.Module._load (node:module:537:12)
at Module.require (node:module:684:19)
at require (node:module:808:16)
at Object.<anonymous> (file:///home/runner/work/bgutil-ytdlp-pot-provider/bgutil-ytdlp-pot-provider/server/node_modules/.deno/router@2.2.0/node_modules/router/lib/layer.js:18:19)
After researching this error and finding it was fixed in deno 2.2 it has dawned on me that the workflow is using 2.0 as our minimum supported version.
There is likely no issue with using depd and the latest deno version.
Allowing read permissions did not used to be necessary.
After #154 deno is suggesting that we add more permissions.
After researching this error and finding it was fixed in
deno2.2it has dawned on me that the workflow is using2.0as our minimum supported version.There is likely no issue with using depd and the latest deno version.