Skip to content

Commit deb2071

Browse files
authored
Merge pull request #2901 from thaJeztah/18.09_backport_bump_golang_1.12.9
[18.09 backport] Bump to golang 1.12.9
2 parents b0bc401 + 5cfdd80 commit deb2071

File tree

12 files changed

+34
-36
lines changed

12 files changed

+34
-36
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
# Needed to install go
1212
OS: linux
1313
ARCH: amd64
14-
GOVERSION: 1.10.3
14+
GOVERSION: 1.12
1515
# Needed to install protoc
1616
PROTOC_VERSION: 3.6.1
1717

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# NOTE(dperny): for some reason, alpine was giving me trouble
2-
FROM golang:1.10.3-stretch
2+
FROM golang:1.12.9-stretch
33

44
RUN apt-get update && apt-get install -y make git unzip
55

agent/worker.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,11 @@ func reconcileTaskState(ctx context.Context, w *worker, assignments []*api.Assig
257257
}
258258

259259
closeManager := func(tm *taskManager) {
260-
go func(tm *taskManager) {
261-
defer w.closers.Done()
262-
// when a task is no longer assigned, we shutdown the task manager
263-
if err := tm.Close(); err != nil {
264-
log.G(ctx).WithError(err).Error("error closing task manager")
265-
}
266-
}(tm)
260+
defer w.closers.Done()
261+
// when a task is no longer assigned, we shutdown the task manager
262+
if err := tm.Close(); err != nil {
263+
log.G(ctx).WithError(err).Error("error closing task manager")
264+
}
267265

268266
// make an attempt at removing. this is best effort. any errors will be
269267
// retried by the reaper later.

api/api.pb.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2491,8 +2491,8 @@ file {
24912491
label: LABEL_OPTIONAL
24922492
type: TYPE_UINT32
24932493
options {
2494-
65003: "os.FileMode"
24952494
65001: 0
2495+
65003: "os.FileMode"
24962496
}
24972497
json_name: "mode"
24982498
}
@@ -2646,8 +2646,8 @@ file {
26462646
type: TYPE_MESSAGE
26472647
type_name: ".google.protobuf.Duration"
26482648
options {
2649-
65011: 1
26502649
65001: 0
2650+
65011: 1
26512651
}
26522652
json_name: "delay"
26532653
}
@@ -3090,8 +3090,8 @@ file {
30903090
}
30913091
}
30923092
options {
3093-
62023: "PublishMode"
30943093
62001: 0
3094+
62023: "PublishMode"
30953095
}
30963096
}
30973097
}
@@ -3790,8 +3790,8 @@ file {
37903790
label: LABEL_OPTIONAL
37913791
type: TYPE_UINT32
37923792
options {
3793-
65003: "os.FileMode"
37943793
65001: 0
3794+
65003: "os.FileMode"
37953795
}
37963796
json_name: "mode"
37973797
}
@@ -4207,8 +4207,8 @@ file {
42074207
}
42084208
}
42094209
options {
4210-
62023: "NodeRole"
42114210
62001: 0
4211+
62023: "NodeRole"
42124212
}
42134213
}
42144214
syntax: "proto3"
@@ -8058,8 +8058,8 @@ file {
80588058
type: TYPE_MESSAGE
80598059
type_name: ".google.protobuf.Duration"
80608060
options {
8061-
65011: 1
80628061
65001: 0
8062+
65011: 1
80638063
}
80648064
json_name: "period"
80658065
}
@@ -9106,11 +9106,11 @@ file {
91069106
}
91079107
}
91089108
options {
9109-
63017: 1
9110-
63020: 1
9111-
63018: 1
91129109
63001: 0
91139110
63002: 0
9111+
63017: 1
9112+
63018: 1
9113+
63020: 1
91149114
}
91159115
}
91169116
file {

api/dispatcher.pb.go

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

api/logbroker.pb.go

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

api/raft.pb.go

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

api/types.pb.go

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

manager/scheduler/constraint_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func setupEnv() {
5454
Addr: "186.17.9.41",
5555
},
5656
},
57-
Tasks: make(map[string]*api.Task),
57+
Tasks: make(map[string]*api.Task),
5858
ActiveTasksCountByService: make(map[string]int),
5959
}
6060
}

manager/scheduler/nodeinfo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ type NodeInfo struct {
4545

4646
func newNodeInfo(n *api.Node, tasks map[string]*api.Task, availableResources api.Resources) NodeInfo {
4747
nodeInfo := NodeInfo{
48-
Node: n,
49-
Tasks: make(map[string]*api.Task),
48+
Node: n,
49+
Tasks: make(map[string]*api.Task),
5050
ActiveTasksCountByService: make(map[string]int),
5151
AvailableResources: availableResources.Copy(),
5252
usedHostPorts: make(map[hostPortSpec]struct{}),

0 commit comments

Comments
 (0)