-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Currently running the operator-sdk build
command does not show the error output of why a build failed. E.g:
$ operator-sdk build quay.io/coreos/operator-sdk-dev:haseeb
Error: failed to build: (exit status 1)
Whereas the actual error is
$ ./tmp/build/build.sh
building memcached-operator...
pkg/stub/handler.go:6:2: case-insensitive import collision: "github.com/hasbro17/memcached-operator/vendor/github.com/Sirupsen/logrus" and "github.com/hasbro17/memcached-operator/vendor/github.com/sirupsen/logrus"
This is because in commands/operator-sdk/cmd/build.go
we don't print the output buffer returned from running the command if it fails. That output buffer holds stderr and so it should be printed in case of error.
https://github.com/coreos/operator-sdk/blob/master/commands/operator-sdk/cmd/build.go#L42-L44
/cc @fanminshi
Metadata
Metadata
Assignees
Labels
No labels