Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
flipkickmedia opened this issue Dec 19, 2019 · 1 comment
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.

Comments

@flipkickmedia
Copy link

flipkickmedia commented Dec 19, 2019

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
@axifive
Copy link
Member

axifive commented Dec 19, 2019

For 1.10 version you need to run TAGS="bindata sqlite sqlite_unlock_notify" make generate build

https://github.com/go-gitea/gitea/blob/release/v1.10/docs/content/doc/installation/from-source.en-us.md

@lunny lunny added the type/question Issue needs no code to be fixed, only a description on how to fix it yourself. label Dec 19, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.
Projects
None yet
Development

No branches or pull requests

4 participants