You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by ro...@apache.org on 2024/07/31 07:06:58 UTC
(incubator-answer-website) 01/01: refactor: update plugin import path in plugin.md
This is an automated email from the ASF dual-hosted git repository.
robin0716 pushed a commit to branch fix/plugins
in repository https://gitbox.apache.org/repos/asf/incubator-answer-website.git
commit 0d6dc4c288949d1c876ddd83cb8b167fde7b5bab
Author: robin <ro...@rnode.me>
AuthorDate: Wed Jul 31 15:06:46 2024 +0800
refactor: update plugin import path in plugin.md
---
docs/development/plugins/plugin.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/development/plugins/plugin.md b/docs/development/plugins/plugin.md
index b31eff1ef..fb6ee8e70 100644
--- a/docs/development/plugins/plugin.md
+++ b/docs/development/plugins/plugin.md
@@ -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.