From 6ccecc54cd02adcfaeef737786bb3ce302954893 Mon Sep 17 00:00:00 2001 From: Ignasi Barrera Date: Thu, 18 Oct 2018 18:27:43 +0200 Subject: [PATCH 1/2] Consistent way to install using the Makefile Signed-off-by: Ignasi Barrera --- Gopkg.lock | 2 +- Makefile | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Gopkg.lock b/Gopkg.lock index c770632..e63a8f2 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -695,11 +695,11 @@ "github.com/operator-framework/operator-sdk/pkg/sdk", "github.com/operator-framework/operator-sdk/pkg/sdk/metrics", "github.com/pkg/errors", - "github.com/sirupsen/logrus", "github.com/spf13/cobra", "istio.io/api/networking/v1alpha3", "istio.io/istio/pilot/pkg/config/kube/crd", "istio.io/istio/pilot/pkg/model", + "istio.io/istio/pilot/pkg/serviceregistry/kube", "k8s.io/api/core/v1", "k8s.io/apimachinery/pkg/api/meta", "k8s.io/apimachinery/pkg/apis/meta/v1", diff --git a/Makefile b/Makefile index 0ac2c62..882b33d 100644 --- a/Makefile +++ b/Makefile @@ -14,5 +14,8 @@ cw: go build -o cw ./cmd/cw @chmod +x cw +install: + go install ./cmd/cw + clean: @rm cw || true From 701c741e353c9c1567efa8dd8b44a84a051b971f Mon Sep 17 00:00:00 2001 From: Ignasi Barrera Date: Tue, 23 Oct 2018 17:32:36 +0200 Subject: [PATCH 2/2] Fix build and install instructions Signed-off-by: Ignasi Barrera --- Makefile | 3 --- README.md | 12 +++++++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 882b33d..0ac2c62 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,5 @@ cw: go build -o cw ./cmd/cw @chmod +x cw -install: - go install ./cmd/cw - clean: @rm cw || true diff --git a/README.md b/README.md index 8408496..2f35afe 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,17 @@ Coddiwomple takes a list of the clusters and the services running in them, and g ## Installation ```bash -$ go get -u github.com/istio-ecosystem/coddiwomple +$ go get github.com/istio-ecosystem/coddiwomple/cmd/cw +``` + +## Build +```bash +# Clone the repository +$ mkdir -p $GOPATH/src/github.com/istio-ecosystem +$ cd $GOPATH/src/github.com/istio-ecosystem +$ git clone https://github.com/istio-ecosystem/coddiwomple.git + +# Build the source code $ cd $GOPATH/src/github.com/istio-ecosystem/coddiwomple $ make deps $ make