Skip to content

Commit

Permalink
chore(deps): remove github.com/gregjones/httpcache
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed May 29, 2023
1 parent 1beec1a commit 66e7491
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions pkg/kamelet/repository/github_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ import (
"golang.org/x/oauth2"

"k8s.io/apimachinery/pkg/util/yaml"

"github.com/gregjones/httpcache"
)

type githubKameletRepository struct {
Expand All @@ -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)
Expand Down
1 change: 0 additions & 1 deletion pkg/kamelet/repository/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions pkg/kamelet/repository/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 66e7491

Please sign in to comment.