Simple use of ctx for linter
@@ -25,9 +25,19 @@ import (
)
func (b *Builder) buildJibMaven(ctx context.Context, out io.Writer, workspace string, a *v1alpha3.JibMavenArtifact) (string, error) {
+ select {
+ case <-ctx.Done():
+ return "", ctx.Err()
+ default:
+ }
return "", errors.New("buildJibMaven is unimplemented")
}
func (b *Builder) buildJibGradle(ctx context.Context, out io.Writer, workspace string, a *v1alpha3.JibGradleArtifact) (string, error) {
+ select {
+ case <-ctx.Done():
+ return "", ctx.Err()
+ default:
+ }
return "", errors.New("buildJibGradle is unimplemented")
}
