epicagency / caddy-expires

Provides a directive to add expires headers to certain paths
MIT License
4 stars 3 forks source link

Invalid import path? #8

Open allanchau opened 4 years ago

allanchau commented 4 years ago

Not sure if this is the problem package, but our caddy build has started failing.

starting stage: building caddy                                                                                   
go: downloading github.com/jimstudt/http-authentication v0.0.0-20140401203705-3eca13d6893a                       
go: downloading github.com/dustin/go-humanize v1.0.0                                                             
go: downloading github.com/gorilla/websocket v1.4.0                                                              
go: downloading github.com/naoina/toml v0.1.1                                                                    
go: downloading gopkg.in/yaml.v2 v2.2.2                                                                          
go: extracting github.com/jimstudt/http-authentication v0.0.0-20140401203705-3eca13d6893a                        
go: extracting github.com/dustin/go-humanize v1.0.0                                                              
go: extracting github.com/naoina/toml v0.1.1                                                                     
go: extracting github.com/gorilla/websocket v1.4.0                                                               
go: downloading github.com/naoina/go-stringutil v0.1.0                                                           
go: extracting github.com/naoina/go-stringutil v0.1.0                                                            
go: extracting gopkg.in/yaml.v2 v2.2.2                                                                           
can't load package: package caddy:                                                                               
expires.go:2:10: invalid import path: ""                                                                         
error at 'building caddy'  

Any ideas? Our dockerfile looks like this

FROM abiosoft/caddy:builder AS caddy

ARG version="1.0.1"
ARG plugins="expires,minify,realip,route53"
ARG enable_telemetry="false"

# process wrapper
RUN go get -v github.com/abiosoft/parent
RUN VERSION=${version} PLUGINS=${plugins} ENABLE_TELEMETRY=${enable_telemetry} /bin/sh /usr/bin/builder.sh
grugnog commented 4 years ago

Got this also - same issue with the realip plugin, but not others.

hlidotbe commented 4 years ago

I tried building on my machine and it works. Can you ensure your build uses v1.1.1 ? The import path was changed then.