Skip to content

Commit 67dc164

Browse files
committed
Change SyncMap supported types check style
Allow for future extension with more supported builders like jib, which is expected to produce a syncMap
1 parent 0b7d823 commit 67dc164

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/skaffold/build/local/local.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ func (b *Builder) getImageIDForTag(ctx context.Context, tag string) (string, err
118118
}
119119

120120
func (b *Builder) SyncMap(ctx context.Context, a *latest.Artifact) (map[string][]string, error) {
121-
if a.DockerArtifact == nil {
122-
return nil, build.ErrSyncMapNotSupported{}
121+
if a.DockerArtifact != nil {
122+
return docker.SyncMap(ctx, a.Workspace, a.DockerArtifact.DockerfilePath, a.DockerArtifact.BuildArgs, b.insecureRegistries)
123123
}
124+
return nil, build.ErrSyncMapNotSupported{}
124125

125-
return docker.SyncMap(ctx, a.Workspace, a.DockerArtifact.DockerfilePath, a.DockerArtifact.BuildArgs, b.insecureRegistries)
126126
}

0 commit comments

Comments
 (0)