Skip to content

Commit

Permalink
Merge pull request #13 from PereRohit/feat/mockgen_install-dep
Browse files Browse the repository at this point in the history
fix issue #7
  • Loading branch information
PereRohit authored Sep 23, 2022
2 parents 9ab6657 + 70383a9 commit fe22259
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ Gos [text/template](https://pkg.go.dev/text/template) is used to generate basic
## Installation
#### Prerequisites
- [go](https://go.dev/dl/)
- [mockgen](https://github.com/golang/mock#installation)
```bash
go install github.com/PereRohit/gosvc/cmd/[email protected].9
go install github.com/PereRohit/gosvc/cmd/[email protected].10
```

## Usage
Expand Down
8 changes: 7 additions & 1 deletion cmd/gosvc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
)

const (
VERSION = "gosvc 0.0.9"
VERSION = "gosvc 0.0.10"
)

var (
Expand Down Expand Up @@ -219,6 +219,12 @@ func main() {
os.Exit(1)
}

// ISSUE #7:install required mockgen
err = CommandRunner("go", "install", "github.com/golang/mock/[email protected]")
if err != nil {
return
}

err = CommandRunner("go", "generate", "./...")
if err != nil {
return
Expand Down

0 comments on commit fe22259

Please sign in to comment.