mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +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
|
||||
}
|
||||
|
||||
// create go mod
|
||||
if err := execCommand(exec.Command("go", "mod", "init", "plugin"), pluginDir); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// download plugin dependency
|
||||
if err := execCommand(exec.Command("go", "get", "github.com/httprunner/hrp/plugin"), pluginDir); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user