samvaughton / caddy-netlify-redirects Goto Github PK
View Code? Open in Web Editor NEWAllows Caddy to use Netlify's _redirect file format
License: MIT License
Allows Caddy to use Netlify's _redirect file format
License: MIT License
Hi,
I tried this Dockerfile to build:
FROM caddy:2-builder AS builder
RUN xcaddy build --with github.com/samvaughton/caddy-netlify-redirects/v2
FROM caddy:2
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
But it fails with this:
=> ERROR [builder 2/2] RUN xcaddy build --with github.com/samvaughton/caddy-netlify-redirects/v2 53.6s
------
> [builder 2/2] RUN xcaddy build --with github.com/samvaughton/caddy-netlify-redirects/v2:
#7 0.521 2022/01/14 15:58:01 [INFO] Temporary folder: /tmp/buildenv_2022-01-14-1558.794503185
#7 0.521 2022/01/14 15:58:01 [INFO] Writing main module: /tmp/buildenv_2022-01-14-1558.794503185/main.go
#7 0.522 2022/01/14 15:58:01 [INFO] Initializing Go module
#7 0.523 2022/01/14 15:58:01 [INFO] exec (timeout=10s): /usr/local/go/bin/go mod init caddy
#7 0.529 go: creating new go.mod: module caddy
#7 0.530 go: to add module requirements and sums:
#7 0.530 go mod tidy
#7 0.532 2022/01/14 15:58:01 [INFO] Pinning versions
#7 0.532 2022/01/14 15:58:01 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/caddyserver/caddy/[email protected]
#7 0.692 go: downloading github.com/caddyserver/caddy/v2 v2.4.6
#7 44.13 go: downloading github.com/caddyserver/certmagic v0.15.2
#7 44.13 go: downloading github.com/google/uuid v1.3.0
#7 44.13 go: downloading github.com/prometheus/client_golang v1.11.0
#7 44.22 go: downloading go.uber.org/zap v1.19.0
#7 44.33 go: downloading golang.org/x/term v0.0.0-20210503060354-a79de5458b56
#7 44.43 go: downloading github.com/klauspost/cpuid/v2 v2.0.9
#7 44.43 go: downloading github.com/libdns/libdns v0.2.1
#7 44.43 go: downloading github.com/mholt/acmez v1.0.1
#7 44.48 go: downloading github.com/miekg/dns v1.1.43
#7 44.61 go: downloading golang.org/x/crypto v0.0.0-20210915214749-c084706c2272
#7 44.61 go: downloading golang.org/x/net v0.0.0-20210913180222-943fd674d43e
#7 44.64 go: downloading github.com/beorn7/perks v1.0.1
#7 44.68 go: downloading github.com/cespare/xxhash/v2 v2.1.1
#7 44.74 go: downloading github.com/golang/protobuf v1.5.2
#7 45.41 go: downloading github.com/cespare/xxhash v1.1.0
#7 45.66 go: downloading github.com/prometheus/client_model v0.2.0
#7 45.67 go: downloading github.com/prometheus/common v0.26.0
#7 45.76 go: downloading github.com/prometheus/procfs v0.6.0
#7 45.83 go: downloading golang.org/x/sys v0.0.0-20210915083310-ed5796bab164
#7 45.86 go: downloading go.uber.org/atomic v1.7.0
#7 45.87 go: downloading go.uber.org/multierr v1.6.0
#7 46.02 go: downloading google.golang.org/protobuf v1.27.1
#7 47.17 go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
#7 47.18 go: downloading golang.org/x/text v0.3.7
#7 52.14 go get: added github.com/beorn7/perks v1.0.1
#7 52.14 go get: added github.com/caddyserver/caddy/v2 v2.4.6
#7 52.14 go get: added github.com/caddyserver/certmagic v0.15.2
#7 52.14 go get: added github.com/cespare/xxhash/v2 v2.1.1
#7 52.14 go get: added github.com/golang/protobuf v1.5.2
#7 52.14 go get: added github.com/google/uuid v1.3.0
#7 52.14 go get: added github.com/klauspost/cpuid/v2 v2.0.9
#7 52.14 go get: added github.com/libdns/libdns v0.2.1
#7 52.14 go get: added github.com/matttproud/golang_protobuf_extensions v1.0.1
#7 52.14 go get: added github.com/mholt/acmez v1.0.1
#7 52.14 go get: added github.com/miekg/dns v1.1.43
#7 52.14 go get: added github.com/prometheus/client_golang v1.11.0
#7 52.14 go get: added github.com/prometheus/client_model v0.2.0
#7 52.15 go get: added github.com/prometheus/common v0.26.0
#7 52.15 go get: added github.com/prometheus/procfs v0.6.0
#7 52.15 go get: added go.uber.org/atomic v1.7.0
#7 52.15 go get: added go.uber.org/multierr v1.6.0
#7 52.15 go get: added go.uber.org/zap v1.19.0
#7 52.15 go get: added golang.org/x/crypto v0.0.0-20210915214749-c084706c2272
#7 52.15 go get: added golang.org/x/net v0.0.0-20210913180222-943fd674d43e
#7 52.15 go get: added golang.org/x/sys v0.0.0-20210915083310-ed5796bab164
#7 52.15 go get: added golang.org/x/term v0.0.0-20210503060354-a79de5458b56
#7 52.15 go get: added golang.org/x/text v0.3.7
#7 52.15 go get: added google.golang.org/protobuf v1.27.1
#7 52.16 2022/01/14 15:58:53 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/samvaughton/caddy-netlify-redirects/v2
#7 52.75 go: downloading github.com/samvaughton/caddy-netlify-redirects v0.2.3
#7 52.76 go: downloading github.com/samvaughton/caddy-netlify-redirects/v2 v2.0.0-20210723071433-258629b4667e
#7 52.87 go get: github.com/samvaughton/caddy-netlify-redirects/[email protected]: parsing go.mod:
#7 52.87 module declares its path as: github.com/samvaughton/naddy/v2
#7 52.87 but was required as: github.com/samvaughton/caddy-netlify-redirects/v2
#7 52.88 2022/01/14 15:58:53 [FATAL] exit status 1
------
executor failed running [/bin/sh -c xcaddy build --with github.com/samvaughton/caddy-netlify-redirects/v2]: exit code: 1
task: Failed to run task "docs:serve": task: Failed to run task "docs:build-server": exit status 1
Can you help?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.