mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
fix: build hashicorp plugin failed when creating scaffold
This commit is contained in:
@@ -65,6 +65,11 @@ func CreateScaffold(projectName string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// create go mod
|
||||||
|
if err := execCommand(exec.Command("go", "mod", "init", "plugin"), pluginDir); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
// download plugin dependency
|
// download plugin dependency
|
||||||
if err := execCommand(exec.Command("go", "get", "github.com/httprunner/hrp/plugin"), pluginDir); err != nil {
|
if err := execCommand(exec.Command("go", "get", "github.com/httprunner/hrp/plugin"), pluginDir); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user