Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Build fails with new caddy since switching to go modules #32

Open
abom opened this issue Apr 23, 2019 · 2 comments
Open

Build fails with new caddy since switching to go modules #32

abom opened this issue Apr 23, 2019 · 2 comments

Comments

@abom
Copy link

abom commented Apr 23, 2019

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 caddyserver/caddy#2549

How to reproduce?
Mentioned at caddyserver/caddy#2549

@abom abom changed the title Build fail with new caddy with go modules Build fail with new caddy since switching to go modules Apr 23, 2019
@abom abom changed the title Build fail with new caddy since switching to go modules Build fails with new caddy since switching to go modules Apr 23, 2019
@pepa65
Copy link

pepa65 commented Apr 29, 2019

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

@eine
Copy link
Contributor

eine commented Apr 30, 2019

@hacdias, any guess?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants