Skip to content

Commit 32a7e0f

Browse files
author
Quentin Perez
committed
Merge pull request #227 from QuentinPerez/update_gotty-client
Update gotty-client to 1.2.0
2 parents 14b0a96 + db65c97 commit 32a7e0f

File tree

20 files changed

+504
-61
lines changed

20 files changed

+504
-61
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ env:
1111

1212
matrix:
1313
include:
14-
- go: 1.3
15-
- go: 1.4
1614
- go: 1.5 TEST_WITH_REAL_API=1
1715
- go: tip
1816
allow_failures:

Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ GOINSTALL ?= $(GOCMD) install
66
GOTEST ?= $(GOCMD) test
77
GOFMT ?= gofmt -w
88
GOCOVER ?= $(GOTEST) -covermode=count -v
9-
GOVERSIONMAJOR = $(shell go version | grep -o '[1-9].[0-9]' | cut -d '.' -f1)
10-
GOVERSIONMINOR = $(shell go version | grep -o '[1-9].[0-9]' | cut -d '.' -f2)
11-
VERSION_GE_1_5 = $(shell [ $(GOVERSIONMAJOR) -gt 1 -o $(GOVERSIONMINOR) -ge 5 ] && echo true)
129

1310
FPM_VERSION ?= $(shell ./dist/scw-Darwin-i386 --version | sed 's/.*v\([0-9.]*\),.*/\1/g')
1411
FPM_DOCKER ?= \
@@ -31,14 +28,17 @@ SRC = cmd/scw
3128
PACKAGES = pkg/api pkg/commands pkg/utils pkg/cli pkg/sshcommand pkg/config pkg/scwversion pkg/pricing
3229
REV = $(shell git rev-parse HEAD || echo "nogit")
3330
TAG = $(shell git describe --tags --always || echo "nogit")
34-
BUILDER = scaleway-cli-builder
35-
ALL_GO_FILES = $(shell find . -type f -name "*.go")
36-
ifeq ($(VERSION_GE_1_5),true)
3731
LDFLAGS = "-X github.com/scaleway/scaleway-cli/pkg/scwversion.GITCOMMIT=$(REV) \
3832
-X github.com/scaleway/scaleway-cli/pkg/scwversion.VERSION=$(TAG)"
39-
else
40-
LDFLAGS = "-X github.com/scaleway/scaleway-cli/pkg/scwversion.GITCOMMIT $(REV) \
41-
-X github.com/scaleway/scaleway-cli/pkg/scwversion.VERSION $(TAG)"
33+
BUILDER = scaleway-cli-builder
34+
ALL_GO_FILES = $(shell find . -type f -name "*.go")
35+
36+
# Check go version
37+
GOVERSIONMAJOR = $(shell go version | grep -o '[1-9].[0-9]' | cut -d '.' -f1)
38+
GOVERSIONMINOR = $(shell go version | grep -o '[1-9].[0-9]' | cut -d '.' -f2)
39+
VERSION_GE_1_5 = $(shell [ $(GOVERSIONMAJOR) -gt 1 -o $(GOVERSIONMINOR) -ge 5 ] && echo true)
40+
ifneq ($(VERSION_GE_1_5),true)
41+
$(error Bad go version, please install a version greater than or equal to 1.5)
4242
endif
4343

4444
BUILD_LIST = $(foreach int, $(SRC), $(int)_build)
@@ -73,7 +73,7 @@ $(CLEAN_LIST): %_clean:
7373
$(GOCLEAN) ./$*
7474
$(INSTALL_LIST): %_install:
7575
$(GOINSTALL) ./$*
76-
$(IREF_LIST): %_iref: pkg/scwversion/version.go
76+
$(IREF_LIST): %_iref:
7777
$(GOTEST) -ldflags $(LDFLAGS) -i ./$*
7878
$(TEST_LIST): %_test:
7979
$(GOTEST) -ldflags $(LDFLAGS) -v ./$*

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,6 +1132,8 @@ $ scw inspect myserver | jq '.[0].public_ip.address'
11321132

11331133
### master (unreleased)
11341134

1135+
* Remove go1.[34] support
1136+
* Update gotty-client to 1.2.0
11351137
* Improve _cs format ([#223](https://github.com/scaleway/scaleway-cli/issues/223))
11361138
* Use `gotty-client` instead of `termjs-cli`
11371139
* Fix: bad detection of server already started when starting a server ([#224](https://github.com/scaleway/scaleway-cli/pull/224)) - [@arianvp](https://github.com/arianvp)

vendor/github.com/moul/gotty-client/Makefile

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moul/gotty-client/README.md

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moul/gotty-client/gotty-client.go

Lines changed: 106 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moul/gotty-client/vendor/github.com/creack/goselect/Dockerfile

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moul/gotty-client/vendor/github.com/creack/goselect/LICENSE

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moul/gotty-client/vendor/github.com/creack/goselect/README.md

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)