Use ko's strict mode for better errors messages (#706)

This commit is contained in:
Matt Moore 2020-03-07 12:11:27 -08:00 committed by GitHub
parent 9b1e8e149c
commit 1cbb94e2cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
image: knative.dev/client/cmd/kn
image: ko://knative.dev/client/cmd/kn

View File

@ -36,7 +36,7 @@ function build_release() {
echo "🚧 🎠 Building for Windows"
GOOS=windows GOARCH=amd64 go build -mod=vendor -ldflags "${ld_flags}" -o ./kn-windows-amd64.exe ./cmd/...
echo "🚧 🐳 Building the container image"
ko resolve ${KO_FLAGS} -f config/ > kn-image-location.yaml
ko resolve --strict ${KO_FLAGS} -f config/ > kn-image-location.yaml
ARTIFACTS_TO_PUBLISH="kn-darwin-amd64 kn-linux-amd64 kn-windows-amd64.exe kn-image-location.yaml"
if type sha256sum >/dev/null 2>&1; then
echo "🧮 Checksum:"