Skip to content

Commit 334210f

Browse files
authored
Merge pull request #416 from docker/pass/fix
fix: properly rename pass module to plugins/pass
2 parents 719ac2b + 6ea8c06 commit 334210f

12 files changed

Lines changed: 21 additions & 19 deletions

File tree

client/.gomodguard.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ blocked:
55
reason: "Forbidden dependency"
66
- github.com/docker/secrets-engine/injector:
77
reason: "Forbidden dependency"
8-
- github.com/docker/secrets-engine/pass:
9-
reason: "Forbidden dependency"
108
- github.com/docker/secrets-engine/plugin:
119
reason: "Forbidden dependency"
10+
- github.com/docker/secrets-engine/plugins/pass:
11+
reason: "Forbidden dependency"
1212
- github.com/docker/secrets-engine/store:
1313
reason: "Forbidden dependency"

go.work.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443/go.mod h1:W+zGtBO5Y1Ig
1919
github.com/containerd/errdefs v1.0.0/go.mod h1:+YBYIdtsnF4Iw6nWZhJcqGSg/dwvV7tyJ/kCkyJ2k+M=
2020
github.com/containerd/errdefs/pkg v0.3.0/go.mod h1:NJw6s9HwNuRhnjJhM7pylWwMyAkmCQvQ4GpJHEqRLVk=
2121
github.com/containerd/typeurl/v2 v2.2.0/go.mod h1:8XOOxnyatxSWuG8OfsZXVnAF4iZfedjS/8UHSPJnX4g=
22+
github.com/creack/pty v1.1.24/go.mod h1:08sCNb52WyoAwi2QDyzUCTgcvVFhUzewun7wtTfvcwE=
2223
github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
2324
github.com/docker/cli v29.0.4+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
2425
github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
@@ -133,4 +134,5 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T
133134
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
134135
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
135136
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
137+
pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04=
136138
sigs.k8s.io/randfill v1.0.0/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY=

plugin/.gomodguard.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ blocked:
77
reason: "Forbidden dependency"
88
- github.com/docker/secrets-engine/injector:
99
reason: "Forbidden dependency"
10-
- github.com/docker/secrets-engine/pass:
10+
- github.com/docker/secrets-engine/plugins/pass:
1111
reason: "Forbidden dependency"
1212
- github.com/docker/secrets-engine/store:
1313
reason: "Forbidden dependency"

plugins/pass/command.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"go.opentelemetry.io/otel/trace"
1414
"golang.org/x/term"
1515

16-
"github.com/docker/secrets-engine/pass/commands"
16+
"github.com/docker/secrets-engine/plugins/pass/commands"
1717
"github.com/docker/secrets-engine/store"
1818
)
1919

@@ -64,8 +64,8 @@ func Root(ctx context.Context, s store.Store, info commands.VersionInfo) *cobra.
6464
}
6565

6666
const (
67-
meterName = "github.com/docker/secrets-engine/pass"
68-
tracerName = "github.com/docker/secrets-engine/pass"
67+
meterName = "github.com/docker/secrets-engine/plugins/pass"
68+
tracerName = "github.com/docker/secrets-engine/plugins/pass"
6969
)
7070

7171
func int64counter(counter string, opts ...metric.Int64CounterOption) metric.Int64Counter {

plugins/pass/command_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
"go.opentelemetry.io/otel/codes"
1212
"go.opentelemetry.io/otel/sdk/metric/metricdata"
1313

14-
"github.com/docker/secrets-engine/pass/commands"
15-
pass "github.com/docker/secrets-engine/pass/store"
16-
"github.com/docker/secrets-engine/pass/teststore"
14+
"github.com/docker/secrets-engine/plugins/pass/commands"
15+
pass "github.com/docker/secrets-engine/plugins/pass/store"
16+
"github.com/docker/secrets-engine/plugins/pass/teststore"
1717
"github.com/docker/secrets-engine/store"
1818
"github.com/docker/secrets-engine/x/secrets"
1919
"github.com/docker/secrets-engine/x/testhelper"

plugins/pass/commands/get.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/spf13/cobra"
77

8-
pass "github.com/docker/secrets-engine/pass/store"
8+
pass "github.com/docker/secrets-engine/plugins/pass/store"
99
"github.com/docker/secrets-engine/store"
1010
)
1111

plugins/pass/commands/set.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/spf13/cobra"
1010

11-
pass "github.com/docker/secrets-engine/pass/store"
11+
pass "github.com/docker/secrets-engine/plugins/pass/store"
1212
"github.com/docker/secrets-engine/store"
1313
"github.com/docker/secrets-engine/x/secrets"
1414
)

plugins/pass/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/docker/secrets-engine/pass
1+
module github.com/docker/secrets-engine/plugins/pass
22

33
go 1.25.0
44

plugins/pass/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55
"errors"
66

7-
pass "github.com/docker/secrets-engine/pass/store"
87
"github.com/docker/secrets-engine/plugin"
8+
pass "github.com/docker/secrets-engine/plugins/pass/store"
99
"github.com/docker/secrets-engine/store"
1010
)
1111

plugins/pass/plugin_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"github.com/stretchr/testify/assert"
1010
"github.com/stretchr/testify/require"
1111

12-
pass "github.com/docker/secrets-engine/pass/store"
13-
"github.com/docker/secrets-engine/pass/teststore"
12+
pass "github.com/docker/secrets-engine/plugins/pass/store"
13+
"github.com/docker/secrets-engine/plugins/pass/teststore"
1414
"github.com/docker/secrets-engine/store"
1515
"github.com/docker/secrets-engine/x/secrets"
1616
"github.com/docker/secrets-engine/x/testhelper"

0 commit comments

Comments
 (0)