Skip to content

Commit

Permalink
Fix empty build tags adding a tags parameter (#874)
Browse files Browse the repository at this point in the history
fix empty build tags
  • Loading branch information
RangelReale authored Dec 30, 2024
1 parent f6c261b commit 6a54b28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/mockery.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ func (r *RootApp) Run() error {
if r.Config.Print {
osp = &pkg.StdoutStreamProvider{}
}
buildTags := strings.Split(r.Config.BuildTags, " ")
var buildTags []string
if r.Config.BuildTags != "" {
buildTags = strings.Split(r.Config.BuildTags, " ")
}

var boilerplate string
if r.Config.BoilerplateFile != "" {
Expand Down

0 comments on commit 6a54b28

Please sign in to comment.