diff --git a/pkg/kamelet/repository/github_repository.go b/pkg/kamelet/repository/github_repository.go index 816f708ab8..f9ce74403e 100644 --- a/pkg/kamelet/repository/github_repository.go +++ b/pkg/kamelet/repository/github_repository.go @@ -32,8 +32,6 @@ import ( "golang.org/x/oauth2" "k8s.io/apimachinery/pkg/util/yaml" - - "github.com/gregjones/httpcache" ) type githubKameletRepository struct { @@ -45,7 +43,7 @@ type githubKameletRepository struct { } func newGithubKameletRepository(owner, repo, path, ref string) KameletRepository { - httpClient := httpcache.NewMemoryCacheTransport().Client() + httpClient := &http.Client{} if token, ok := os.LookupEnv("GITHUB_TOKEN"); ok { ts := oauth2.StaticTokenSource(&oauth2.Token{AccessToken: token}) ctx := context.WithValue(context.Background(), oauth2.HTTPClient, httpClient) diff --git a/pkg/kamelet/repository/go.mod b/pkg/kamelet/repository/go.mod index bb3f6fa1a7..6ec4cf5e8c 100644 --- a/pkg/kamelet/repository/go.mod +++ b/pkg/kamelet/repository/go.mod @@ -6,7 +6,6 @@ require ( github.com/apache/camel-k/v2/pkg/apis/camel v0.0.0 github.com/apache/camel-k/v2/pkg/client/camel v0.0.0 github.com/google/go-github/v32 v32.1.0 - github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 github.com/stretchr/testify v1.8.0 golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 k8s.io/apimachinery v0.25.6 diff --git a/pkg/kamelet/repository/go.sum b/pkg/kamelet/repository/go.sum index d8522d9a82..7230044843 100644 --- a/pkg/kamelet/repository/go.sum +++ b/pkg/kamelet/repository/go.sum @@ -132,8 +132,6 @@ github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hf github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 h1:pdN6V1QBWetyv/0+wjACpqVH+eVULgEjkurDLq3goeM= -github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=