Giter Club home page Giter Club logo

Comments (13)

pieterlouw avatar pieterlouw commented on June 3, 2024 1

@mholt

How will it affect the Caddy build server if I use a vendor directory for the plugin. I'm thinking of telling dep to point to an older version of the upstream grpc-go to avoid surprises like these: mwitkow/grpc-proxy#24

from caddy-grpc.

mholt avatar mholt commented on June 3, 2024 1

Hmm, I'm not sure I would vendor Caddy itself either... 🤔 💣

from caddy-grpc.

pieterlouw avatar pieterlouw commented on June 3, 2024 1

I made some changes (added vendor then removed again :) don't ask), but the main change I made was to hard fork the proxy package from https://github.com/mwitkow/grpc-proxy into the plugin. There is a PR hanging there that will fix the mwitkow/grpc-proxy/proxy/handler.go:63:30: undefined: transport.StreamFromContext error mentioned above but I made that changes inside the plugin until the PR has been merged.

However now it seems the build is broken because of the new Cloudflare DNS as @mholt mentioned above.

from caddy-grpc.

met-pub avatar met-pub commented on June 3, 2024 1

Caddy v0.10.13 is ok! thanks!

from caddy-grpc.

shaxbee avatar shaxbee commented on June 3, 2024

This was fixed in #2, maybe caddy is hardcoded to partical version of caddy-grcp plugin?

from caddy-grpc.

met-pub avatar met-pub commented on June 3, 2024

thanks @shaxbee, I'm newbie in Go, is it possible to download caddy and the fixed plugin separately?

from caddy-grpc.

webwurst avatar webwurst commented on June 3, 2024

@bianbian-org I have a Dockerfile that shows how to build Caddy and plugins on your own: giantswarm/docker-caddy/Dockerfile

@shaxbee Thanks for the fix! \o/ I also hit that before. But now there is another one:

../../../mwitkow/grpc-proxy/proxy/handler.go:63:30: undefined: transport.StreamFromContext

from caddy-grpc.

webwurst avatar webwurst commented on June 3, 2024

Ok, it's probably because of this change, in a dependency introduced in November:

// We require that the director's returned context inherits from the serverStream.Context().

from caddy-grpc.

mholt avatar mholt commented on June 3, 2024

(And now Cloudflare's new DNS service broke one of our tests, go figure -- so deploying an update to the plugin will fail, but as soon as I get the next Caddy release out, later this week or early next, it should work.)

from caddy-grpc.

mholt avatar mholt commented on June 3, 2024

@pieterlouw As long as you don't vendor a lib used by Caddy, it should be OK. However, I haven't thoroughly tested it, but I think it works. (Or at least, it used to!)

from caddy-grpc.

pieterlouw avatar pieterlouw commented on June 3, 2024

Thanks @mholt. I just ran dep init on the plugin and it added caddy as one of the constraints.

[[constraint]]
  name = "github.com/mholt/caddy"
  version = "0.10.12"

Also, it added quite alot of packages to the vendor directory which might be included in caddy as well.
I'll see if there's a way around this.

from caddy-grpc.

mholt avatar mholt commented on June 3, 2024

Sorry, I've been a little delayed on that release, (end of semester stuff), but I will try to get it out soon.

from caddy-grpc.

pieterlouw avatar pieterlouw commented on June 3, 2024

Hi @bianbian-org. I've manage to deploy the latest code to Caddy (Thanks @mholt!), please check to see if this issue is resolved.

from caddy-grpc.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.