You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ deno --versiondeno 2.1.3 (stable, release, x86_64-pc-windows-msvc)v8 13.0.245.12-rustytypescript 5.6.2
$ deno eval'console.log(Deno.build)'{ target: "x86_64-pc-windows-msvc", arch: "x86_64", os: "windows", vendor: "pc", env: "msvc"}
$ deployctl deployments showℹ Using config file 'C:\Users\[redacted]\[project-name]\deno.json'⚠ Failed to get token from credentials file. Will provision a new token for this execution but please make sure to fix the issue afterwards. ✖ The credentials file has been tampered with and will be ignored. Please delete it.ℹ Provisioning a new access token...ℹ Authorization URL: https://dash.deno.com/signin/cli?claim_challenge=[redacted]⠴ Waiting for authorization...
(Nearly?) all actions with deployctl will continuously open the browser to request for a new token.
Checking through the source code, I believe it is because deployctl checks for the permission of the ~/.deno/deployctl/credentials.json file.
This is extremely annoying and opinionated? Why are you checking the permissions of the file. Also, if you're going to check them, at least do it in an os agnostic way.
(Nearly?) all actions with deployctl will continuously open the browser to request for a new token.
Checking through the source code, I believe it is because deployctl checks for the permission of the
~/.deno/deployctl/credentials.json
file.deployctl/src/utils/token_storage/fs.ts
Lines 3 to 10 in 873e36e
This wouldn't really work on Windows, since it does not support Unix style permission flags.
As a recommendation, perhaps we could completely ignore the permission check, if the OS is Windows?
The text was updated successfully, but these errors were encountered: