Skip to content

Commit

Permalink
fix: update dependency for identity
Browse files Browse the repository at this point in the history
This change exchange the dependency on:

"github.com/redhatinsights/module-update-router/identity"

by:

"github.com/redhatinsights/platform-go-middlewares/identity"

to avoid transition dependency on the dead repository:

https://github.com/mitchellh/osext

Signed-off-by: Alejandro Visiedo <[email protected]>
  • Loading branch information
avisiedo committed Jan 5, 2024
1 parent d43eca8 commit 262ed7d
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 1,467 deletions.
2 changes: 1 addition & 1 deletion associate.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package xrhidgen

import (
"github.com/pioz/faker"
"github.com/redhatinsights/module-update-router/identity"
"github.com/redhatinsights/platform-go-middlewares/identity"
)

// Associate holds values to be used as input when generating an associate
Expand Down
2 changes: 1 addition & 1 deletion associate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/pioz/faker"
"github.com/redhatinsights/module-update-router/identity"
"github.com/redhatinsights/platform-go-middlewares/identity"
)

func TestNewAssociate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/google/go-cmp v0.6.0
github.com/peterbourgon/ff/v3 v3.4.0
github.com/pioz/faker v1.7.3
github.com/redhatinsights/module-update-router v0.0.0-20220708181923-3d8d459361dd
github.com/redhatinsights/platform-go-middlewares v0.20.0
github.com/sgreben/flagvar v1.10.1
)

Expand Down
1,466 changes: 12 additions & 1,454 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package xrhidgen

import (
"github.com/pioz/faker"
"github.com/redhatinsights/module-update-router/identity"
"github.com/redhatinsights/platform-go-middlewares/identity"
)

// Identity holds values to be used as input when generating a main identity
Expand Down
2 changes: 1 addition & 1 deletion identity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/pioz/faker"
"github.com/redhatinsights/module-update-router/identity"
"github.com/redhatinsights/platform-go-middlewares/identity"
)

func TestNewIdentity(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package xrhidgen

import (
"github.com/pioz/faker"
"github.com/redhatinsights/module-update-router/identity"
"github.com/redhatinsights/platform-go-middlewares/identity"
)

// Internal holds values to be used as input when generating an internal
Expand Down
2 changes: 1 addition & 1 deletion internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/pioz/faker"
"github.com/redhatinsights/module-update-router/identity"
"github.com/redhatinsights/platform-go-middlewares/identity"
)

func TestNewInternal(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion system.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package xrhidgen

import (
"github.com/pioz/faker"
"github.com/redhatinsights/module-update-router/identity"
"github.com/redhatinsights/platform-go-middlewares/identity"
)

// System holds values to be used as input when generating a system identity
Expand Down
2 changes: 1 addition & 1 deletion system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/pioz/faker"
"github.com/redhatinsights/module-update-router/identity"
"github.com/redhatinsights/platform-go-middlewares/identity"
)

func TestNewSystem(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion user.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package xrhidgen

import (
"github.com/pioz/faker"
"github.com/redhatinsights/module-update-router/identity"
"github.com/redhatinsights/platform-go-middlewares/identity"
)

// User holds values to be used as input when generating a user identity record.
Expand Down
2 changes: 1 addition & 1 deletion user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/pioz/faker"
"github.com/redhatinsights/module-update-router/identity"
"github.com/redhatinsights/platform-go-middlewares/identity"
)

func TestNewUser(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x509.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package xrhidgen

import (
"github.com/pioz/faker"
"github.com/redhatinsights/module-update-router/identity"
"github.com/redhatinsights/platform-go-middlewares/identity"
)

// X509 holds values to be used as input when generating an x509 identity
Expand Down
2 changes: 1 addition & 1 deletion x509_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/pioz/faker"
"github.com/redhatinsights/module-update-router/identity"
"github.com/redhatinsights/platform-go-middlewares/identity"
)

func TestNewX509(t *testing.T) {
Expand Down

0 comments on commit 262ed7d

Please sign in to comment.