JustaPenguin / assetto-server-manager

A web interface to manage an Assetto Corsa Server.
https://github.com/JustaPenguin/assetto-server-manager/releases
MIT License
276 stars 70 forks source link

Unable to build from source #1121

Open lubbo opened 1 year ago

lubbo commented 1 year ago

Describe the bug I'm trying to build from sources.

I'm building the Dockerfile

The result is:

 > [build 7/8] RUN VERSION=${SM_VERSION} make deploy:
#24 0.264 rm -rf changelog_embed.go
#24 0.289 make -C cmd/server-manager clean
#24 0.330 make[1]: Entering directory '/go/src/github.com/JustaPenguin/assetto-server-manager/cmd/server-manager'
#24 0.330 rm -rf server-manager server-manager.exe
#24 0.351 rm -rf static/manager.js
#24 0.373 rm -rf build/
#24 0.396 rm -rf rsrc.syso
#24 0.416 rm -rf views/static_embed.go
#24 0.433 rm -rf static/static_embed.go
#24 0.448 rm -rf typescript/.gulp-cache
#24 0.465 make[1]: Leaving directory '/go/src/github.com/JustaPenguin/assetto-server-manager/cmd/server-manager'
#24 0.468 go get -u github.com/mjibson/esc
#24 1.780 go: downloading github.com/mjibson/esc v0.2.0
#24 2.275 go: downloading github.com/pkg/errors v0.9.1
#24 2.279 go: downloading golang.org/x/tools v0.0.0-20200911193555-6422fca01df9
#24 3.844 go: downloading golang.org/x/mod v0.3.0
#24 3.930 go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
#24 4.023 go: github.com/pkg/errors upgrade => v0.9.1
#24 4.033 go: golang.org/x/mod upgrade => v0.7.0
#24 4.064 go: golang.org/x/xerrors upgrade => v0.0.0-20220907171357-04be3eba64a2
#24 4.217 go: golang.org/x/tools upgrade => v0.3.0
#24 4.450 go: downloading golang.org/x/tools v0.3.0
#24 5.809 go: downloading golang.org/x/mod v0.7.0
#24 5.810 go: downloading golang.org/x/sys v0.2.0
#24 6.880 go: golang.org/x/sys upgrade => v0.2.0
#24 15.20 go generate ./...
#24 15.47 go: downloading github.com/google/uuid v1.1.1
#24 15.47 go: downloading github.com/sirupsen/logrus v1.4.2
#24 15.47 go: downloading golang.org/x/text v0.4.0
#24 15.47 go: downloading github.com/dustin/go-humanize v1.0.0
#24 15.47 go: downloading github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4
#24 15.47 go: downloading github.com/etcd-io/bbolt v1.3.3
#24 15.49 go: downloading github.com/Masterminds/sprig v2.22.0+incompatible
#24 15.49 go: downloading github.com/jaytaylor/html2text v0.0.0-20190408195923-01ec452cbe43
#24 15.49 go: downloading github.com/cj123/caldav-go v0.0.0-20191202141705-5d30c27975e9
#24 15.50 go: downloading github.com/cj123/sessions v1.1.5
#24 16.02 go: downloading github.com/go-chi/chi v4.0.3+incompatible
#24 16.02 go: downloading golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
#24 16.03 go: downloading github.com/bwmarrin/discordgo v0.20.2
#24 16.04 go: downloading github.com/olekukonko/tablewriter v0.0.4
#24 16.05 go: downloading github.com/teambition/rrule-go v1.5.0
#24 16.09 go: downloading gopkg.in/yaml.v2 v2.2.7
#24 16.09 go: downloading github.com/blevesearch/bleve v0.8.1
#24 16.11 go: downloading github.com/sethvargo/go-diceware v0.2.0
#24 16.12 go: downloading github.com/Clinet/discordgo-embed v0.0.0-20190411043415-d754bc1a576c
#24 16.38 go: downloading github.com/go-http-utils/etag v0.0.0-20161124023236-513ea8f21eb1
#24 16.45 go: downloading github.com/Masterminds/semver v1.5.0
#24 16.47 go: downloading golang.org/x/net v0.2.0
#24 16.50 go: downloading github.com/lorenzosaino/go-sysctl v0.1.0
#24 16.50 go: downloading github.com/gorilla/websocket v1.4.1
#24 16.52 go: downloading github.com/prometheus/client_golang v1.3.0
#24 16.61 go: downloading github.com/dimchansky/utfbom v1.1.0
#24 16.78 go: downloading github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf
#24 16.83 go: downloading github.com/jpillora/longestcommon v0.0.0-20161227235612-adb9d91ee629
#24 16.97 go: downloading github.com/getsentry/raven-go v0.2.0
#24 16.97 go: downloading github.com/gorilla/securecookie v1.1.1
#24 16.99 go: downloading github.com/fatih/color v1.7.0
#24 17.06 go: downloading github.com/go-http-utils/headers v0.0.0-20181008091004-fed159eddc2a
#24 17.06 go: downloading github.com/cj123/ini v1.44.0
#24 17.07 go: downloading github.com/hako/durafmt v0.0.0-20191009132224-3f39dc1ed9f4
#24 17.12 go: downloading github.com/mitchellh/go-wordwrap v1.0.0
#24 17.12 go: downloading github.com/cj123/formulate v0.0.0-20200906120731-1cd9cd8fdf1d
#24 17.14 go: downloading 4d63.com/tz v1.1.0
#24 17.17 go: downloading github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
#24 17.22 go: downloading github.com/prometheus/common v0.9.1
#24 17.26 go: downloading github.com/solovev/steam_go v0.0.0-20170222182106-48eb5aae6c50
#24 17.31 go: downloading github.com/Masterminds/goutils v1.1.0
#24 17.38 go: downloading github.com/imdario/mergo v0.3.8
#24 17.45 go: downloading github.com/russross/blackfriday v2.0.0+incompatible
#24 17.49 go: downloading github.com/huandu/xstrings v1.3.0
#24 17.62 go: downloading github.com/cj123/watcher v1.0.9
#24 17.64 go: downloading github.com/haisum/recaptcha v0.0.0-20170327142240-7d3b8053900e
#24 17.64 go: downloading github.com/certifi/gocertifi v0.0.0-20200104152315-a6d78f326758
#24 17.65 go: downloading github.com/mattn/go-runewidth v0.0.8
#24 17.67 go: downloading github.com/yuin/gopher-lua v0.0.0-20191220021717-ab39c6098bdb
#24 17.68 go: downloading github.com/beorn7/perks v1.0.1
#24 17.71 go: downloading github.com/prometheus/procfs v0.0.8
#24 17.76 go: downloading github.com/fatih/camelcase v1.0.0
#24 17.82 go: downloading github.com/mattn/go-colorable v0.1.4
#24 17.83 go: downloading github.com/mitchellh/copystructure v1.0.0
#24 17.85 go: downloading github.com/mattn/go-isatty v0.0.10
#24 17.91 go: downloading github.com/prometheus/client_model v0.2.0
#24 17.92 go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
#24 17.93 go: downloading github.com/go-http-utils/fresh v0.0.0-20161124030543-7231e26a4b27
#24 17.94 go: downloading golang.org/x/sync v0.1.0
#24 17.98 go: downloading github.com/mattn/go-zglob v0.0.1
#24 17.99 go: downloading github.com/couchbase/vellum v0.0.0-20190829182332-ef2e028c01fd
#24 18.00 go: downloading github.com/cespare/xxhash/v2 v2.1.1
#24 18.02 go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
#24 18.05 go: downloading github.com/mitchellh/reflectwalk v1.0.1
#24 18.06 go: downloading github.com/golang/protobuf v1.3.2
#24 18.06 go: downloading github.com/RoaringBitmap/roaring v0.4.21
#24 18.17 go: downloading github.com/yosssi/gohtml v0.0.0-20200519115854-476f5b4b8047
#24 18.23 go: downloading github.com/steveyen/gtreap v0.0.0-20150807155958-0abe01ef9be2
#24 18.27 go: downloading github.com/blevesearch/segment v0.0.0-20160915185041-762005e7a34f
#24 18.27 go: downloading github.com/edsrzf/mmap-go v1.0.0
#24 18.29 go: downloading github.com/willf/bitset v1.1.10
#24 18.35 go: downloading github.com/tinylib/msgp v1.1.1
#24 18.37 go: downloading github.com/blevesearch/go-porterstemmer v1.0.2
#24 18.48 go: downloading github.com/golang/snappy v0.0.1
#24 18.50 go: downloading github.com/glycerine/go-unsnap-stream v0.0.0-20190901134440-81cf024a9e0a
#24 18.51 go: downloading github.com/philhofer/fwd v1.0.0
#24 22.73 which golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.27.0
#24 23.27 golangci/golangci-lint info checking GitHub for tag 'v1.27.0'
#24 23.88 golangci/golangci-lint info found version: 1.27.0 for v1.27.0/linux/amd64
#24 26.57 golangci/golangci-lint info installed /go/bin/golangci-lint
#24 26.60 go vet ./...
#24 30.23 # golang.org/x/sys/unix
#24 30.23 /go/pkg/mod/golang.org/x/sys@v0.2.0/unix/syscall.go:83:16: undefined: unsafe.Slice
#24 30.23 /go/pkg/mod/golang.org/x/sys@v0.2.0/unix/syscall_linux.go:2256:9: undefined: unsafe.Slice
#24 30.23 /go/pkg/mod/golang.org/x/sys@v0.2.0/unix/syscall_unix.go:118:7: undefined: unsafe.Slice
#24 30.23 /go/pkg/mod/golang.org/x/sys@v0.2.0/unix/sysvshm_unix.go:33:7: undefined: unsafe.Slice
#24 30.23 note: module requires Go 1.17
#24 102.7 make: *** [Makefile:25: vet] Error 2
------
executor failed running [/bin/sh -c VERSION=${SM_VERSION} make deploy]: exit code: 2

To Reproduce Steps to reproduce the behavior:

  1. docker build --platform=linux/amd64 ./

Expected behavior The container should build server-manager and run it.

Desktop (please complete the following information):

Additional context ...