imaginary icon indicating copy to clipboard operation
imaginary copied to clipboard

Build image from Dockerfile error

Open suntong opened this issue 2 years ago • 2 comments

Just building from the latest imaginary repo, and get:

.
.
.
--- PASS: TestImageType (0.00s)
=== RUN   TestGetImageMimeType
--- PASS: TestGetImageMimeType (0.00s)
FAIL
coverage: 47.1% of statements
FAIL    github.com/h2non/imaginary      1.227s
FAIL
The command '/bin/sh -c go test ./... -test.v -race -test.coverprofile=atomic .' returned a non-zero code: 1

suntong avatar Nov 29 '23 16:11 suntong

Same issue here running with cloud run right from the repo.

cwatson272 avatar Aug 22 '24 22:08 cwatson272

See #128

pataquets avatar Oct 11 '24 16:10 pataquets

Also trying to deploy via cloud run and getting this error:

[ ✖ ] Failed to build container image.
Error: attempted to build and failed: docker build failed: exit status 1, output:
Dockerfile:53
--------------------
  51 |     
  52 |     # Run quality control
  53 | >>> RUN go test ./... -test.v -race -test.coverprofile=atomic .
  54 |     RUN golangci-lint run .
  55 |     
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c go test ./... -test.v -race -test.coverprofile=atomic ." did not complete successfully: exit code: 1

I'll have a look to investigate the possibility of fixing this.

jgunnink avatar Oct 20 '25 03:10 jgunnink