Skip to content

Commit

Permalink
fix: satisfy goproxy
Browse files Browse the repository at this point in the history
Signed-off-by: m.nabokikh <[email protected]>
  • Loading branch information
nabokihms committed Apr 15, 2021
1 parent e406501 commit a54ea2c
Show file tree
Hide file tree
Showing 64 changed files with 155 additions and 156 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ OS = $(shell uname | tr A-Z a-z)

PROJ=dex
ORG_PATH=github.com/dexidp
REPO_PATH=$(ORG_PATH)/$(PROJ)
REPO_PATH=$(ORG_PATH)/$(PROJ)/v2
export PATH := $(PWD)/bin:$(PATH)

VERSION ?= $(shell ./scripts/git-version)
Expand Down Expand Up @@ -30,7 +30,7 @@ build: bin/dex

bin/dex:
@mkdir -p bin/
@go install -v -ldflags $(LD_FLAGS) $(REPO_PATH)/cmd/dex
@go install -v -ldflags $(LD_FLAGS) $(REPO_PATH)/cmd/dex/

examples: bin/grpc-client bin/example-app

Expand All @@ -44,7 +44,7 @@ bin/example-app:

.PHONY: release-binary
release-binary:
@go build -o /go/bin/dex -v -ldflags $(LD_FLAGS) $(REPO_PATH)/cmd/dex
@go build -o /go/bin/dex -v -ldflags $(LD_FLAGS) $(REPO_PATH)/cmd/dex/

docker-compose.override.yaml:
cp docker-compose.override.yaml.dist docker-compose.override.yaml
Expand Down
14 changes: 7 additions & 7 deletions cmd/dex/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (

"golang.org/x/crypto/bcrypt"

"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/server"
"github.com/dexidp/dex/storage"
"github.com/dexidp/dex/storage/etcd"
"github.com/dexidp/dex/storage/kubernetes"
"github.com/dexidp/dex/storage/memory"
"github.com/dexidp/dex/storage/sql"
"github.com/dexidp/dex/v2/pkg/log"
"github.com/dexidp/dex/v2/server"
"github.com/dexidp/dex/v2/storage"
"github.com/dexidp/dex/v2/storage/etcd"
"github.com/dexidp/dex/v2/storage/kubernetes"
"github.com/dexidp/dex/v2/storage/memory"
"github.com/dexidp/dex/v2/storage/sql"
)

// Config is the config format for the main application.
Expand Down
10 changes: 5 additions & 5 deletions cmd/dex/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"github.com/ghodss/yaml"
"github.com/kylelemons/godebug/pretty"

"github.com/dexidp/dex/connector/mock"
"github.com/dexidp/dex/connector/oidc"
"github.com/dexidp/dex/server"
"github.com/dexidp/dex/storage"
"github.com/dexidp/dex/storage/sql"
"github.com/dexidp/dex/v2/connector/mock"
"github.com/dexidp/dex/v2/connector/oidc"
"github.com/dexidp/dex/v2/server"
"github.com/dexidp/dex/v2/storage"
"github.com/dexidp/dex/v2/storage/sql"
)

var _ = yaml.YAMLToJSON
Expand Down
6 changes: 3 additions & 3 deletions cmd/dex/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import (
"google.golang.org/grpc/reflection"

"github.com/dexidp/dex/api/v2"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/server"
"github.com/dexidp/dex/storage"
"github.com/dexidp/dex/v2/pkg/log"
"github.com/dexidp/dex/v2/server"
"github.com/dexidp/dex/v2/storage"
)

type serveOptions struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/dex/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/spf13/cobra"

"github.com/dexidp/dex/version"
"github.com/dexidp/dex/v2/version"
)

func commandVersion() *cobra.Command {
Expand Down
6 changes: 3 additions & 3 deletions connector/atlassiancrowd/atlassiancrowd.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"strings"
"time"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/pkg/groups"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/v2/connector"
"github.com/dexidp/dex/v2/pkg/groups"
"github.com/dexidp/dex/v2/pkg/log"
)

// Config holds configuration options for Atlassian Crowd connector.
Expand Down
4 changes: 2 additions & 2 deletions connector/authproxy/authproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"net/http"
"net/url"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/v2/connector"
"github.com/dexidp/dex/v2/pkg/log"
)

// Config holds the configuration parameters for a connector which returns an
Expand Down
6 changes: 3 additions & 3 deletions connector/bitbucketcloud/bitbucketcloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"golang.org/x/oauth2"
"golang.org/x/oauth2/bitbucket"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/pkg/groups"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/v2/connector"
"github.com/dexidp/dex/v2/pkg/groups"
"github.com/dexidp/dex/v2/pkg/log"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion connector/bitbucketcloud/bitbucketcloud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"reflect"
"testing"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/v2/connector"
)

func TestUserGroups(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions connector/gitea/gitea.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (

"golang.org/x/oauth2"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/v2/connector"
"github.com/dexidp/dex/v2/pkg/log"
)

// Config holds configuration options for gitea logins.
Expand Down
2 changes: 1 addition & 1 deletion connector/gitea/gitea_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"reflect"
"testing"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/v2/connector"
)

// tests that the email is used as their username when they have no username set
Expand Down
6 changes: 3 additions & 3 deletions connector/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
"golang.org/x/oauth2"
"golang.org/x/oauth2/github"

"github.com/dexidp/dex/connector"
groups_pkg "github.com/dexidp/dex/pkg/groups"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/v2/connector"
groups_pkg "github.com/dexidp/dex/v2/pkg/groups"
"github.com/dexidp/dex/v2/pkg/log"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion connector/github/github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"
"testing"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/v2/connector"
)

type testResponse struct {
Expand Down
6 changes: 3 additions & 3 deletions connector/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

"golang.org/x/oauth2"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/pkg/groups"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/v2/connector"
"github.com/dexidp/dex/v2/pkg/groups"
"github.com/dexidp/dex/v2/pkg/log"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion connector/gitlab/gitlab_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"reflect"
"testing"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/v2/connector"
)

func TestUserGroups(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions connector/google/google.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
admin "google.golang.org/api/admin/directory/v1"
"google.golang.org/api/option"

"github.com/dexidp/dex/connector"
pkg_groups "github.com/dexidp/dex/pkg/groups"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/v2/connector"
pkg_groups "github.com/dexidp/dex/v2/pkg/groups"
"github.com/dexidp/dex/v2/pkg/log"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions connector/keystone/keystone.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"io/ioutil"
"net/http"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/v2/connector"
"github.com/dexidp/dex/v2/pkg/log"
)

type conn struct {
Expand Down
2 changes: 1 addition & 1 deletion connector/keystone/keystone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"
"testing"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/v2/connector"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions connector/ldap/ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (

"github.com/go-ldap/ldap/v3"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/v2/connector"
"github.com/dexidp/dex/v2/pkg/log"
)

// Config holds the configuration parameters for the LDAP connector. The LDAP
Expand Down
2 changes: 1 addition & 1 deletion connector/ldap/ldap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/kylelemons/godebug/pretty"
"github.com/sirupsen/logrus"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/v2/connector"
)

// connectionMethod indicates how the test should connect to the LDAP server.
Expand Down
4 changes: 2 additions & 2 deletions connector/linkedin/linkedin.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

"golang.org/x/oauth2"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/v2/connector"
"github.com/dexidp/dex/v2/pkg/log"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions connector/microsoft/microsoft.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (

"golang.org/x/oauth2"

"github.com/dexidp/dex/connector"
groups_pkg "github.com/dexidp/dex/pkg/groups"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/v2/connector"
groups_pkg "github.com/dexidp/dex/v2/pkg/groups"
"github.com/dexidp/dex/v2/pkg/log"
)

// GroupNameFormat represents the format of the group identifier
Expand Down
2 changes: 1 addition & 1 deletion connector/microsoft/microsoft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"reflect"
"testing"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/v2/connector"
)

type testResponse struct {
Expand Down
4 changes: 2 additions & 2 deletions connector/mock/connectortest.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"net/http"
"net/url"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/v2/connector"
"github.com/dexidp/dex/v2/pkg/log"
)

// NewCallbackConnector returns a mock connector which requires no user interaction. It always returns
Expand Down
4 changes: 2 additions & 2 deletions connector/oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"github.com/coreos/go-oidc/v3/oidc"
"golang.org/x/oauth2"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/v2/connector"
"github.com/dexidp/dex/v2/pkg/log"
)

// Config holds configuration options for OpenID Connect logins.
Expand Down
2 changes: 1 addition & 1 deletion connector/oidc/oidc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/sirupsen/logrus"
"gopkg.in/square/go-jose.v2"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/v2/connector"
)

func TestKnownBrokenAuthHeaderProvider(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions connector/openshift/openshift.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (

"golang.org/x/oauth2"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/pkg/groups"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/storage/kubernetes/k8sapi"
"github.com/dexidp/dex/v2/connector"
"github.com/dexidp/dex/v2/pkg/groups"
"github.com/dexidp/dex/v2/pkg/log"
"github.com/dexidp/dex/v2/storage/kubernetes/k8sapi"
)

// Config holds configuration options for OpenShift login
Expand Down
4 changes: 2 additions & 2 deletions connector/openshift/openshift_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"github.com/sirupsen/logrus"
"golang.org/x/oauth2"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/storage/kubernetes/k8sapi"
"github.com/dexidp/dex/v2/connector"
"github.com/dexidp/dex/v2/storage/kubernetes/k8sapi"
)

func TestOpen(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions connector/saml/saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
dsig "github.com/russellhaering/goxmldsig"
"github.com/russellhaering/goxmldsig/etreeutils"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/pkg/groups"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/v2/connector"
"github.com/dexidp/dex/v2/pkg/groups"
"github.com/dexidp/dex/v2/pkg/log"
)

// nolint
Expand Down
2 changes: 1 addition & 1 deletion connector/saml/saml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
dsig "github.com/russellhaering/goxmldsig"
"github.com/sirupsen/logrus"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/v2/connector"
)

// responseTest maps a SAML 2.0 response object to a set of expected values.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/dexidp/dex
module github.com/dexidp/dex/v2

go 1.16

Expand Down
2 changes: 1 addition & 1 deletion pkg/groups/groups_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/dexidp/dex/pkg/groups"
"github.com/dexidp/dex/v2/pkg/groups"
)

func TestFilter(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions server/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"golang.org/x/crypto/bcrypt"

"github.com/dexidp/dex/api/v2"
"github.com/dexidp/dex/pkg/log"
"github.com/dexidp/dex/server/internal"
"github.com/dexidp/dex/storage"
"github.com/dexidp/dex/version"
"github.com/dexidp/dex/v2/pkg/log"
"github.com/dexidp/dex/v2/server/internal"
"github.com/dexidp/dex/v2/storage"
"github.com/dexidp/dex/v2/version"
)

// apiVersion increases every time a new call is added to the API. Clients should use this info
Expand Down
Loading

0 comments on commit a54ea2c

Please sign in to comment.