Skip to content

Commit

Permalink
Merge pull request #5730 from emissary-ingress/flynn/dev/lint
Browse files Browse the repository at this point in the history
Fix lint errors
  • Loading branch information
kflynn authored Jul 26, 2024
2 parents ec185a5 + 404bbe4 commit 1cd486e
Show file tree
Hide file tree
Showing 15 changed files with 35 additions and 1,184 deletions.

This file was deleted.

13 changes: 0 additions & 13 deletions cmd/entrypoint/snapshot_server_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package entrypoint

import (
"net/http"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -42,15 +41,3 @@ func TestSanitizeExternalSnapshot(t *testing.T) {
})
}
}

type roundTripFunc func(req *http.Request) *http.Response

func (f roundTripFunc) RoundTrip(req *http.Request) (*http.Response, error) {
return f(req), nil
}

func newHTTPTestClient(mockHandler roundTripFunc) *http.Client {
return &http.Client{
Transport: mockHandler,
}
}
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,12 @@ replace k8s.io/code-generator => github.com/emissary-ingress/code-generator v0.2
require (
github.com/Masterminds/sprig v2.22.0+incompatible
github.com/cenkalti/backoff/v4 v4.2.1
github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4
github.com/datawire/dlib v1.3.1
github.com/datawire/dtest v0.0.0-20210928162311-722b199c4c2f
github.com/datawire/go-mkopensource v0.0.12-0.20230821212923-d1d8451579a1
github.com/envoyproxy/go-control-plane v0.11.1
github.com/envoyproxy/protoc-gen-validate v1.0.2
github.com/fsnotify/fsnotify v1.7.0
github.com/go-logr/zapr v1.2.4
github.com/golang/protobuf v1.5.3
github.com/google/uuid v1.5.0
github.com/gorilla/websocket v1.5.1
github.com/hashicorp/consul/api v1.26.1
Expand Down Expand Up @@ -146,11 +143,13 @@ require (
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/chai2010/gettext-go v1.0.2 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/docker/distribution v2.8.2+incompatible // indirect
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/envoyproxy/protoc-gen-validate v1.0.2 // indirect
github.com/evanphx/json-patch v5.7.0+incompatible // indirect
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect
Expand All @@ -167,6 +166,7 @@ require (
github.com/gobuffalo/flect v1.0.2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/btree v1.0.1 // indirect
github.com/google/cel-go v0.18.1 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
Expand Down
2 changes: 1 addition & 1 deletion pkg/ambex/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ import (
// Be sure to import the package of any types that're referenced with "@type" in our
// generated Envoy config, even if that package is otherwise not used by ambex.

_ "github.com/emissary-ingress/emissary/v3/pkg/api/contrib/envoy/extensions/filters/http/golang/v3alpha"
_ "github.com/envoyproxy/go-control-plane/contrib/envoy/extensions/filters/http/golang/v3alpha"
_ "github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v3"
v3bootstrap "github.com/envoyproxy/go-control-plane/envoy/config/bootstrap/v3"
v3clusterconfig "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3"
Expand Down
Loading

0 comments on commit 1cd486e

Please sign in to comment.