gtfierro / xboswave

eXtensible Building Operating System built on WAVE and WAVEMQ
BSD 3-Clause "New" or "Revised" License
10 stars 6 forks source link

make build for xbosmortard fails #9

Closed anandkp92 closed 5 years ago

anandkp92 commented 5 years ago

Pulled latest updates from repo, running make build, returns error:

xboswave/xbosmortard$ make build 
CGO_CFLAGS_ALLOW=.*/git.sr.ht/%7Egabe/hod/turtle go build -o xbosmortard
# xbosmortard
./main.go:59:25: undefined: stages.ApiFrontendWAVEAuthStageConfig
./main.go:66:25: undefined: stages.NewApiFrontendWAVEAuthStage
Makefile:2: recipe for target 'build' failed
make: *** [build] Error 2

The build fails from this commit. I was able to successfully build it until this commit.

anandkp92 commented 5 years ago

Tried to update the go module:

go get -u git.sr.ht/~gabe/mortar
xboswave/xbosmortard$ go get -u git.sr.ht/~gabe/mortar
go: finding github.com/hamilton-lima/influxdb1-client latest
go: finding github.com/shurcooL/reactions latest
go: finding github.com/glycerine/go-unsnap-stream latest
go: finding github.com/shurcooL/gofontwoff latest
go: finding google.golang.org/genproto latest
go: finding github.com/google/pprof latest
go: finding github.com/ugorji/go/codec latest
go: finding github.com/shurcooL/highlight_go latest
go: finding github.com/shurcooL/octicon latest
go: finding golang.org/x/lint latest
go: finding golang.org/x/tools latest
go: finding github.com/shurcooL/webdavfs latest
go: finding golang.org/x/sys latest
go: finding github.com/anmitsu/go-shlex latest
go: finding github.com/influxdata/platform latest
go: finding golang.org/x/build latest
go: finding golang.org/x/net latest
go: finding honnef.co/go/tools latest
go: finding github.com/bitly/go-hostpool latest
go: finding github.com/shurcooL/issues latest
go: finding github.com/tcnksm/go-input latest
go: finding github.com/jwilder/encoding latest
go: finding github.com/Nvveen/Gotty latest
go: finding github.com/smartystreets/goconvey latest
go: finding github.com/jmespath/go-jmespath latest
go: finding golang.org/x/sync latest
go: finding gopkg.in/check.v1 latest
go: finding github.com/campoy/unique latest
go: finding github.com/Azure/go-ansiterm latest
go: finding github.com/gregjones/httpcache latest
go: finding golang.org/x/oauth2 latest
go: finding github.com/heptiolabs/healthcheck latest
go: finding github.com/tarm/serial latest
go: finding go4.org latest
go: finding github.com/coreos/go-systemd latest
go: finding github.com/influxdata/usage-client latest
go: finding github.com/shurcooL/notifications latest
go: finding gopkg.in/asn1-ber.v1 latest
go: finding github.com/andreyvit/diff latest
go: finding github.com/shurcooL/httpfs latest
go: finding github.com/prometheus/procfs latest
go: finding github.com/sourcegraph/annotate latest
go: finding github.com/shurcooL/gopherjslib latest
go: finding github.com/armon/consul-api latest
go: finding github.com/golang/glog latest
go: finding github.com/yudai/golcs latest
go: finding github.com/alecthomas/template latest
go: finding github.com/chzyer/readline latest
go: finding golang.org/x/crypto latest
go: finding golang.org/x/exp latest
go: finding github.com/neelance/astrewrite latest
go: finding github.com/gtfierro/xboswave latest
go: finding github.com/abiosoft/readline latest
go: finding github.com/op/go-logging latest
go: finding github.com/gopherjs/gopherjs latest
go: finding github.com/shurcooL/highlight_diff latest
go: finding github.com/flynn-archive/go-shlex latest
go: finding github.com/shurcooL/htmlg latest
go: finding gopkg.in/mgo.v2 latest
go: finding github.com/smartystreets/assertions latest
go: finding github.com/flynn/go-shlex latest
go: finding github.com/ucbrise/starwave latest
go: finding github.com/bradfitz/go-smtpd latest
go: finding github.com/mattn/go-tty latest
go: finding github.com/dgryski/go-bitstream latest
go: finding github.com/shurcooL/users latest
go: finding github.com/hashicorp/yamux latest
go: finding grpc.go4.org latest
go: finding github.com/duosecurity/duo_api_golang latest
go: finding github.com/chzyer/test latest
go: finding github.com/dgryski/go-farm latest
go: finding github.com/shurcooL/go latest
go: finding github.com/keybase/go-crypto latest
go: finding github.com/sourcegraph/syntaxhighlight latest
go: finding gonum.org/v1/gonum latest
go: finding github.com/glycerine/goconvey latest
go: finding github.com/minio/blake2b-simd latest
go: finding github.com/mschoch/smat latest
go: finding github.com/bouk/httprouter latest
go: finding github.com/containerd/continuity latest
go: finding github.com/jstemmer/go-junit-report latest
go: finding github.com/k0kubun/colorstring latest
go: finding github.com/alcortesm/tgz latest
go: finding github.com/neelance/sourcemap latest
go: finding github.com/shurcooL/httpgzip latest
go: finding github.com/rcrowley/go-metrics latest
go: finding github.com/apache/arrow/go/arrow latest
go: finding github.com/zhangxinngang/murmur latest
go: finding github.com/pkg/term latest
go: finding github.com/prometheus/client_model latest
go: finding github.com/asaskevich/govalidator latest
go: finding github.com/immesys/asn1 latest
go: finding github.com/shurcooL/issuesapp latest
go: finding github.com/golang/lint latest
go: finding github.com/sean-/seed latest
go: finding github.com/alecthomas/units latest
go: finding golang.org/x/time latest
go: finding github.com/cloudflare/cfssl latest
go: finding github.com/shurcooL/github_flavored_markdown latest
go: finding github.com/huichen/murmur latest
go: github.com/golang/lint@v0.0.0-20190409202823-959b441ac422: parsing go.mod: unexpected module path "golang.org/x/lint"
go: sourcegraph.com/sourcegraph/go-diff@v0.5.1: parsing go.mod: unexpected module path "github.com/sourcegraph/go-diff"
go: github.com/testcontainers/testcontainer-go@v0.0.4: parsing go.mod: unexpected module path "github.com/testcontainers/testcontainers-go"
go: finding github.com/xdg/scram latest
go: finding github.com/BurntSushi/xgb latest
go get: error loading module requirements

So ran following to fix those packages:

xboswave/xbosmortard$ go mod edit -replace sourcegraph.com/sourcegraph/go-diff@v0.5.1=github.com/sourcegraph/go-diff@v0.5.1
xboswave/xbosmortard$ go mod edit -replace github.com/testcontainers/testcontainer-go=github.com/testcontainers/testcontainers-go@v0.0.0-20190108154635-47c0da630f72
xboswave/xbosmortard$ go mod edit -replace github.com/golang/lint@latest=golang.org/x/lint@latest

Modified go.mod:

$ cat go.mod 
module xbosmortard

go 1.12

require (
    git.sr.ht/~gabe/mortar v1.0.10
    github.com/heptiolabs/healthcheck v0.0.0-20180807145615-6ff867650f40
    github.com/pkg/profile v1.3.0
    github.com/prometheus/client_golang v0.9.2
    github.com/sirupsen/logrus v1.4.1
)

replace sourcegraph.com/sourcegraph/go-diff v0.5.1 => github.com/sourcegraph/go-diff v0.5.1

replace github.com/testcontainers/testcontainer-go => github.com/testcontainers/testcontainers-go v0.0.0-20190108154635-47c0da630f72

replace github.com/golang/lint latest => golang.org/x/lint latest

Tried updating again:

xboswave/xbosmortard$ go get -u git.sr.ht/~gabe/mortar
go: finding github.com/golang/lint latest
go: finding golang.org/x/lint latest
go: finding github.com/shurcooL/gofontwoff latest
go: finding github.com/shurcooL/issuesapp latest
go: finding github.com/gtfierro/xboswave latest
go: finding github.com/zhangxinngang/murmur latest
go: finding github.com/heptiolabs/healthcheck latest
go: finding github.com/samkumar/embedded-pairing latest
go: finding github.com/google/pprof latest
go: finding github.com/shurcooL/reactions latest
go: finding github.com/ugorji/go/codec latest
go: finding github.com/shurcooL/highlight_go latest
go: finding github.com/shurcooL/httpfs latest
go: finding github.com/shurcooL/webdavfs latest
go: finding google.golang.org/genproto latest
go: finding github.com/dgryski/go-farm latest
go: finding github.com/influxdata/platform latest
go: finding golang.org/x/oauth2 latest
go: finding golang.org/x/sys latest
go: finding golang.org/x/perf latest
go: finding golang.org/x/net latest
go: finding github.com/shurcooL/go latest
go: finding github.com/duosecurity/duo_api_golang latest
go: finding github.com/gopherjs/gopherjs latest
go: finding github.com/stevvooe/resumable latest
go: finding go4.org latest
go: finding golang.org/x/tools latest
go: finding github.com/influxdata/usage-client latest
go: finding github.com/armon/consul-api latest
go: finding github.com/prometheus/client_model latest
go: finding honnef.co/go/tools latest
go: finding github.com/mschoch/smat latest
go: finding github.com/k0kubun/colorstring latest
go: finding github.com/golang/glog latest
go: finding github.com/shurcooL/highlight_diff latest
go: finding github.com/shurcooL/octicon latest
go: finding github.com/immesys/asn1 latest
go: finding gopkg.in/mgo.v2 latest
go: finding github.com/golang/gddo latest
go: finding github.com/ucbrise/vuvuzelacrypto latest
go: finding github.com/jwilder/encoding latest
go: finding github.com/tarm/serial latest
go: finding github.com/anmitsu/go-shlex latest
go: finding github.com/prometheus/procfs latest
go: finding golang.org/x/crypto latest
go: finding github.com/xlab/treeprint latest
go: finding github.com/op/go-logging latest
go: finding github.com/howeyc/gopass latest
go: finding golang.org/x/build latest
go: finding github.com/bouk/httprouter latest
go: finding github.com/neelance/sourcemap latest
go: finding github.com/glycerine/goconvey latest
go: finding golang.org/x/time latest
go: finding github.com/kr/logfmt latest
go: finding github.com/bitly/go-hostpool latest
go: finding github.com/tcnksm/go-input latest
go: finding github.com/eapache/go-xerial-snappy latest
go: finding github.com/shurcooL/github_flavored_markdown latest
go: finding github.com/flynn/go-shlex latest
go: finding gopkg.in/check.v1 latest
go: finding golang.org/x/sync latest
go: finding github.com/flynn-archive/go-shlex latest
go: finding github.com/shurcooL/htmlg latest
go: finding github.com/hashicorp/yamux latest
go: finding github.com/denisenkom/go-mssqldb latest
go: finding vuvuzela.io/crypto latest
go: finding github.com/apache/arrow/go/arrow latest
go: finding github.com/smartystreets/goconvey latest
go: finding github.com/minio/blake2b-simd latest
go: finding gopkg.in/robfig/cron.v2 latest
go: finding github.com/yudai/golcs latest
go: finding github.com/alecthomas/template latest
go: finding github.com/shurcooL/httperror latest
go: finding github.com/blakesmith/ar latest
go: finding github.com/tv42/httpunix latest
go: finding github.com/shurcooL/notifications latest
go: finding github.com/alecthomas/units latest
go: finding golang.org/x/exp latest
go: finding github.com/jstemmer/go-junit-report latest
go: finding github.com/bmizerany/assert latest
go: finding github.com/shurcooL/events latest
go: finding github.com/jmespath/go-jmespath latest
go: finding github.com/GoogleCloudPlatform/cloudsql-proxy latest
go: finding github.com/dgryski/go-bitstream latest
go: finding github.com/cloudflare/cfssl latest
go: finding github.com/coreos/go-systemd latest
go: finding labix.org/v2/mgo latest
go: finding github.com/hamilton-lima/influxdb1-client latest
go: finding github.com/asaskevich/govalidator latest
go: finding github.com/sourcegraph/syntaxhighlight latest
go: finding github.com/chzyer/readline latest
go: finding github.com/gonum/matrix latest
go: finding github.com/keybase/go-crypto latest
go: finding github.com/minio/sha256-simd latest
go: finding github.com/shurcooL/issues latest
go: finding github.com/ucbrise/starwave latest
go: finding github.com/gregjones/httpcache latest
go: finding github.com/sean-/seed latest
go: finding github.com/jellevandenhooff/dkim latest
go: finding github.com/shurcooL/httpgzip latest
go: finding github.com/gonum/internal latest
go: finding github.com/glycerine/go-unsnap-stream latest
go: finding github.com/kevinburke/ssh_config latest
go: finding github.com/gocql/gocql latest
go: finding github.com/jbenet/go-context latest
go: finding github.com/sourcegraph/annotate latest
go: finding gopkg.in/asn1-ber.v1 latest
go: finding github.com/armon/go-metrics latest
go: finding github.com/shurcooL/go-goon latest
go: finding github.com/bradfitz/go-smtpd latest
go: finding github.com/containerd/continuity latest
go: finding github.com/aclements/go-moremath latest
go: finding github.com/smartystreets/assertions latest
go: finding grpc.go4.org latest
go: finding github.com/Nvveen/Gotty latest
go: finding github.com/shurcooL/home latest
go: finding github.com/hailocab/go-hostpool latest
go: finding github.com/xdg/scram latest
go: finding github.com/alcortesm/tgz latest
go: finding github.com/gonum/lapack latest
go: finding github.com/gonum/blas latest
go: finding github.com/neelance/astrewrite latest
go: finding github.com/huichen/murmur latest
go: finding github.com/andreyvit/diff latest
go: finding github.com/chzyer/test latest
go: finding launchpad.net/gocheck latest
go: finding github.com/gonum/floats latest
go: finding github.com/shurcooL/component latest
go: finding github.com/AndreasBriese/bbloom latest
go: finding gopkg.in/tomb.v1 latest
go: finding github.com/campoy/unique latest
go: finding github.com/rcrowley/go-metrics latest
go: finding github.com/influxdata/line-protocol latest
go: finding github.com/shurcooL/users latest
go: finding github.com/armon/circbuf latest
go: finding github.com/aclements/go-gg latest
go: finding gonum.org/v1/gonum latest
go: finding github.com/mattn/go-tty latest
go: finding github.com/abiosoft/readline latest
go: finding github.com/influxdata/tdigest latest
go: finding github.com/Azure/go-ansiterm latest
go: finding github.com/BurntSushi/xgb latest
go: finding gonum.org/v1/netlib latest
go: finding github.com/pkg/term latest
go: finding github.com/shurcooL/gopherjslib latest
go: finding github.com/remyoudompheng/bigfft latest
go: finding github.com/mwitkow/go-conntrack latest
go: finding golang.org/x/image latest
go: finding golang.org/x/mobile latest
go: finding github.com/gonum/mathext latest
go: finding github.com/gonum/stat latest
go: finding github.com/gonum/integrate latest
go: finding github.com/gonum/diff latest
go: golang.org/x/lint@v0.0.0-20190409202823-959b441ac422 used for two different module paths (github.com/golang/lint and golang.org/x/lint)

I think there is some issue with the go module "lint"

anandkp92 commented 5 years ago

In the mean time, it is possible to upload a compiled binary for xbosmortard that takes the config files as command line arguments?

gtfierro commented 5 years ago

I uploaded a binary to the releases tab above that you can use. i've also updated the go module files for several packages that might address the build problems you are seeing, but keep in mind that you do not need to compile the binary using the modules. With a little bit of work you should be able to get this to build. I can return to fixing this next week

anandkp92 commented 5 years ago

I'm able to make build successfully now! Thanks. I did not have to use the binary.

gtfierro commented 5 years ago

Great! Closing this issue for now