File tree Expand file tree Collapse file tree 7 files changed +2095
-22
lines changed Expand file tree Collapse file tree 7 files changed +2095
-22
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ test: ## Run tests
30
30
fmt : # # Format go files
31
31
go fmt ./...
32
32
33
+ .PHONY : deepcopy
34
+ deepcopy :
35
+ goderive -h > /dev/null 2>&1 || go install github.com/ndeloof/goderive@fcca624b32e4a982a95a6034d7627b3c6b9a674e
36
+ goderive ./types/...
37
+
33
38
.PHONY : build-validate-image
34
39
build-validate-image :
35
40
docker build . -f ci/Dockerfile -t $(IMAGE_PREFIX ) validate
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ require (
9
9
github.com/go-viper/mapstructure/v2 v2.0.0
10
10
github.com/google/go-cmp v0.5.9
11
11
github.com/mattn/go-shellwords v1.0.12
12
- github.com/mitchellh/copystructure v1.2.0
13
12
github.com/opencontainers/go-digest v1.0.0
14
13
github.com/sirupsen/logrus v1.9.0
15
14
github.com/stretchr/testify v1.8.4
@@ -22,7 +21,6 @@ require (
22
21
23
22
require (
24
23
github.com/davecgh/go-spew v1.1.1 // indirect
25
- github.com/mitchellh/reflectwalk v1.0.2 // indirect
26
24
github.com/pmezard/go-difflib v1.0.0 // indirect
27
25
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
28
26
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
14
14
github.com/google/go-cmp v0.5.9 /go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY =
15
15
github.com/mattn/go-shellwords v1.0.12 h1:M2zGm7EW6UQJvDeQxo4T51eKPurbeFbe8WtebGE2xrk =
16
16
github.com/mattn/go-shellwords v1.0.12 /go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lLtQsUlTZDWQ8Y =
17
- github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw =
18
- github.com/mitchellh/copystructure v1.2.0 /go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s =
19
- github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ =
20
- github.com/mitchellh/reflectwalk v1.0.2 /go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw =
21
17
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U =
22
18
github.com/opencontainers/go-digest v1.0.0 /go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM =
23
19
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
Original file line number Diff line number Diff line change @@ -100,7 +100,13 @@ type Secrets map[string]SecretConfig
100
100
type Configs map [string ]ConfigObjConfig
101
101
102
102
// Extensions is a map of custom extension
103
- type Extensions map [string ]interface {}
103
+ type Extensions map [string ]any
104
+
105
+ func (e Extensions ) DeepCopy (t Extensions ) {
106
+ for k , v := range e {
107
+ t [k ] = v
108
+ }
109
+ }
104
110
105
111
// MarshalJSON makes Config implement json.Marshaler
106
112
func (c Config ) MarshalJSON () ([]byte , error ) {
You can’t perform that action at this time.
0 commit comments