From d8ddb2dc52f1578b7bb6056deee58f90c6b1656c Mon Sep 17 00:00:00 2001 From: lovehhf <853885165@qq.com> Date: Fri, 2 Sep 2022 21:20:35 +0800 Subject: [PATCH] Procfiles: Update Goreman Installation Command Starting in Go 1.17, Installing executables with go get is deprecated. go install may be used instead. Refer to https://go.dev/doc/go-get-install-deprecation Signed-off-by: Hongfei Huang <853885165@qq.com> --- Procfile | 2 +- Procfile.learner | 2 +- Procfile.v2 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Procfile b/Procfile index 7d6b63e38..92ef37639 100644 --- a/Procfile +++ b/Procfile @@ -1,4 +1,4 @@ -# Use goreman to run `go get github.com/mattn/goreman` +# Use goreman to run `go install github.com/mattn/goreman@latest` # Change the path of bin/etcd if etcd is located elsewhere etcd1: bin/etcd --name infra1 --listen-client-urls http://127.0.0.1:2379 --advertise-client-urls http://127.0.0.1:2379 --listen-peer-urls http://127.0.0.1:12380 --initial-advertise-peer-urls http://127.0.0.1:12380 --initial-cluster-token etcd-cluster-1 --initial-cluster 'infra1=http://127.0.0.1:12380,infra2=http://127.0.0.1:22380,infra3=http://127.0.0.1:32380' --initial-cluster-state new --enable-pprof --logger=zap --log-outputs=stderr diff --git a/Procfile.learner b/Procfile.learner index 06e3d7285..1517d3f2b 100644 --- a/Procfile.learner +++ b/Procfile.learner @@ -1,4 +1,4 @@ -# Use goreman to run `go get github.com/mattn/goreman` +# Use goreman to run `go install github.com/mattn/goreman@latest` # 1. Start the cluster using Procfile # 2. Add learner node to the cluster diff --git a/Procfile.v2 b/Procfile.v2 index 003709686..c68511e56 100644 --- a/Procfile.v2 +++ b/Procfile.v2 @@ -1,4 +1,4 @@ -# Use goreman to run `go get github.com/mattn/goreman` +# Use goreman to run `go install github.com/mattn/goreman@latest` # Change the path of bin/etcd if etcd is located elsewhere etcd1: bin/etcd --name infra1 --listen-client-urls http://127.0.0.1:2379 --advertise-client-urls http://127.0.0.1:2379 --listen-peer-urls http://127.0.0.1:12380 --initial-advertise-peer-urls http://127.0.0.1:12380 --initial-cluster-token etcd-cluster-1 --initial-cluster 'infra1=http://127.0.0.1:12380,infra2=http://127.0.0.1:22380,infra3=http://127.0.0.1:32380' --initial-cluster-state new --enable-pprof etcd2: bin/etcd --name infra2 --listen-client-urls http://127.0.0.1:22379 --advertise-client-urls http://127.0.0.1:22379 --listen-peer-urls http://127.0.0.1:22380 --initial-advertise-peer-urls http://127.0.0.1:22380 --initial-cluster-token etcd-cluster-1 --initial-cluster 'infra1=http://127.0.0.1:12380,infra2=http://127.0.0.1:22380,infra3=http://127.0.0.1:32380' --initial-cluster-state new --enable-pprof