Skip to content
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

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

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