Skip to content

Commit 84d404b

Browse files
authored
[envsec] use filecache from opensource/pkg (#177)
## Summary Can remove the `internal/filecache` now that the `jetpack-io/pkg` repository has it. Also did: ``` go get -u go.jetpack.io/pkg go mod tidy ``` ## How was it tested? compiles
1 parent b702e87 commit 84d404b

File tree

4 files changed

+9
-99
lines changed

4 files changed

+9
-99
lines changed

envsec/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ require (
1919
github.com/pkg/errors v0.9.1
2020
github.com/samber/lo v1.38.1
2121
github.com/spf13/cobra v1.7.0
22-
go.jetpack.io/pkg v0.0.0-20231002215645-9afeb0623fd3
22+
go.jetpack.io/pkg v0.0.0-20231012130632-77dcd111db2e
2323
go.jetpack.io/typeid v0.1.0
2424
golang.org/x/oauth2 v0.12.0
2525
golang.org/x/text v0.13.0

envsec/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
106106
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
107107
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
108108
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
109-
go.jetpack.io/pkg v0.0.0-20231002215645-9afeb0623fd3 h1:aMydtVCHn7dfotOyV41VAxX5b5OOsCc4TxOXwDt38Yw=
110-
go.jetpack.io/pkg v0.0.0-20231002215645-9afeb0623fd3/go.mod h1:iaf3e/aENp5luwYFlfCxj+GsiwqHagbvRAY3bIdEgGA=
109+
go.jetpack.io/pkg v0.0.0-20231012130632-77dcd111db2e h1:GtqFrE5uUf6rXFk3zaIqIfLfykrqrB8gp6bDmOfH+2s=
110+
go.jetpack.io/pkg v0.0.0-20231012130632-77dcd111db2e/go.mod h1:m49CAcLbpZttEbzoEWC1SKD+/z5mEiFdw0dQxY6AM5Q=
111111
go.jetpack.io/typeid v0.1.0 h1:suTmjNR3y2em2gCTG06agFfcACm3+zuxfziMUk5UXnw=
112112
go.jetpack.io/typeid v0.1.0/go.mod h1:E11ObFkKlvsSTxwwYIm+zpbsRthjIMDy/JGBogs2vSo=
113113
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=

envsec/internal/filecache/filecache.go

Lines changed: 0 additions & 92 deletions
This file was deleted.

envsec/pkg/awsfed/awsfed.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/pkg/errors"
1212
"go.jetpack.io/envsec"
1313
"go.jetpack.io/envsec/internal/envvar"
14-
"go.jetpack.io/envsec/internal/filecache"
14+
"go.jetpack.io/pkg/filecache"
1515
"go.jetpack.io/pkg/sandbox/auth/session"
1616
)
1717

@@ -76,9 +76,11 @@ func (a *AWSFed) awsCreds(
7676
idToken string,
7777
) (*types.Credentials, error) {
7878

79-
svc := cognitoidentity.New(cognitoidentity.Options{
80-
Region: a.Region,
81-
})
79+
svc := cognitoidentity.New(
80+
cognitoidentity.Options{
81+
Region: a.Region,
82+
},
83+
)
8284

8385
logins := map[string]string{
8486
a.Provider: idToken,

0 commit comments

Comments
 (0)