builder/dockerfile/internals.go
Method Builder.performCopy
has 8 return statements (exceeds 4 allowed). Open
Open
func (b *Builder) performCopy(ctx context.Context, req dispatchRequest, inst copyInstruction) error {
state := req.state
srcHash := getSourceHashFromInfos(inst.infos)
var chownComment string
Method Builder.exportImage
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (b *Builder) exportImage(ctx context.Context, state *dispatchState, layer builder.RWLayer, parent builder.Image, runConfig *container.Config) error {
Method Builder.exportImage
has 5 return statements (exceeds 4 allowed). Open
Open
func (b *Builder) exportImage(ctx context.Context, state *dispatchState, layer builder.RWLayer, parent builder.Image, runConfig *container.Config) error {
newLayer, err := layer.Commit()
if err != nil {
return err
}