Skip to content

Commit

Permalink
add tags to viper bind struct due to https://github.com/spf13/viper/p…
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorEulalio committed Jul 17, 2024
1 parent 8cfa8cc commit aee3e6f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Empty file added README.md
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion mageFile.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (Build) Local() error {
"GOARCH": "amd64",
}

if err := sh.RunWithV(env, "go", "build", "-ldflags=-s -w -extldflags='-static'", "-a", "-installsuffix", "cgo", "-o", "trivy-admission-controller", "main.go"); err != nil {
if err := sh.RunWithV(env, "go", "build", "-tags=viper_bind_struct", "-ldflags=-s -w -extldflags='-static'", "-a", "-installsuffix", "cgo", "-o", "trivy-admission-controller", "main.go"); err != nil {
return fmt.Errorf("failed to build the application: %w", err)
}

Expand Down

0 comments on commit aee3e6f

Please sign in to comment.