Skip to content

Consider avoiding depd #184

@tcely

Description

@tcely

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions