Skip to content

Commit

Permalink
Update methods signature
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Jun 10, 2021
1 parent d2a53a6 commit 3ac158c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions components/image-builder/pkg/builder/builder.go
Expand Up @@ -458,7 +458,7 @@ func (b *DockerBuilder) createBuildVolume(ctx context.Context, buildID string) (
Mounts: []mount.Mount{
{Type: mount.TypeVolume, Source: buildVolName, Target: "/workspace"},
},
}, nil, containerName)
}, nil, nil, containerName)
if err != nil {
return "", xerrors.Errorf("cannot create build volume: %w", err)
}
Expand Down Expand Up @@ -501,7 +501,7 @@ func (b *DockerBuilder) buildBaseImage(ctx context.Context, bld *build, src *api
Mounts: []mount.Mount{
{Type: mount.TypeVolume, Source: bld.buildVolume, Target: "/workspace"},
},
}, nil, syncContainerName)
}, nil, nil, syncContainerName)
if err != nil {
return xerrors.Errorf("cannot create initializer: %w", err)
}
Expand Down Expand Up @@ -619,7 +619,7 @@ func (b *DockerBuilder) buildWorkspaceImage(ctx context.Context, bld *build, bas
Mounts: []mount.Mount{
{Type: mount.TypeVolume, Source: bld.buildVolume, Target: "/workspace"},
},
}, nil, "detectdist-"+bld.ID)
}, nil, nil, "detectdist-"+bld.ID)
if err != nil {
return xerrors.Errorf("cannot build workspace image: %w", err)
}
Expand All @@ -646,7 +646,7 @@ func (b *DockerBuilder) buildWorkspaceImage(ctx context.Context, bld *build, bas
Mounts: []mount.Mount{
{Type: mount.TypeVolume, Source: bld.buildVolume, Target: "/workspace"},
},
}, nil, "dfgen-"+bld.ID)
}, nil, nil, "dfgen-"+bld.ID)
if err != nil {
return xerrors.Errorf("cannot build workspace image: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion components/image-builder/pkg/builder/docker.go
Expand Up @@ -166,7 +166,7 @@ func (b *DockerBuilder) serveContext(ctx context.Context, bld *build, volume, pa
Mounts: []mount.Mount{
{Type: mount.TypeVolume, Source: volume, Target: "/workspace"},
},
}, nil, containerName)
}, nil, nil, containerName)
if err != nil {
return xerrors.Errorf("cannot create context server: %w", err)
}
Expand Down

0 comments on commit 3ac158c

Please sign in to comment.