Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Commit

Permalink
Add excludes support to generated go.mod (#63)
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

Co-authored-by: Juraci Paixão Kröhling <juraci@kroehling.de>
  • Loading branch information
Aneurysm9 and jpkrohling authored Aug 25, 2021
1 parent 10e9c07 commit 6689c36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/builder/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type Config struct {
Receivers []Module `mapstructure:"receivers"`
Processors []Module `mapstructure:"processors"`
Replaces []string `mapstructure:"replaces"`
Excludes []string `mapstructure:"excludes"`
}

// Distribution holds the parameters for the final binary
Expand Down
3 changes: 3 additions & 0 deletions internal/scaffold/gomod.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@ require (
{{- range .Replaces}}
replace {{.}}
{{- end}}
{{- range .Excludes}}
exclude {{.}}
{{- end}}
`

0 comments on commit 6689c36

Please sign in to comment.