Skip to content

Commit

Permalink
Merge pull request #141 from tgulacsi/master
Browse files Browse the repository at this point in the history
add --tags for build.AllTags
  • Loading branch information
GeertJohan authored Nov 2, 2019
2 parents 48f549f + 3088e81 commit d954009
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rice/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ var flags struct {
EmbedGo struct{} `command:"embed-go" alias:"embed"`
EmbedSyso struct{} `command:"embed-syso"`
Clean struct{} `command:"clean"`

Tags []string `long:"tags" description:"Tags to use with the implicit go build"`
}

// flags parser
Expand Down
1 change: 1 addition & 0 deletions rice/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func main() {
var pkgs []*build.Package
for _, importPath := range flags.ImportPaths {
pkg := pkgForPath(importPath)
pkg.AllTags = flags.Tags
pkgs = append(pkgs, pkg)
}

Expand Down

0 comments on commit d954009

Please sign in to comment.