h2non / imaginary

Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing
https://fly.io/docs/app-guides/run-a-global-image-service/
MIT License
5.5k stars 455 forks source link

Build image from Dockerfile error after commit 00f696fe3a3211fb7d01450b9f81308e17c56ca3 #387

Open quartoq opened 2 years ago

quartoq commented 2 years ago

Hi, after last commit (00f696fe3a3211fb7d01450b9f81308e17c56ca3 - allow speed from get), can not build image from Dockerfile:

 github.com/h2non/imaginary` [github.com/h2non/imaginary.test]
./options.go:148: unknown field 'Speed' in struct literal of type bimg.Options
FAIL    github.com/h2non/imaginary [build failed]
FAIL
Error response from daemon: The command '/bin/sh -c go test ./... -test.v -race -test.coverprofile=atomic .' returned a non-zero code: 2
Failed to deploy '<unknown> Dockerfile: imaginary-master/Dockerfile': Can't retrieve image ID from build stream
Dachande663 commented 2 years ago

Looks like the go.mod (and corresponding go.sum) files haven't been updated to h2non/bimg v1.1.7 which added the Speed field. Changing go.mod to 1.1.7 and running go mod tidy enables building.

csware commented 1 year ago

I think this issue can be closed, building the docker container works again after 1779f2a118de1727b8229ba1e620fa87f5d7c874 got merged with PR #404.