Skip to content

Build fails on master/last release tag #31

@strarsis

Description

@strarsis

I try to build fabio from source but it fails on master and on the last release tag (v1.0.7).

Steps to (probably) reproduce this:

$ git clone https://github.com/eBay/fabio.git
$ cd fabio

$ git checkout v1.0.7
$ git reset --hard

$ export GOPATH=$(pwd) # is set!

$ go get github.com/eBay/fabio

During go get I get this error:

[...]
src/github.com/eBay/fabio/route/table.go:15: undefined: atomic.Value
[...]

When I don't run go get, and directly go build, I get the error that it cannot find sources,
hence I run go get first to fix this:

$ go build
main.go:10:2: cannot find package "github.com/eBay/fabio/admin" in any of:
        /usr/lib/go/src/pkg/github.com/eBay/fabio/admin (from $GOROOT)
        /home/build/src/fabio/src/github.com/eBay/fabio/admin (from $GOPATH)
init.go:10:2: cannot find package "github.com/eBay/fabio/config" in any of:
        /usr/lib/go/src/pkg/github.com/eBay/fabio/config (from $GOROOT)
        /home/build/src/fabio/src/github.com/eBay/fabio/config (from $GOPATH)
listen.go:16:2: cannot find package "github.com/eBay/fabio/exit" in any of:
        /usr/lib/go/src/pkg/github.com/eBay/fabio/exit (from $GOROOT)
        /home/build/src/fabio/src/github.com/eBay/fabio/exit (from $GOPATH)
init.go:11:2: cannot find package "github.com/eBay/fabio/metrics" in any of:
        /usr/lib/go/src/pkg/github.com/eBay/fabio/metrics (from $GOROOT)
        /home/build/src/fabio/src/github.com/eBay/fabio/metrics (from $GOPATH)
listen.go:17:2: cannot find package "github.com/eBay/fabio/proxy" in any of:
        /usr/lib/go/src/pkg/github.com/eBay/fabio/proxy (from $GOROOT)
        /home/build/src/fabio/src/github.com/eBay/fabio/proxy (from $GOPATH)
init.go:12:2: cannot find package "github.com/eBay/fabio/registry" in any of:
        /usr/lib/go/src/pkg/github.com/eBay/fabio/registry (from $GOROOT)
        /home/build/src/fabio/src/github.com/eBay/fabio/registry (from $GOPATH)
init.go:13:2: cannot find package "github.com/eBay/fabio/registry/consul" in any of:
        /usr/lib/go/src/pkg/github.com/eBay/fabio/registry/consul (from $GOROOT)
        /home/build/src/fabio/src/github.com/eBay/fabio/registry/consul (from $GOPATH)
init.go:14:2: cannot find package "github.com/eBay/fabio/route" in any of:
        /usr/lib/go/src/pkg/github.com/eBay/fabio/route (from $GOROOT)
        /home/build/src/fabio/src/github.com/eBay/fabio/route (from $GOPATH)

Also when running go build after go get:

[...]
$ go build
[...]

Same error message:

[...]
src/github.com/eBay/fabio/route/table.go:15: undefined: atomic.Value
[...]

No fabio binary is created.

Using go version go1.3.3 linux/amd64) from Debian Jessie stable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions