Skip to content

Commit

Permalink
Update methods signature
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed May 14, 2021
1 parent ac75ee4 commit df4b8a3
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
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,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 @@ -489,7 +489,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 @@ -607,7 +607,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 @@ -634,7 +634,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
Original file line number Diff line number Diff line change
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 df4b8a3

Please sign in to comment.