caddy icon indicating copy to clipboard operation
caddy copied to clipboard

Build fails with new caddy since switching to go modules

Open abom opened this issue 5 years ago • 2 comments

When did you download File Browser from caddyserver.com? Building from source

What is your entire Caddyfile? None

Description Trying to build caddy with filebrowser from source, but the build fails since caddy switched to go modules.

Detailed issue with errors can be found here.

Expected behaviour Successful build.

What is happening instead? Mentioned at https://github.com/mholt/caddy/issues/2549

How to reproduce? Mentioned at https://github.com/mholt/caddy/issues/2549

abom avatar Apr 23 '19 09:04 abom

Same, go 1.12 here; this is the file that I'm trying to build:

package main
import (
  "github.com/mholt/caddy/caddy/caddymain"
    _ "github.com/filebrowser/caddy"
)

func main() {
  caddymain.Run()
}

go build outputs:

go: finding github.com/mholt/caddy/caddy/caddymain latest
go: finding github.com/mholt/caddy/caddy latest
go: finding github.com/GeertJohan/go.rice/embedded latest
go: finding github.com/filebrowser/filebrowser/errors latest
go: finding github.com/filebrowser/filebrowser/settings latest
go: finding github.com/filebrowser/filebrowser/users latest
go: finding github.com/filebrowser/filebrowser/http latest
go: finding github.com/filebrowser/filebrowser/auth latest
go: finding github.com/filebrowser/filebrowser/storage latest
go: finding github.com/filebrowser/filebrowser/storage/bolt latest
build build: cannot load github.com/filebrowser/filebrowser/auth: cannot find module providing package github.com/filebrowser/filebrowser/auth

pepa65 avatar Apr 29 '19 23:04 pepa65

@hacdias, any guess?

eine avatar Apr 30 '19 22:04 eine