Skip to content

Commit 364e1ff

Browse files
committed
update gitwatch and add back the initial clone channel reads to ensure repos are cloned before continuing
1 parent 0f2b7db commit 364e1ff

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/Southclaws/wadsworth
33
go 1.13
44

55
require (
6-
github.com/Southclaws/gitwatch v1.3.1
6+
github.com/Southclaws/gitwatch v1.3.2
77
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
88
github.com/frankban/quicktest v1.4.1 // indirect
99
github.com/go-test/deep v1.0.2 // indirect

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ github.com/Southclaws/gitwatch v1.3.0 h1:oD++CTkgMoX7SEuk2/Vy6Y8iy7xFmsjKT7e6AiA
66
github.com/Southclaws/gitwatch v1.3.0/go.mod h1:xCudUiwWxkDYZ69cEhlTwAKIzbG1OpnA/s/pjPIW6gU=
77
github.com/Southclaws/gitwatch v1.3.1 h1:4XtiujsnxHKSKze3Tb5sWwTdBxSVW/JLbK54ruJ2nBU=
88
github.com/Southclaws/gitwatch v1.3.1/go.mod h1:xCudUiwWxkDYZ69cEhlTwAKIzbG1OpnA/s/pjPIW6gU=
9+
github.com/Southclaws/gitwatch v1.3.2 h1:zmt571n8ItXgkRJPyCFtFjcymvsFOGcm7JnHNpFDP+8=
10+
github.com/Southclaws/gitwatch v1.3.2/go.mod h1:xCudUiwWxkDYZ69cEhlTwAKIzbG1OpnA/s/pjPIW6gU=
911
github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7 h1:uSoVVbwJiQipAclBbw+8quDsfcvFjOpI5iCf4p/cqCs=
1012
github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs=
1113
github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA=

service/reconfigure.go

+6
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ func (app *App) watchConfig() (err error) {
9191
}()
9292
zap.L().Debug("created new config watcher, awaiting setup")
9393

94+
<-app.configWatcher.InitialDone
95+
9496
return
9597
}
9698

@@ -129,6 +131,8 @@ func (app *App) watchTargets() (err error) {
129131
}()
130132
zap.L().Debug("created targets watcher, awaiting setup")
131133

134+
<-app.targetsWatcher.InitialDone
135+
132136
return
133137
}
134138

@@ -138,6 +142,8 @@ func getNewState(path, hostname string, fallback config.State) (state config.Sta
138142
state, err := config.ConfigFromDirectory(path, hostname)
139143
if err != nil {
140144
zap.L().Error("failed to construct config from repo, falling back to original state",
145+
zap.String("path", path),
146+
zap.String("hostname", hostname),
141147
zap.Error(err))
142148

143149
state = fallback

0 commit comments

Comments
 (0)