Skip to content

Commit d7b7b82

Browse files
author
Mrunal Patel
authored
Merge pull request #1308 from runcom/fix-listen
cmd/crio: fix listen address dir creation
2 parents 2d6cd9f + 82410aa commit d7b7b82

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,10 @@ install.tools: .install.gitvalidation .install.gometalinter .install.md2man
221221

222222
.install.md2man: .gopathok
223223
if [ ! -x "$(GOPATH)/bin/go-md2man" ]; then \
224-
go get -u github.com/cpuguy83/go-md2man; \
224+
go get -u -d github.com/cpuguy83/go-md2man; \
225+
cd $(GOPATH)/src/github.com/cpuguy83/go-md2man; \
226+
git checkout 20f5889cbdc3c73dbd2862796665e7c465ade7d1; \
227+
$(GO) install github.com/cpuguy83/go-md2man; \
225228
fi
226229

227230
.install.ostree: .gopathok

cmd/crio/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
_ "net/http/pprof"
99
"os"
1010
"os/signal"
11+
"path/filepath"
1112
"sort"
1213
"strings"
1314
"time"
@@ -430,6 +431,10 @@ func main() {
430431
return fmt.Errorf("invalid --runtime value %q", err)
431432
}
432433

434+
if err := os.MkdirAll(filepath.Dir(config.Listen), 0755); err != nil {
435+
return err
436+
}
437+
433438
// Remove the socket if it already exists
434439
if _, err := os.Stat(config.Listen); err == nil {
435440
if err := os.Remove(config.Listen); err != nil {

contrib/test/integration/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
- integration
3535
- e2e
3636
tasks:
37+
- name: fixup go-md2man
38+
shell: |
39+
cd {{ ansible_env.GOPATH }}/src/github.com/cpuguy83/go-md2man
40+
git checkout 20f5889cbdc3c73dbd2862796665e7c465ade7d1
41+
go install github.com/cpuguy83/go-md2man
3742
- name: clone build and install cri-o
3843
include: "build/cri-o.yml"
3944

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package version
22

33
// Version is the version of the build.
4-
const Version = "1.0.9-dev"
4+
const Version = "1.0.10-dev"

0 commit comments

Comments
 (0)