Skip to content

Cant build Gitea v1.10 (from git) err: static.go:15:20 undefined: Assets on Ubuntu 19 #9430

@flipkickmedia

Description

@flipkickmedia
root@host:/home/gitea-git# uname -a
Linux host 5.0.0-37-generic #40-Ubuntu SMP Thu Nov 14 00:14:01 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

root@host:/home/gitea-git# git clone [email protected]:go-gitea/gitea.git gitea-git
git clone [email protected]:go-gitea/gitea.git gitea-git

root@host:/home/gitea-git# git checkout release/v1.10
Switched to branch 'release/v1.10'
Your branch is up-to-date with 'origin/release/v1.10'.

root@host:/home/gitea-git# go version
go version go1.13.4 linux/amd64

root@host:/home/gitea-git# TAGS="bindata sqlite sqlite_unlock_notify" make build
GO111MODULE=on go build -mod=vendor -v  -tags 'bindata sqlite sqlite_unlock_notify' -ldflags '-s -w  -X "main.MakeVersion=GNU Make 4.2.1" -X "main.Version=1.10.1+7-ge03934f03" -X "main.Tags=bindata sqlite sqlite_unlock_notify"' -o gitea
golang.org/x/crypto/internal/subtle
code.gitea.io/gitea/modules/minwinsvc
github.com/gobwas/glob/util/runes
gopkg.in/asn1-ber.v1
code.gitea.io/gitea/modules/log
github.com/dgrijalva/jwt-go
gopkg.in/ldap.v3
code.gitea.io/gitea/modules/generate
code.gitea.io/gitea/modules/process
github.com/emirpasic/gods/utils
github.com/emirpasic/gods/containers
github.com/emirpasic/gods/lists
github.com/emirpasic/gods/lists/arraylist
github.com/emirpasic/gods/trees
github.com/emirpasic/gods/trees/binaryheap
github.com/mcuadros/go-version
github.com/unknwon/com
golang.org/x/sys/unix
gopkg.in/src-d/go-billy.v4
gopkg.in/src-d/go-billy.v4/helper/polyfill
github.com/sergi/go-diff/diffmatchpatch
gopkg.in/src-d/go-billy.v4/helper/chroot
code.gitea.io/gitea/modules/auth/ldap
golang.org/x/crypto/openpgp/errors
golang.org/x/crypto/openpgp/armor
golang.org/x/crypto/cast5
golang.org/x/crypto/openpgp/elgamal
golang.org/x/crypto/openpgp/s2k
gopkg.in/src-d/go-billy.v4/util
gopkg.in/src-d/go-git.v4/internal/url
golang.org/x/crypto/openpgp/packet
gopkg.in/src-d/go-git.v4/plumbing
github.com/src-d/gcfg/token
gopkg.in/src-d/go-billy.v4/osfs
github.com/src-d/gcfg/types
github.com/src-d/gcfg/scanner
gopkg.in/warnings.v0
gopkg.in/src-d/go-git.v4/internal/revision
gopkg.in/src-d/go-git.v4/plumbing/cache
github.com/src-d/gcfg
gopkg.in/src-d/go-git.v4/plumbing/filemode
golang.org/x/net/context
gopkg.in/src-d/go-git.v4/utils/binary
github.com/jbenet/go-context/io
golang.org/x/crypto/openpgp
gopkg.in/src-d/go-git.v4/plumbing/format/config
gopkg.in/src-d/go-git.v4/utils/ioutil
gopkg.in/src-d/go-git.v4/plumbing/format/index
gopkg.in/src-d/go-git.v4/plumbing/format/idxfile
gopkg.in/src-d/go-git.v4/config
gopkg.in/src-d/go-git.v4/plumbing/format/gitignore
gopkg.in/src-d/go-git.v4/plumbing/storer
gopkg.in/src-d/go-git.v4/plumbing/format/diff
gopkg.in/src-d/go-git.v4/utils/diff
gopkg.in/src-d/go-git.v4/utils/merkletrie/noder
gopkg.in/src-d/go-git.v4/plumbing/format/pktline
gopkg.in/src-d/go-git.v4/utils/merkletrie/internal/frame
gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability
gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/sideband
gopkg.in/src-d/go-git.v4/plumbing/format/packfile
gopkg.in/src-d/go-git.v4/storage
gopkg.in/src-d/go-git.v4/utils/merkletrie
github.com/kevinburke/ssh_config
gopkg.in/src-d/go-git.v4/storage/memory
gopkg.in/src-d/go-git.v4/plumbing/object
gopkg.in/src-d/go-git.v4/plumbing/protocol/packp
github.com/mitchellh/go-homedir
golang.org/x/crypto/ed25519
gopkg.in/src-d/go-git.v4/plumbing/format/objfile
golang.org/x/crypto/chacha20
gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit
golang.org/x/crypto/curve25519
gopkg.in/src-d/go-git.v4/plumbing/transport
gopkg.in/src-d/go-git.v4/plumbing/revlist
golang.org/x/crypto/poly1305
gopkg.in/src-d/go-git.v4/storage/filesystem
gopkg.in/src-d/go-git.v4/plumbing/transport/internal/common
gopkg.in/src-d/go-git.v4/plumbing/transport/git
gopkg.in/src-d/go-git.v4/plumbing/transport/http
gopkg.in/src-d/go-git.v4/plumbing/transport/server
golang.org/x/net/internal/socks
gopkg.in/src-d/go-git.v4/plumbing/transport/file
gopkg.in/src-d/go-git.v4/utils/merkletrie/filesystem
golang.org/x/net/proxy
gopkg.in/src-d/go-git.v4/utils/merkletrie/index
golang.org/x/crypto/ssh
gopkg.in/src-d/go-git.v4/plumbing/format/commitgraph
code.gitea.io/gitea/modules/structs
code.gitea.io/gitea/modules/user
gitea.com/macaron/inject
gopkg.in/src-d/go-git.v4/plumbing/object/commitgraph
golang.org/x/crypto/pbkdf2
gopkg.in/ini.v1
github.com/bradfitz/gomemcache/memcache
github.com/go-redis/redis/internal/util
github.com/go-redis/redis/internal/consistenthash
github.com/go-redis/redis/internal/proto
github.com/go-redis/redis/internal/hashtag
github.com/gobwas/glob/util/strings
github.com/go-redis/redis/internal
github.com/gobwas/glob/match
gitea.com/macaron/macaron
github.com/go-redis/redis/internal/pool
github.com/go-redis/redis
github.com/gobwas/glob/syntax/lexer
github.com/gobwas/glob/syntax/ast
golang.org/x/crypto/ssh/agent
golang.org/x/crypto/ssh/knownhosts
github.com/gobwas/glob/compiler
github.com/gobwas/glob/syntax
github.com/xanzy/ssh-agent
gitea.com/macaron/cache
gitea.com/macaron/cors
gopkg.in/src-d/go-git.v4/plumbing/transport/ssh
gitea.com/macaron/session
gopkg.in/src-d/go-git.v4/plumbing/transport/client
gitea.com/macaron/cache/memcache
gopkg.in/src-d/go-git.v4
github.com/gobwas/glob
github.com/kballard/go-shellquote
github.com/unknwon/cae
github.com/unknwon/cae/zip
github.com/mattn/go-sqlite3
strk.kbt.io/projects/go/libravatar
xorm.io/builder
code.gitea.io/gitea/modules/git
xorm.io/core
gitea.com/macaron/cache/redis
github.com/go-xorm/xorm
github.com/gorilla/context
github.com/gorilla/securecookie
github.com/lafriks/xormstore/util
golang.org/x/net/context/ctxhttp
github.com/gorilla/sessions
golang.org/x/oauth2/internal
golang.org/x/oauth2
github.com/gorilla/mux
github.com/markbates/goth
github.com/markbates/goth/providers/bitbucket
github.com/markbates/goth/gothic
github.com/markbates/goth/providers/discord
github.com/markbates/goth/providers/dropbox
github.com/markbates/goth/providers/facebook
github.com/markbates/goth/providers/gitea
github.com/markbates/goth/providers/github
github.com/markbates/goth/providers/gitlab
cloud.google.com/go/compute/metadata
golang.org/x/oauth2/jws
github.com/markbates/goth/providers/openidConnect
golang.org/x/oauth2/jwt
golang.org/x/oauth2/google
github.com/mrjones/oauth
github.com/markbates/goth/providers/google
github.com/markbates/goth/providers/twitter
github.com/satori/go.uuid
golang.org/x/net/html/atom
code.gitea.io/gitea/modules/auth/pam
golang.org/x/net/html
github.com/issue9/identicon
github.com/nfnt/resize
github.com/lafriks/xormstore
github.com/oliamb/cutter
github.com/gogits/chardet
golang.org/x/text/encoding/internal/identifier
golang.org/x/text/transform
github.com/yohcop/openid-go
golang.org/x/text/internal/utf8internal
golang.org/x/text/internal/tag
golang.org/x/text/encoding
golang.org/x/text/internal/language
code.gitea.io/gitea/modules/auth/openid
golang.org/x/text/encoding/internal
golang.org/x/text/runes
golang.org/x/text/encoding/charmap
golang.org/x/text/encoding/japanese
golang.org/x/text/encoding/korean
golang.org/x/text/encoding/simplifiedchinese
golang.org/x/text/encoding/traditionalchinese
golang.org/x/text/encoding/unicode
golang.org/x/text/internal/language/compact
golang.org/x/text/language
github.com/blevesearch/bleve/size
github.com/blevesearch/bleve/numeric
github.com/blevesearch/bleve/analysis
github.com/blevesearch/bleve/geo
github.com/blevesearch/bleve/index/store
github.com/golang/snappy
github.com/blevesearch/bleve/document
golang.org/x/text/encoding/htmlindex
golang.org/x/net/html/charset
github.com/blevesearch/bleve/index
github.com/philhofer/fwd
github.com/glycerine/go-unsnap-stream
github.com/tinylib/msgp/msgp
github.com/blevesearch/bleve/search
github.com/blevesearch/bleve/index/scorch/mergeplan
github.com/edsrzf/mmap-go
github.com/willf/bitset
github.com/blevesearch/bleve/search/highlight
github.com/couchbase/vellum
github.com/blevesearch/bleve/registry
github.com/blevesearch/bleve/analysis/datetime/flexible
github.com/couchbase/vellum/utf8
github.com/RoaringBitmap/roaring
github.com/blevesearch/bleve/analysis/datetime/optional
github.com/couchbase/vellum/regexp
github.com/couchbase/vellum/levenshtein2
github.com/etcd-io/bbolt
github.com/steveyen/gtreap
github.com/blevesearch/bleve/index/store/gtreap
github.com/golang/protobuf/proto
github.com/blevesearch/bleve/index/store/boltdb
github.com/blevesearch/bleve/analysis/token/lowercase
github.com/blevesearch/go-porterstemmer
github.com/blevesearch/bleve/analysis/token/porter
github.com/blevesearch/bleve/analysis/token/stop
github.com/blevesearch/segment
github.com/blevesearch/bleve/index/scorch/segment
github.com/blevesearch/bleve/index/scorch/segment/zap
github.com/blevesearch/bleve/index/upsidedown
github.com/blevesearch/bleve/analysis/tokenizer/unicode
github.com/blevesearch/bleve/analysis/lang/en
github.com/blevesearch/bleve/index/scorch
github.com/blevesearch/bleve/analysis/analyzer/standard
github.com/blevesearch/bleve/mapping
github.com/blevesearch/bleve/search/collector
github.com/blevesearch/bleve/search/facet
github.com/blevesearch/bleve/search/highlight/format/html
github.com/blevesearch/bleve/search/highlight/fragmenter/simple
github.com/blevesearch/bleve/search/highlight/highlighter/simple
github.com/blevesearch/bleve/search/scorer
github.com/blevesearch/bleve/search/highlight/highlighter/html
github.com/blevesearch/bleve/search/searcher
github.com/blevesearch/bleve/analysis/analyzer/custom
golang.org/x/text/unicode/norm
github.com/russross/blackfriday
github.com/blevesearch/bleve/analysis/token/unicodenorm
github.com/blevesearch/bleve/search/query
github.com/microcosm-cc/bluemonday
code.gitea.io/gitea/modules/markup/mdstripper
mvdan.cc/xurls/v2
code.gitea.io/gitea/modules/migrations/base
code.gitea.io/gitea/modules/secret
code.gitea.io/gitea/modules/sync
github.com/unknwon/i18n
github.com/denisenkom/go-mssqldb/internal/cp
github.com/denisenkom/go-mssqldb/internal/decimal
github.com/blevesearch/bleve
github.com/denisenkom/go-mssqldb/internal/querytext
github.com/golang-sql/civil
golang.org/x/crypto/md4
github.com/go-sql-driver/mysql
github.com/ethantkoenig/rupture
github.com/keybase/go-crypto/openpgp/errors
github.com/keybase/go-crypto/openpgp/armor
github.com/keybase/go-crypto/brainpool
github.com/keybase/go-crypto/cast5
github.com/keybase/go-crypto/curve25519
github.com/denisenkom/go-mssqldb
github.com/keybase/go-crypto/ed25519/internal/edwards25519
github.com/keybase/go-crypto/ed25519
github.com/keybase/go-crypto/openpgp/ecdh
github.com/keybase/go-crypto/openpgp/elgamal
github.com/keybase/go-crypto/openpgp/s2k
github.com/keybase/go-crypto/rsa
github.com/lib/pq/oid
github.com/lib/pq/scram
github.com/keybase/go-crypto/openpgp/packet
github.com/lib/pq
github.com/lunny/dingtalk_webhook
github.com/boombuler/barcode
github.com/boombuler/barcode/utils
github.com/keybase/go-crypto/openpgp
github.com/boombuler/barcode/qr
github.com/davecgh/go-spew/spew
github.com/pquerna/otp
github.com/pmezard/go-difflib/difflib
github.com/pquerna/otp/hotp
github.com/pquerna/otp/totp
gopkg.in/yaml.v2
github.com/tstranex/u2f
golang.org/x/sys/cpu
golang.org/x/crypto/blowfish
golang.org/x/crypto/blake2b
golang.org/x/crypto/bcrypt
golang.org/x/crypto/scrypt
code.gitea.io/gitea/modules/pprof
code.gitea.io/gitea/modules/httplib
golang.org/x/crypto/argon2
gitea.com/macaron/binding
code.gitea.io/gitea/routers/utils
gitea.com/macaron/csrf
github.com/stretchr/testify/assert
gopkg.in/testfixtures.v2
gitea.com/macaron/i18n
github.com/unknwon/paginater
gopkg.in/editorconfig/editorconfig-core-go.v1
github.com/google/go-querystring/query
github.com/gogs/cron
github.com/google/go-github/v24/github
github.com/syndtr/goleveldb/leveldb/util
github.com/syndtr/goleveldb/leveldb/comparer
github.com/syndtr/goleveldb/leveldb/storage
github.com/syndtr/goleveldb/leveldb/cache
github.com/syndtr/goleveldb/leveldb/filter
github.com/syndtr/goleveldb/leveldb/opt
github.com/syndtr/goleveldb/leveldb/errors
github.com/anmitsu/go-shlex
github.com/syndtr/goleveldb/leveldb/iterator
github.com/syndtr/goleveldb/leveldb/journal
github.com/gliderlabs/ssh
github.com/syndtr/goleveldb/leveldb/memdb
github.com/syndtr/goleveldb/leveldb/table
github.com/jaytaylor/html2text
gopkg.in/gomail.v2
github.com/syndtr/goleveldb/leveldb
code.gitea.io/gitea/modules/upload
github.com/pkg/errors
gitea.com/macaron/captcha
github.com/beorn7/perks/quantile
github.com/prometheus/client_model/go
github.com/prometheus/client_golang/prometheus/internal
gitea.com/lunny/levelqueue
github.com/matttproud/golang_protobuf_extensions/pbutil
github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
github.com/prometheus/common/model
github.com/prometheus/procfs/internal/fs
github.com/prometheus/procfs/internal/util
github.com/klauspost/cpuid
github.com/prometheus/procfs
github.com/prometheus/common/expfmt
github.com/klauspost/compress/flate
github.com/klauspost/crc32
github.com/couchbase/gomemcached
github.com/prometheus/client_golang/prometheus
github.com/klauspost/compress/gzip
github.com/couchbase/goutils/logging
code.gitea.io/gitea/modules/gzip
github.com/couchbase/goutils/scramsha
gitea.com/macaron/session/memcache
github.com/couchbase/gomemcached/client
gitea.com/macaron/session/mysql
github.com/lunny/log
github.com/prometheus/client_golang/prometheus/promhttp
github.com/BurntSushi/toml
github.com/couchbaselabs/go-couchbase
github.com/siddontang/go-snappy/snappy
github.com/lunny/nodb/config
github.com/lunny/nodb/store/driver
gitea.com/macaron/session/postgres
github.com/lunny/nodb/store/goleveldb
gitea.com/macaron/session/redis
github.com/lunny/nodb/store
gitea.com/macaron/toolbox
gitea.com/macaron/session/couchbase
github.com/lunny/nodb
github.com/facebookgo/grace/gracenet
github.com/facebookgo/clock
github.com/facebookgo/stats
github.com/urfave/cli
github.com/facebookgo/httpdown
github.com/facebookgo/grace/gracehttp
golang.org/x/crypto/acme
golang.org/x/text/unicode/bidi
github.com/shurcooL/sanitized_anchor_name
golang.org/x/text/secure/bidirule
github.com/chaseadamsio/goorgeous
golang.org/x/net/idna
gitea.com/macaron/session/nodb
github.com/shurcooL/httpfs/vfsutil
github.com/shurcooL/vfsgen
code.gitea.io/gitea/modules/session
golang.org/x/crypto/acme/autocert
code.gitea.io/gitea/modules/setting
code.gitea.io/gitea/modules/avatar
code.gitea.io/gitea/modules/auth/oauth2
code.gitea.io/gitea/modules/base
code.gitea.io/gitea/modules/charset
code.gitea.io/gitea/modules/indexer
code.gitea.io/gitea/modules/references
code.gitea.io/gitea/modules/util
code.gitea.io/gitea/modules/options
# code.gitea.io/gitea/modules/options
modules/options/static.go:57:12: undefined: Assets
modules/options/static.go:107:12: undefined: Assets
code.gitea.io/gitea/modules/timeutil
code.gitea.io/gitea/modules/password
code.gitea.io/gitea/modules/validation
code.gitea.io/gitea/modules/markup
code.gitea.io/gitea/modules/cache
code.gitea.io/gitea/modules/highlight
code.gitea.io/gitea/modules/recaptcha
code.gitea.io/gitea/modules/public
code.gitea.io/gitea/modules/search
# code.gitea.io/gitea/modules/public
modules/public/static.go:15:20: undefined: Assets
code.gitea.io/gitea/modules/markup/markdown
code.gitea.io/gitea/modules/markup/external
code.gitea.io/gitea/modules/markup/csv
code.gitea.io/gitea/modules/markup/orgmode
make: *** [Makefile:357: gitea] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions