abiosoft / caddy-docker

Docker container for Caddy
https://hub.docker.com/r/abiosoft/caddy/
MIT License
766 stars 314 forks source link

Example build with plugins does not work #222

Closed jaedle closed 4 years ago

jaedle commented 4 years ago

Building the example from the readme does not work.

docker build --no-cache --pull --build-arg \
    plugins=git,linode \
    github.com/abiosoft/caddy-docker.git

(I added the --no-cache and --pull flag to disable any kind of caching)

Error message:

go: finding github.com/timewasted/linode/dns latest
go: finding github.com/timewasted/linode latest
go: downloading github.com/timewasted/linode v0.0.0-20160829202747-37e84520dcf7
go: extracting github.com/timewasted/linode v0.0.0-20160829202747-37e84520dcf7
package caddy:
git.go:2:10: invalid import path: ""
finished stage: customising plugins and telemetry ✓

starting stage: building caddy
go: downloading gopkg.in/natefinch/lumberjack.v2 v2.0.0
go: downloading github.com/gorilla/websocket v1.4.0
go: downloading github.com/dustin/go-humanize v1.0.0
go: downloading github.com/russross/blackfriday v0.0.0-20170610170232-067529f716f4
go: downloading github.com/jimstudt/http-authentication v0.0.0-20140401203705-3eca13d6893a
go: downloading github.com/naoina/toml v0.1.1
go: downloading gopkg.in/yaml.v2 v2.2.2
go: downloading github.com/hashicorp/go-syslog v1.0.0
go: downloading github.com/lucas-clemente/quic-go v0.10.2
go: extracting github.com/hashicorp/go-syslog v1.0.0
go: extracting github.com/gorilla/websocket v1.4.0
go: extracting github.com/dustin/go-humanize v1.0.0
go: extracting github.com/jimstudt/http-authentication v0.0.0-20140401203705-3eca13d6893a
go: extracting github.com/russross/blackfriday v0.0.0-20170610170232-067529f716f4
go: extracting github.com/naoina/toml v0.1.1
go: downloading github.com/naoina/go-stringutil v0.1.0
go: extracting github.com/naoina/go-stringutil v0.1.0
go: extracting github.com/lucas-clemente/quic-go v0.10.2
go: downloading github.com/bifurcation/mint v0.0.0-20180715133206-93c51c6ce115
go: downloading github.com/lucas-clemente/quic-go-certificates v0.0.0-20160823095156-d2f86524cced
go: downloading github.com/hashicorp/golang-lru v0.0.0-20180201235237-0fb14efe8c47
go: downloading github.com/cheekybits/genny v0.0.0-20170328200008-9127e812e1e9
go: downloading github.com/lucas-clemente/aes12 v0.0.0-20171027163421-cd47fb39b79f
go: extracting github.com/hashicorp/golang-lru v0.0.0-20180201235237-0fb14efe8c47
go: extracting github.com/cheekybits/genny v0.0.0-20170328200008-9127e812e1e9
go: extracting github.com/lucas-clemente/aes12 v0.0.0-20171027163421-cd47fb39b79f
go: extracting github.com/bifurcation/mint v0.0.0-20180715133206-93c51c6ce115
go: extracting github.com/lucas-clemente/quic-go-certificates v0.0.0-20160823095156-d2f86524cced
go: extracting gopkg.in/natefinch/lumberjack.v2 v2.0.0
go: extracting gopkg.in/yaml.v2 v2.2.2
can't load package: package caddy:
git.go:2:10: invalid import path: ""
error at 'building caddy'
The command '/bin/sh -c VERSION=${version} PLUGINS=${plugins} ENABLE_TELEMETRY=${enable_telemetry} /bin/sh /usr/bin/builder.sh' returned a non-zero code: 1
tobiasmuehl commented 4 years ago

This is the same error as in #220, #148. I also have this problem with the redis plugin

PretentiousPotatoPeeler commented 4 years ago

I'm also running into this issue. Is there any news of a workaround?

sparampalli commented 4 years ago

Please follow work-around suggested in - https://github.com/abiosoft/caddy-docker/pull/223.

I ran into the same issue and able to fix it as per the suggested work-around.

jaedle commented 4 years ago

Seems to be working again.