|
| 1 | +diff --git a/Makefile b/Makefile |
| 2 | +index de79f63..a9ea13b 100644 |
| 3 | +--- a/Makefile |
| 4 | ++++ b/Makefile |
| 5 | +@@ -136,7 +136,7 @@ crio.conf: bin/crio |
| 6 | + release-note: ${RELEASE_TOOL} |
| 7 | + ${RELEASE_TOOL} -n $(release) |
| 8 | + |
| 9 | +-conmon/config.h: git-vars cmd/crio-config/config.go oci/oci.go |
| 10 | ++conmon/config.h: cmd/crio-config/config.go oci/oci.go |
| 11 | + $(GO) build $(LDFLAGS) -tags "$(BUILDTAGS)" -o bin/crio-config $(PROJECT)/cmd/crio-config |
| 12 | + ( cd conmon && $(CURDIR)/bin/crio-config ) |
| 13 | + |
| 14 | +diff --git a/cmd/crio/main.go b/cmd/crio/main.go |
| 15 | +index 0bc347a..ab9969f 100644 |
| 16 | +--- a/cmd/crio/main.go |
| 17 | ++++ b/cmd/crio/main.go |
| 18 | +@@ -207,7 +207,7 @@ func mergeConfig(config *server.Config, ctx *cli.Context) (string, error) { |
| 19 | + } |
| 20 | + |
| 21 | + func writeCrioGoroutineStacks() { |
| 22 | +- path := filepath.Join("/tmp", fmt.Sprintf("crio-goroutine-stacks-%s.log", strings.ReplaceAll(time.Now().Format(time.RFC3339), ":", ""))) |
| 23 | ++ path := filepath.Join("/tmp", fmt.Sprintf("crio-goroutine-stacks-%s.log", strings.Replace(time.Now().Format(time.RFC3339), ":", "", -1))) |
| 24 | + if err := utils.WriteGoroutineStacksToFile(path); err != nil { |
| 25 | + logrus.Warnf("Failed to write goroutine stacks: %s", err) |
| 26 | + } |
| 27 | +diff --git a/oci/runtime_vm.go b/oci/runtime_vm.go |
| 28 | +index 57a1fde..64f853f 100644 |
| 29 | +--- a/oci/runtime_vm.go |
| 30 | ++++ b/oci/runtime_vm.go |
| 31 | +@@ -172,7 +172,7 @@ func (r *runtimeVM) startRuntimeDaemon(c *Container) error { |
| 32 | + args = append(args, "start") |
| 33 | + |
| 34 | + // Modify the runtime path so that it complies with v2 shim API |
| 35 | +- newRuntimePath := strings.ReplaceAll(r.path, "-", ".") |
| 36 | ++ newRuntimePath := strings.Replace(r.path, "-", ".", -1) |
| 37 | + |
| 38 | + // Setup default namespace |
| 39 | + r.ctx = namespaces.WithNamespace(r.ctx, namespaces.Default) |
0 commit comments