Skip to content

Commit 7bc12ae

Browse files
committed
Fixed handling unwatched services
1 parent 5ad9b23 commit 7bc12ae

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/compose-service.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package main
22

33
import (
4-
"log"
54
"os/exec"
65
)
76

@@ -17,7 +16,6 @@ type ComposeService struct {
1716
}
1817

1918
func (s *ComposeService) Pull() bool {
20-
log.Println("Running: ", "docker", "compose", "-f", s.ComposeFile.YamlFilePath, "pull", s.Name)
2119
err := exec.Command("docker", "compose", "-f", s.ComposeFile.YamlFilePath, "pull", s.Name).Run()
2220
if err != nil {
2321
return false

src/updater.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ func PerformComposeUpdates() {
1212
compositionRestart := false
1313
log.Printf("Checking for updates of services in %s...\n", composeFile.YamlFilePath)
1414
for _, service := range composeFile.Services {
15+
if service.Instance == nil {
16+
continue
17+
}
1518
requiresBuild := len(service.BuildInfo) > 0
1619
log.Printf("Processing service %s (requires build: %t)...\n", service.Name, requiresBuild)
1720
if !requiresBuild {

src/version.go

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

33
// BuildVersion is the version
4-
const BuildVersion = "2.0.0"
4+
const BuildVersion = "2.0.1"

0 commit comments

Comments
 (0)