Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adamperlin committed Oct 22, 2024
1 parent ae1638f commit 3e6d15c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/azlinux/handle_rpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func installBuildDepsPackage(target string, packageName string, w worker, deps m
}
}

func installBuildDeps(ctx context.Context, w worker, sOpt dalec.SourceOpts, client gwclient.Client, spec *dalec.Spec, targetKey string, opts ...llb.ConstraintsOpt) (llb.StateOption, error) {
func installBuildDeps(ctx context.Context, w worker, client gwclient.Client, spec *dalec.Spec, targetKey string, opts ...llb.ConstraintsOpt) (llb.StateOption, error) {
deps := spec.GetBuildDeps(targetKey)
if len(deps) == 0 {
return func(in llb.State) llb.State { return in }, nil
Expand Down Expand Up @@ -230,7 +230,7 @@ func specToRpmLLB(ctx context.Context, w worker, client gwclient.Client, spec *d
return llb.Scratch(), err
}

installOpt, err := installBuildDeps(ctx, w, sOpt, client, spec, targetKey, opts...)
installOpt, err := installBuildDeps(ctx, w, client, spec, targetKey, opts...)
if err != nil {
return llb.Scratch(), err
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/azlinux/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func getSpecWorker(ctx context.Context, w worker, client gwclient.Client, sOpt d
return llb.Scratch(), errors.New("spec contains go modules but does not have golang in build deps")
}

installOpt, err := installBuildDeps(ctx, w, sOpt, client, spec, targetKey, opts...)
installOpt, err := installBuildDeps(ctx, w, client, spec, targetKey, opts...)
if err != nil {
return llb.Scratch(), err
}
Expand Down

0 comments on commit 3e6d15c

Please sign in to comment.