Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 4bed012

Browse files
authored
Merge pull request #322 from thaJeztah/19.03_backport_bump_golang_1.12.8
[19.03 backport] Bump golang 1.12.8 (CVE-2019-9512, CVE-2019-9514)
2 parents 56ca630 + 0dc7bdc commit 4bed012

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#
2626

2727
ARG CROSS="false"
28-
ARG GO_VERSION=1.12.7
28+
ARG GO_VERSION=1.12.8
2929

3030
FROM golang:${GO_VERSION}-stretch AS base
3131
ARG APT_MIRROR

Dockerfile.e2e

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG GO_VERSION=1.12.7
1+
ARG GO_VERSION=1.12.8
22

33
FROM golang:${GO_VERSION}-alpine AS base
44

Dockerfile.simple

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# This represents the bare minimum required to build and test Docker.
77

8-
ARG GO_VERSION=1.12.7
8+
ARG GO_VERSION=1.12.8
99

1010
FROM golang:${GO_VERSION}-stretch
1111

Dockerfile.windows

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ FROM microsoft/windowsservercore
165165
# Use PowerShell as the default shell
166166
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
167167

168-
ARG GO_VERSION=1.12.7
168+
ARG GO_VERSION=1.12.8
169169

170170
# Environment variable notes:
171171
# - GO_VERSION must be consistent with 'Dockerfile' used by Linux.

TESTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ You can change a version of golang used for building stuff that is being tested
9292
by setting `GO_VERSION` variable, for example:
9393

9494
```
95-
make GO_VERSION=1.12.7 test
95+
make GO_VERSION=1.12.8 test
9696
```

opts/hosts_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ func TestParseHost(t *testing.T) {
5353
func TestParseDockerDaemonHost(t *testing.T) {
5454
invalids := map[string]string{
5555

56-
"tcp:a.b.c.d": "Invalid bind address format: tcp:a.b.c.d",
57-
"tcp:a.b.c.d/path": "Invalid bind address format: tcp:a.b.c.d/path",
56+
"tcp:a.b.c.d": "",
57+
"tcp:a.b.c.d/path": "",
5858
"udp://127.0.0.1": "Invalid bind address format: udp://127.0.0.1",
5959
"udp://127.0.0.1:2375": "Invalid bind address format: udp://127.0.0.1:2375",
6060
"tcp://unix:///run/docker.sock": "Invalid proto, expected tcp: unix:///run/docker.sock",
@@ -83,7 +83,7 @@ func TestParseDockerDaemonHost(t *testing.T) {
8383
"localhost:5555/path": "tcp://localhost:5555/path",
8484
}
8585
for invalidAddr, expectedError := range invalids {
86-
if addr, err := parseDaemonHost(invalidAddr); err == nil || err.Error() != expectedError {
86+
if addr, err := parseDaemonHost(invalidAddr); err == nil || expectedError != "" && err.Error() != expectedError {
8787
t.Errorf("tcp %v address expected error %q return, got %q and addr %v", invalidAddr, expectedError, err, addr)
8888
}
8989
}
@@ -99,8 +99,8 @@ func TestParseTCP(t *testing.T) {
9999
defaultHTTPHost = "tcp://127.0.0.1:2376"
100100
)
101101
invalids := map[string]string{
102-
"tcp:a.b.c.d": "Invalid bind address format: tcp:a.b.c.d",
103-
"tcp:a.b.c.d/path": "Invalid bind address format: tcp:a.b.c.d/path",
102+
"tcp:a.b.c.d": "",
103+
"tcp:a.b.c.d/path": "",
104104
"udp://127.0.0.1": "Invalid proto, expected tcp: udp://127.0.0.1",
105105
"udp://127.0.0.1:2375": "Invalid proto, expected tcp: udp://127.0.0.1:2375",
106106
}
@@ -125,7 +125,7 @@ func TestParseTCP(t *testing.T) {
125125
"localhost:5555/path": "tcp://localhost:5555/path",
126126
}
127127
for invalidAddr, expectedError := range invalids {
128-
if addr, err := ParseTCPAddr(invalidAddr, defaultHTTPHost); err == nil || err.Error() != expectedError {
128+
if addr, err := ParseTCPAddr(invalidAddr, defaultHTTPHost); err == nil || expectedError != "" && err.Error() != expectedError {
129129
t.Errorf("tcp %v address expected error %v return, got %s and addr %v", invalidAddr, expectedError, err, addr)
130130
}
131131
}

0 commit comments

Comments
 (0)