Skip to content

Commit 9c8ee4f

Browse files
committed
remove dependency on mapstructure
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent c4e7bc8 commit 9c8ee4f

36 files changed

Lines changed: 316 additions & 2021 deletions

cli/options.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,9 @@ func (o *ProjectOptions) prepare(ctx context.Context) (*types.ConfigDetails, err
517517
return configDetails, nil
518518
}
519519

520-
// ProjectFromOptions load a compose project based on command line options
521-
// Deprecated: use ProjectOptions.LoadProject or ProjectOptions.LoadModel
520+
// ProjectFromOptions load a compose project based on command line options.
521+
//
522+
// Deprecated: use ProjectOptions.LoadProject or ProjectOptions.LoadModel.
522523
func ProjectFromOptions(ctx context.Context, options *ProjectOptions) (*types.Project, error) {
523524
return options.LoadProject(ctx)
524525
}

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ require (
66
github.com/distribution/reference v0.5.0
77
github.com/docker/go-connections v0.4.0
88
github.com/docker/go-units v0.5.0
9-
github.com/go-viper/mapstructure/v2 v2.4.0
109
github.com/google/go-cmp v0.5.9
1110
github.com/mattn/go-shellwords v1.0.12
1211
github.com/opencontainers/go-digest v1.0.0

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKoh
99
github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
1010
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
1111
github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
12-
github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs=
13-
github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
1412
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
1513
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
1614
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=

interpolation/node_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ services:
5858
web:
5959
image: ${IMAGE:-default}
6060
`
61-
lookup := func(key string) (string, bool) {
61+
lookup := func(_ string) (string, bool) {
6262
return "", false
6363
}
6464

@@ -83,7 +83,7 @@ services:
8383
ports:
8484
- "8080"
8585
`
86-
lookup := func(key string) (string, bool) {
86+
lookup := func(_ string) (string, bool) {
8787
return "", false
8888
}
8989

@@ -198,7 +198,7 @@ services:
198198
web:
199199
image: ${IMAGE:?}
200200
`
201-
lookup := func(key string) (string, bool) {
201+
lookup := func(_ string) (string, bool) {
202202
return "", false
203203
}
204204

0 commit comments

Comments
 (0)