Comments (10)
Oh... yeah, that's because xcaddy
by default will build with the latest released version of Caddy, which is 2.5.2 currently.
If you set CADDY_VERSION=c2bbe42fc3553f6a5685cdb45453c0950fa614b2
and run xcaddy
it will work. (I just tried it.)
from ntlm-transport.
Hi. Thank you for your reply. I added the variable but still get no love:
`2022/07/26 11:08:06 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/caddyserver/ntlm-transport github.com/caddyserver/caddy/v2
go: github.com/caddyserver/ntlm-transport@upgrade (v0.1.2) requires github.com/caddyserver/caddy/[email protected], not github.com/caddyserver/caddy/v2@upgrade (v2.5.2)
2022/07/26 11:08:06 [FATAL] exit status 1
root@DP1:~# echo $CADDY_VERSION
c2bbe42fc3553f6a5685cdb45453c0950fa614b2`
What am I doing wrong?
Thanks!
from ntlm-transport.
You are using Go 1.18 right?
Could also try --with github.com/caddyserver/caddy/v2@c2bbe42fc3553f6a5685cdb45453c0950fa614b2
just to see...
from ntlm-transport.
Indeed, go version go1.18.1 linux/amd64
from ntlm-transport.
No cigar...
2022/07/26 12:25:38 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/caddyserver/caddy/v2@c2bbe42fc3553f6a5685cdb45453c0950fa614b2 github.com/caddyserver/caddy/v2
go: downloading github.com/caddyserver/caddy/v2 v2.5.3-0.20220713145230-c2bbe42fc355
go: github.com/caddyserver/caddy/v2@upgrade (v2.5.2) conflicts with github.com/caddyserver/caddy/v2@c2bbe42fc3553f6a5685cdb45453c0950fa614b2 (v2.5.3-0.20220713145230-c2bbe42fc355)
2022/07/26 12:25:44 [FATAL] exit status 1
from ntlm-transport.
This is my cmd
xcaddy build --with github.com/caddyserver/caddy/v2@c2bbe42fc3553f6a5685cdb45453c0950fa614b2 --with github.com/caddy-dns/cloudflare --with github.com/mholt/caddy-webdav --with github.com/greenpau/caddy-auth-portal --with github.com/greenpau/caddy-trace --with github.com/porech/caddy-maxmind-geolocation --with github.com/ueffel/caddy-brotli --with github.com/caddyserver/transform-encoder --with github.com/mholt/caddy-l4/layer4 --with github.com/caddyserver/ntlm-transport --output /usr/local/bin/caddy
from ntlm-transport.
Ah, sorry, try this:
$ CADDY_VERSION=c2bbe42fc3553f6a5685cdb45453c0950fa614b2 xcaddy build --with github.com/caddyserver/ntlm-transport
That worked for me. If it still fails then it's probably a conflict with another plugin.
from ntlm-transport.
That last one did the trick, thank you! What happens when Caddy itself gets updated? How to get the version string?
from ntlm-transport.
@ElPistoler0 Once a new version of Caddy is tagged (v2.5.3 probably), you won't need to use one. By default Go uses the last release, and since the fix hasn't been released yet, you need to use a commit that does have the fix until the release is tagged.
At that point you can just remove the CADDY_VERSION=...
part.
from ntlm-transport.
Thank you.
from ntlm-transport.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ntlm-transport.