WedgeServer / wedge

Fast, cross-platform HTTP/2 web server with automatic HTTPS
Apache License 2.0
241 stars 6 forks source link

Failing when building from source and importing plugins #8

Open mr-tcan opened 6 years ago

mr-tcan commented 6 years ago

1. What version of Wedge are you using (wedge -version)?

0.10.9-w

2. What are you trying to do?

I was trying to build Wedge from source with some plugins. To do that, I wrote a file plugins.go inside wedge/caddy/caddymain:

package caddymain

import (
    _ "github.com/tdewolff/minify"
)

I did:

go get github.com/WedgeServer/wedge
go get github.com/WedgeServer/builds
cd go/src/github.com/WedgeServer/wedge/caddy/
go get -u ./...

And then I got this:

github.com/WedgeServer/wedge (download)
# cd /go/src/github.com/WedgeServer/wedge; git submodule update --init --recursive
fatal: No url found for submodule path 'vendor/gopkg.in/mcuadros/go-syslog.v2' in .gitmodules
package github.com/WedgeServer/wedge/caddy: exit status 128

If I do go get github.com/abiosoft/caddy-git instead of got get -u it builds normally.

cking commented 6 years ago

As a workaround, i just ran git rm $GOPATH/src/github.com/WedgeServer/wedge/vendor/gopkg.in/mcuadros/go-syslog.v2; rm -r $GOPATH/src/github.com/WedgeServer/wedge/vendor/gopkg.in/mcuadros/go-syslog.v2

That did lete me run go get -u ./...