Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Commit

Permalink
fix: build hashicorp plugin failed when creating scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
debugtalk committed Jan 25, 2022
1 parent 0694ffe commit a3b3ead
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/scaffold/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a3b3ead

Please sign in to comment.