Skip to content

Commit 8b515dc

Browse files
yarikopticeffigies
authored andcommittedFeb 9, 2025
Add -W (--allow-write) to deno build instructions
Without that run which asks to save results into external file would fail with error: Uncaught (in promise) PermissionDenied: Requires write access to "derivatives/bids-validator/deno-bids-validator.txt", specify the required permissions during compilation using `deno compile --allow-write` at writeFileSync (ext:deno_fs/30_fs.js:899:3) at Object.writeTextFileSync (ext:deno_fs/30_fs.js:962:10) at main (https://jsr.io/@bids/validator/2.0.1/src/main.ts:38:12) at eventLoopTick (ext:core/01_core.js:175:7) at async https://jsr.io/@bids/validator/2.0.1/src/bids-validator.ts:2:16 === Do not change lines below === { "chain": [], "cmd": "git-sedi ' -ERN' ' -ERWN'", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
1 parent 05116b4 commit 8b515dc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The BIDS Validator can be run with the [Deno][] runtime
2727
(see [Deno - Installation][] for detailed installation instructions):
2828

2929
```shell
30-
deno run -ERN jsr:@bids/validator
30+
deno run -ERWN jsr:@bids/validator
3131
```
3232

3333
Deno by default sandboxes applications like a web browser.

‎docs/user_guide/command-line.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ In general, there is no need to install Deno applications.
1010
`deno run` allows running from the Javascript Repository:
1111

1212
```sh
13-
deno run -ERN jsr:@bids/validator <dataset>
13+
deno run -ERWN jsr:@bids/validator <dataset>
1414
```
1515

1616
However, you can also install a lightweight script (into `$HOME/.deno/bin`):
1717

1818
```sh
19-
deno install -ERN -g -n bids-validator jsr:@bids/validator
19+
deno install -ERWN -g -n bids-validator jsr:@bids/validator
2020
```
2121

2222
Or compile a bundled binary:
2323

2424
```sh
25-
deno compile -ERN -o bids-validator jsr:@bids/validator
25+
deno compile -ERWN -o bids-validator jsr:@bids/validator
2626
```
2727

2828
## Usage
@@ -36,7 +36,7 @@ The BIDS Validator takes a single dataset as input:
3636
:sync: run
3737

3838
```sh
39-
deno run -ERN jsr:@bids/validator <dataset>
39+
deno run -ERWN jsr:@bids/validator <dataset>
4040
```
4141

4242
:::

0 commit comments

Comments
 (0)
Please sign in to comment.