You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2023/05/22 07:34:42 UTC

[camel-k] branch main updated: chore(deps): remove go-homedir dependency

This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new cd8c5ebab chore(deps): remove go-homedir dependency
cd8c5ebab is described below

commit cd8c5ebab6ca03cba750ba8d842a6f45d3d21144
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Fri May 19 16:42:47 2023 +0200

    chore(deps): remove go-homedir dependency
    
    Ref #4326
---
 go.mod               | 2 +-
 pkg/client/client.go | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/go.mod b/go.mod
index 3476bcf38..e829a981e 100644
--- a/go.mod
+++ b/go.mod
@@ -18,7 +18,6 @@ require (
 	github.com/jpillora/backoff v1.0.0
 	github.com/magiconair/properties v1.8.7
 	github.com/mattn/go-shellwords v1.0.12
-	github.com/mitchellh/go-homedir v1.1.0
 	github.com/mitchellh/mapstructure v1.5.0
 	github.com/onsi/gomega v1.27.7
 	github.com/openshift/api v3.9.1-0.20190927182313-d4a64ec2cbd8+incompatible
@@ -125,6 +124,7 @@ require (
 	github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
 	github.com/mailru/easyjson v0.7.7 // indirect
 	github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
+	github.com/mitchellh/go-homedir v1.1.0 // indirect
 	github.com/moby/spdystream v0.2.0 // indirect
 	github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
 	github.com/modern-go/reflect2 v1.0.2 // indirect
diff --git a/pkg/client/client.go b/pkg/client/client.go
index c288e655b..4325c6571 100644
--- a/pkg/client/client.go
+++ b/pkg/client/client.go
@@ -23,8 +23,6 @@ import (
 	"os"
 	"path/filepath"
 
-	user "github.com/mitchellh/go-homedir"
-
 	"github.com/sirupsen/logrus"
 	"k8s.io/client-go/scale"
 
@@ -212,7 +210,7 @@ func initialize(kubeconfig string) {
 }
 
 func getDefaultKubeConfigFile() (string, error) {
-	dir, err := user.Dir()
+	dir, err := os.UserHomeDir()
 	if err != nil {
 		return "", err
 	}