From charlesreid1

First Attempt That Failed

Errors

Nope...

$ TAGS="bindata" make generate build
can't load package: package code.gitea.io/gitea/vendor/code.gitea.io/git: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/code.gitea.io/git expects import "code.gitea.io/git"
can't load package: package code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea expects import "code.gitea.io/sdk/gitea"
can't load package: package code.gitea.io/gitea/vendor/github.com/golang/snappy: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/github.com/golang/snappy expects import "github.com/golang/snappy"
can't load package: package code.gitea.io/gitea/vendor/github.com/shurcooL/sanitized_anchor_name: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/github.com/shurcooL/sanitized_anchor_name expects import "github.com/shurcooL/sanitized_anchor_name"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/curve25519: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/curve25519 expects import "golang.org/x/crypto/curve25519"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/md4: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/md4 expects import "golang.org/x/crypto/md4"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/pbkdf2: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/pbkdf2 expects import "golang.org/x/crypto/pbkdf2"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/ssh: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/ssh expects import "golang.org/x/crypto/ssh"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/net/context: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/net/context expects import "golang.org/x/net/context"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/net/html: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/net/html expects import "golang.org/x/net/html"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/net/html/atom: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/net/html/atom expects import "golang.org/x/net/html/atom"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/net/html/charset: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/net/html/charset expects import "golang.org/x/net/html/charset"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/oauth2: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/oauth2 expects import "golang.org/x/oauth2"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/sys/unix: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/sys/unix expects import "golang.org/x/sys/unix"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding expects import "golang.org/x/text/encoding"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/charmap: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/charmap expects import "golang.org/x/text/encoding/charmap"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/japanese: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/japanese expects import "golang.org/x/text/encoding/japanese"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/korean: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/korean expects import "golang.org/x/text/encoding/korean"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/simplifiedchinese: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/simplifiedchinese expects import "golang.org/x/text/encoding/simplifiedchinese"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/traditionalchinese: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/traditionalchinese expects import "golang.org/x/text/encoding/traditionalchinese"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/unicode: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/unicode expects import "golang.org/x/text/encoding/unicode"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/internal/tag: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/internal/tag expects import "golang.org/x/text/internal/tag"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/language: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/language expects import "golang.org/x/text/language"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/runes: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/runes expects import "golang.org/x/text/runes"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/transform: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/transform expects import "golang.org/x/text/transform"
go generate code.gitea.io/gitea code.gitea.io/gitea/cmd code.gitea.io/gitea/integrations/internal/utils code.gitea.io/gitea/models code.gitea.io/gitea/models/migrations code.gitea.io/gitea/modules/auth code.gitea.io/gitea/modules/auth/ldap code.gitea.io/gitea/modules/auth/oauth2 code.gitea.io/gitea/modules/auth/pam code.gitea.io/gitea/modules/avatar code.gitea.io/gitea/modules/base code.gitea.io/gitea/modules/context code.gitea.io/gitea/modules/cron code.gitea.io/gitea/modules/highlight code.gitea.io/gitea/modules/httplib code.gitea.io/gitea/modules/indexer code.gitea.io/gitea/modules/lfs code.gitea.io/gitea/modules/log code.gitea.io/gitea/modules/mailer code.gitea.io/gitea/modules/markdown code.gitea.io/gitea/modules/minwinsvc code.gitea.io/gitea/modules/notification code.gitea.io/gitea/modules/options code.gitea.io/gitea/modules/process code.gitea.io/gitea/modules/public code.gitea.io/gitea/modules/setting code.gitea.io/gitea/modules/ssh code.gitea.io/gitea/modules/sync code.gitea.io/gitea/modules/templates code.gitea.io/gitea/modules/user code.gitea.io/gitea/modules/util code.gitea.io/gitea/routers code.gitea.io/gitea/routers/admin code.gitea.io/gitea/routers/api/v1 code.gitea.io/gitea/routers/api/v1/admin code.gitea.io/gitea/routers/api/v1/convert code.gitea.io/gitea/routers/api/v1/misc code.gitea.io/gitea/routers/api/v1/org code.gitea.io/gitea/routers/api/v1/repo code.gitea.io/gitea/routers/api/v1/user code.gitea.io/gitea/routers/api/v1/utils code.gitea.io/gitea/routers/dev code.gitea.io/gitea/routers/org code.gitea.io/gitea/routers/repo code.gitea.io/gitea/routers/user
bindata.go
bindata.go
bindata.go
go build -i -v -tags 'bindata' -ldflags '-s -w -X "main.Version=1.1.0+7-g11ad296" -X "main.Tags=bindata"' -o gitea
modules/public/static.go:10:2: cannot find package "github.com/go-macaron/bindata" in any of:
        /usr/lib/go/src/github.com/go-macaron/bindata (from $GOROOT)
        /home/charles/gocode/src/github.com/go-macaron/bindata (from $GOPATH)
Makefile:96: recipe for target 'gitea' failed
make: *** [gitea] Error 1

More Errors

$ TAGS="bindata" make generate build
can't load package: package code.gitea.io/gitea/vendor/code.gitea.io/git: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/code.gitea.io/git expects import "code.gitea.io/git"
can't load package: package code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea expects import "code.gitea.io/sdk/gitea"
can't load package: package code.gitea.io/gitea/vendor/github.com/golang/snappy: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/github.com/golang/snappy expects import "github.com/golang/snappy"
can't load package: package code.gitea.io/gitea/vendor/github.com/shurcooL/sanitized_anchor_name: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/github.com/shurcooL/sanitized_anchor_name expects import "github.com/shurcooL/sanitized_anchor_name"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/cast5: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/cast5 expects import "golang.org/x/crypto/cast5"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/curve25519: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/curve25519 expects import "golang.org/x/crypto/curve25519"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/md4: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/md4 expects import "golang.org/x/crypto/md4"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp expects import "golang.org/x/crypto/openpgp"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/armor: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/armor expects import "golang.org/x/crypto/openpgp/armor"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/elgamal: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/elgamal expects import "golang.org/x/crypto/openpgp/elgamal"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/errors: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/errors expects import "golang.org/x/crypto/openpgp/errors"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/packet: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/packet expects import "golang.org/x/crypto/openpgp/packet"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/s2k: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/s2k expects import "golang.org/x/crypto/openpgp/s2k"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/pbkdf2: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/pbkdf2 expects import "golang.org/x/crypto/pbkdf2"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/ssh: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/ssh expects import "golang.org/x/crypto/ssh"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/net/context: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/net/context expects import "golang.org/x/net/context"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/net/html: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/net/html expects import "golang.org/x/net/html"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/net/html/atom: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/net/html/atom expects import "golang.org/x/net/html/atom"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/net/html/charset: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/net/html/charset expects import "golang.org/x/net/html/charset"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/oauth2: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/oauth2 expects import "golang.org/x/oauth2"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/sys/unix: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/sys/unix expects import "golang.org/x/sys/unix"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding expects import "golang.org/x/text/encoding"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/charmap: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/charmap expects import "golang.org/x/text/encoding/charmap"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/japanese: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/japanese expects import "golang.org/x/text/encoding/japanese"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/korean: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/korean expects import "golang.org/x/text/encoding/korean"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/simplifiedchinese: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/simplifiedchinese expects import "golang.org/x/text/encoding/simplifiedchinese"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/traditionalchinese: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/traditionalchinese expects import "golang.org/x/text/encoding/traditionalchinese"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/unicode: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/unicode expects import "golang.org/x/text/encoding/unicode"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/internal/tag: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/internal/tag expects import "golang.org/x/text/internal/tag"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/language: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/language expects import "golang.org/x/text/language"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/runes: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/runes expects import "golang.org/x/text/runes"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/transform: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/transform expects import "golang.org/x/text/transform"
go generate code.gitea.io/gitea code.gitea.io/gitea/cmd code.gitea.io/gitea/integrations/internal/utils code.gitea.io/gitea/models code.gitea.io/gitea/models/migrations code.gitea.io/gitea/modules/auth code.gitea.io/gitea/modules/auth/ldap code.gitea.io/gitea/modules/auth/oauth2 code.gitea.io/gitea/modules/auth/openid code.gitea.io/gitea/modules/auth/pam code.gitea.io/gitea/modules/avatar code.gitea.io/gitea/modules/base code.gitea.io/gitea/modules/context code.gitea.io/gitea/modules/cron code.gitea.io/gitea/modules/highlight code.gitea.io/gitea/modules/httplib code.gitea.io/gitea/modules/indexer code.gitea.io/gitea/modules/lfs code.gitea.io/gitea/modules/log code.gitea.io/gitea/modules/mailer code.gitea.io/gitea/modules/markdown code.gitea.io/gitea/modules/minwinsvc code.gitea.io/gitea/modules/notification code.gitea.io/gitea/modules/options code.gitea.io/gitea/modules/process code.gitea.io/gitea/modules/public code.gitea.io/gitea/modules/setting code.gitea.io/gitea/modules/ssh code.gitea.io/gitea/modules/sync code.gitea.io/gitea/modules/templates code.gitea.io/gitea/modules/user code.gitea.io/gitea/modules/util code.gitea.io/gitea/routers code.gitea.io/gitea/routers/admin code.gitea.io/gitea/routers/api/v1 code.gitea.io/gitea/routers/api/v1/admin code.gitea.io/gitea/routers/api/v1/convert code.gitea.io/gitea/routers/api/v1/misc code.gitea.io/gitea/routers/api/v1/org code.gitea.io/gitea/routers/api/v1/repo code.gitea.io/gitea/routers/api/v1/user code.gitea.io/gitea/routers/api/v1/utils code.gitea.io/gitea/routers/dev code.gitea.io/gitea/routers/org code.gitea.io/gitea/routers/repo code.gitea.io/gitea/routers/user
bindata.go
bindata.go
bindata.go
go build -i -v -tags 'bindata' -ldflags '-s -w -X "main.Version=1.1.0+64-g16732fb" -X "main.Tags=bindata"' -o gitea
modules/public/static.go:10:2: cannot find package "github.com/go-macaron/bindata" in any of:
        /usr/lib/go/src/github.com/go-macaron/bindata (from $GOROOT)
        /home/charles/gocode/src/github.com/go-macaron/bindata (from $GOPATH)
Makefile:96: recipe for target 'gitea' failed
make: *** [gitea] Error 1

Fixing

Apparently there is a problem with go-macron/bindata? I guess I will "go get" it manually:

$ go get -d -u github.com/go-macaron/bindata

Still More Errors

Hmm... that still didn't do the trick.

$ TAGS="bindata" make generate build
can't load package: package code.gitea.io/gitea/vendor/code.gitea.io/git: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/code.gitea.io/git expects import "code.gitea.io/git"
can't load package: package code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea expects import "code.gitea.io/sdk/gitea"
can't load package: package code.gitea.io/gitea/vendor/github.com/golang/snappy: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/github.com/golang/snappy expects import "github.com/golang/snappy"
can't load package: package code.gitea.io/gitea/vendor/github.com/shurcooL/sanitized_anchor_name: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/github.com/shurcooL/sanitized_anchor_name expects import "github.com/shurcooL/sanitized_anchor_name"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/cast5: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/cast5 expects import "golang.org/x/crypto/cast5"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/curve25519: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/curve25519 expects import "golang.org/x/crypto/curve25519"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/md4: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/md4 expects import "golang.org/x/crypto/md4"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp expects import "golang.org/x/crypto/openpgp"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/armor: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/armor expects import "golang.org/x/crypto/openpgp/armor"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/elgamal: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/elgamal expects import "golang.org/x/crypto/openpgp/elgamal"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/errors: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/errors expects import "golang.org/x/crypto/openpgp/errors"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/packet: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/packet expects import "golang.org/x/crypto/openpgp/packet"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/s2k: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/openpgp/s2k expects import "golang.org/x/crypto/openpgp/s2k"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/pbkdf2: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/pbkdf2 expects import "golang.org/x/crypto/pbkdf2"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/crypto/ssh: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/crypto/ssh expects import "golang.org/x/crypto/ssh"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/net/context: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/net/context expects import "golang.org/x/net/context"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/net/html: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/net/html expects import "golang.org/x/net/html"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/net/html/atom: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/net/html/atom expects import "golang.org/x/net/html/atom"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/net/html/charset: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/net/html/charset expects import "golang.org/x/net/html/charset"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/oauth2: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/oauth2 expects import "golang.org/x/oauth2"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/sys/unix: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/sys/unix expects import "golang.org/x/sys/unix"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding expects import "golang.org/x/text/encoding"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/charmap: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/charmap expects import "golang.org/x/text/encoding/charmap"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/japanese: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/japanese expects import "golang.org/x/text/encoding/japanese"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/korean: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/korean expects import "golang.org/x/text/encoding/korean"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/simplifiedchinese: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/simplifiedchinese expects import "golang.org/x/text/encoding/simplifiedchinese"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/traditionalchinese: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/traditionalchinese expects import "golang.org/x/text/encoding/traditionalchinese"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/encoding/unicode: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/encoding/unicode expects import "golang.org/x/text/encoding/unicode"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/internal/tag: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/internal/tag expects import "golang.org/x/text/internal/tag"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/language: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/language expects import "golang.org/x/text/language"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/runes: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/runes expects import "golang.org/x/text/runes"
can't load package: package code.gitea.io/gitea/vendor/golang.org/x/text/transform: code in directory /home/charles/gocode/src/code.gitea.io/gitea/vendor/golang.org/x/text/transform expects import "golang.org/x/text/transform"
go generate code.gitea.io/gitea code.gitea.io/gitea/cmd code.gitea.io/gitea/integrations/internal/utils code.gitea.io/gitea/models code.gitea.io/gitea/models/migrations code.gitea.io/gitea/modules/auth code.gitea.io/gitea/modules/auth/ldap code.gitea.io/gitea/modules/auth/oauth2 code.gitea.io/gitea/modules/auth/openid code.gitea.io/gitea/modules/auth/pam code.gitea.io/gitea/modules/avatar code.gitea.io/gitea/modules/base code.gitea.io/gitea/modules/context code.gitea.io/gitea/modules/cron code.gitea.io/gitea/modules/highlight code.gitea.io/gitea/modules/httplib code.gitea.io/gitea/modules/indexer code.gitea.io/gitea/modules/lfs code.gitea.io/gitea/modules/log code.gitea.io/gitea/modules/mailer code.gitea.io/gitea/modules/markdown code.gitea.io/gitea/modules/minwinsvc code.gitea.io/gitea/modules/notification code.gitea.io/gitea/modules/options code.gitea.io/gitea/modules/process code.gitea.io/gitea/modules/public code.gitea.io/gitea/modules/setting code.gitea.io/gitea/modules/ssh code.gitea.io/gitea/modules/sync code.gitea.io/gitea/modules/templates code.gitea.io/gitea/modules/user code.gitea.io/gitea/modules/util code.gitea.io/gitea/routers code.gitea.io/gitea/routers/admin code.gitea.io/gitea/routers/api/v1 code.gitea.io/gitea/routers/api/v1/admin code.gitea.io/gitea/routers/api/v1/convert code.gitea.io/gitea/routers/api/v1/misc code.gitea.io/gitea/routers/api/v1/org code.gitea.io/gitea/routers/api/v1/repo code.gitea.io/gitea/routers/api/v1/user code.gitea.io/gitea/routers/api/v1/utils code.gitea.io/gitea/routers/dev code.gitea.io/gitea/routers/org code.gitea.io/gitea/routers/repo code.gitea.io/gitea/routers/user
bindata.go
bindata.go
bindata.go
go build -i -v -tags 'bindata' -ldflags '-s -w -X "main.Version=1.1.0+64-g16732fb" -X "main.Tags=bindata"' -o gitea
code.gitea.io/gitea/modules/log
code.gitea.io/gitea/modules/minwinsvc
code.gitea.io/gitea/modules/auth/openid
code.gitea.io/gitea/modules/httplib
code.gitea.io/gitea/modules/setting
code.gitea.io/gitea/modules/auth/ldap
code.gitea.io/gitea/modules/process
code.gitea.io/gitea/modules/sync
code.gitea.io/gitea/modules/util
github.com/elazarl/go-bindata-assetfs
github.com/go-macaron/bindata
code.gitea.io/gitea/modules/base
code.gitea.io/gitea/modules/auth/oauth2
code.gitea.io/gitea/modules/markdown
code.gitea.io/gitea/modules/highlight
code.gitea.io/gitea/modules/mailer
code.gitea.io/gitea/models/migrations
code.gitea.io/gitea/modules/options
code.gitea.io/gitea/modules/public
code.gitea.io/gitea/models
# code.gitea.io/gitea/models
models/twofactor.go:79: undefined: com.AESEncrypt
models/twofactor.go:93: undefined: com.AESDecrypt
Makefile:96: recipe for target 'gitea' failed
make: *** [gitea] Error 2

Source of the Problem

The source of the problem is that the package com (from https://github.com/Unknwon/com) does not have any AESEncrypt or AESDecrypt methods there. I have no clue how to fix this - the source code pretty blatantly mismatches the library it links to - the functions AESEncrypt and AESDecrypt are just not there.

Am going to stick with the binary, for now, since this makes it impossible to proceed building from source.