Skip to content

Commit

Permalink
Update docs/design/dfx-extensions.md
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Swanson <[email protected]>
  • Loading branch information
Marcin Nowak-Liebiediew and ericswanson-dfinity authored Nov 3, 2023
1 parent 864f156 commit b54bbc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/design/dfx-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Installed extensions are stored in `dfx`'s cache. Let's say you have `sns` exten
└── sns-cli
```

When requested to run an extension, dfx fetches the location of the executable associated with the extension, by determining the cache location associated with its current version, and searching for directory with extension name inside: `$(dfx cache show)/extensions/EXT_NAME/EXT_NAME`. Fox example , when you're running `dfx sns ARGS` or `dfx extension run sns ARGS`, `dfx` will try to find and extension under this path: `$(dfx cache show)/extensions/sns/sns`.
When requested to run an extension, dfx fetches the location of the executable associated with the extension, by determining the cache location associated with its current version, and searching for directory with extension name inside: `$(dfx cache show)/extensions/EXT_NAME/EXT_NAME`. Fox example , when you're running `dfx sns ARGS` or `dfx extension run sns ARGS`, `dfx` will try to find the extension binary at this path: `$(dfx cache show)/extensions/sns/sns`.

When executing the binary, the path to the cache is appended as an argument when invoking the extension's executable, in practice that means the extension will always be executed with `--dfx-cache-path $(dfx cache show)` parameter, like so: `exec $(dfx cache show)/extensions/sns/sns --dfx-cache-path $(dfx cache show)`. This allows the extension to depend on other extensions, and binaries stored in dfx's cache.

Expand Down

0 comments on commit b54bbc2

Please sign in to comment.