Skip to content

Commit

Permalink
refactor: update plugin import path in plugin.md
Browse files Browse the repository at this point in the history
  • Loading branch information
robinv8 committed Jul 31, 2024
1 parent fbe209c commit 7b901b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/development/plugins/plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ npx create-answer-plugin <pluginName>
answercmd "github.com/apache/incubator-answer/cmd"

// Import the plugins
_ "github.com/apache/incubator-answer/ui/src/plugins/my-plugin"
_ "github.com/apache/incubator-answer-plugins/my-plugin"
)
```
3. Use `go mod edit` to add the plugin to the `go.mod` file.

```shell
go mod edit -replace=github.com/apache/incubator-answer/ui/src/plugins/my-plugin=../ui/src/plugins/my-plugin
go mod edit -replace=github.com/apache/incubator-answer-plugins/my-plugin=./ui/src/plugins/my-plugin
```
4. Update the dependencies.

Expand Down

0 comments on commit 7b901b3

Please sign in to comment.