@@ -30,7 +30,6 @@ import (
30
30
31
31
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/constants"
32
32
sErrors "github.com/GoogleContainerTools/skaffold/pkg/skaffold/errors"
33
- "github.com/GoogleContainerTools/skaffold/pkg/skaffold/event"
34
33
proto "github.com/GoogleContainerTools/skaffold/proto/v2"
35
34
)
36
35
@@ -69,7 +68,7 @@ type eventHandler struct {
69
68
logLock sync.Mutex
70
69
applicationLogs []proto.Event
71
70
applicationLogsLock sync.Mutex
72
- cfg event. Config
71
+ cfg Config
73
72
74
73
iteration int
75
74
state proto.State
@@ -179,7 +178,7 @@ func (ev *eventHandler) forEachApplicationLog(callback func(*proto.Event) error)
179
178
return ev .forEach (& ev .applicationLogListeners , & ev .applicationLogs , & ev .applicationLogsLock , callback )
180
179
}
181
180
182
- func emptyState (cfg event. Config ) proto.State {
181
+ func emptyState (cfg Config ) proto.State {
183
182
builds := map [string ]string {}
184
183
for _ , p := range cfg .GetPipelines () {
185
184
for _ , a := range p .Build .Artifacts {
@@ -272,7 +271,7 @@ func emptyStatusCheckState() *proto.StatusCheckState {
272
271
}
273
272
274
273
// InitializeState instantiates the global state of the skaffold runner, as well as the event log.
275
- func InitializeState (cfg event. Config ) {
274
+ func InitializeState (cfg Config ) {
276
275
handler .cfg = cfg
277
276
handler .setState (emptyState (cfg ))
278
277
}
@@ -286,7 +285,7 @@ func AutoTriggerDiff(phase constants.Phase, val bool) (bool, error) {
286
285
case constants .Deploy :
287
286
return val != handler .getState ().DeployState .AutoTrigger , nil
288
287
default :
289
- return false , fmt .Errorf ("unknown phase %v not found in handler state" , phase )
288
+ return false , fmt .Errorf ("unknown Phase %v not found in handler state" , phase )
290
289
}
291
290
}
292
291
0 commit comments