Skip to content

Commit

Permalink
update plugin-extensibility.md spec (#191)
Browse files Browse the repository at this point in the history
* Update plugin-extensibility.md spec
According to directory structure spec in notation repo, the plugin directory should be updated.

Signed-off-by: Junjie Gao <[email protected]>
  • Loading branch information
JeyJeyGao authored Feb 1, 2023
1 parent 900a36d commit ab8c0a0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions specs/plugin-extensibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ Plugin publisher will provide instructions to download and install the plugin. P

**Open Item** : [Plugin install paths](https://github.com/notaryproject/notation/issues/167)

To enumerate all available plugins the following paths are scanned:
To enumerate all available plugins the `PLUGIN_DIRECTORY` is scanned based on per OS:
| OS | PLUGIN_DIRECTORY |
| ------- | ---------------------------------------------------- |
| Unix | `$XDG_CONFIG_HOME/notation/plugins` |
| Windows | `%AppData%/notation/plugins` |
| Darwin | `$HOME/Library/Application Support/notation/plugins` |

* Unix-like OSes:
* `$HOME/notation/plugins`
* On Windows:
* `%USERPROFILE%\notation\plugins`
Each plugin executable must be located under `$PLUGIN_DIRECTORY/{plugin-name}` directory, with executable named as `notation-{plugin-name}`.

Each plugin executable and dependencies are installed under directory `~/notation/plugins/{plugin-name}` with an executable under that directory `~/notation/plugins/{plugin-name}/notation-{plugin-name}`.

Any directory found inside `~/notation/plugins` is considered potential plugin "candidates". Anything found which is not a directory is ignored and is not considered as a plugin candidate.
Any directory found inside `$PLUGIN_DIRECTORY` is considered potential plugin "candidates". Anything found which is not a directory is ignored and is not considered as a plugin candidate.

To be considered a valid plugin a candidate must pass each of these "plugin candidate tests":

Expand Down

0 comments on commit ab8c0a0

Please sign in to comment.