Skip to content

Commit 6689c36

Browse files
Add excludes support to generated go.mod (#63)
Signed-off-by: Anthony J Mirabella <[email protected]> Co-authored-by: Juraci Paixão Kröhling <[email protected]>
1 parent 10e9c07 commit 6689c36

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

internal/builder/config.go

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ type Config struct {
4242
Receivers []Module `mapstructure:"receivers"`
4343
Processors []Module `mapstructure:"processors"`
4444
Replaces []string `mapstructure:"replaces"`
45+
Excludes []string `mapstructure:"excludes"`
4546
}
4647

4748
// Distribution holds the parameters for the final binary

internal/scaffold/gomod.go

+3
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,7 @@ require (
5050
{{- range .Replaces}}
5151
replace {{.}}
5252
{{- end}}
53+
{{- range .Excludes}}
54+
exclude {{.}}
55+
{{- end}}
5356
`

0 commit comments

Comments
 (0)