Build failed on Nix #134

Closed
opened 2020-02-14 09:33:57 +00:00 by jtojnar · 6 comments
Contributor

Using the following expression

{ stdenv
, lib
, buildGoModule
, fetchgit
, git
}:

buildGoModule rec {
  name = "vikunja-api";

  src = fetchgit {
    "url" = "https://kolaente.dev/jtojnar/api.git";
    "rev" = "5d96c62a472ca227763bf297c5641100d4ee4967";
    "sha256" = "14drwnkx14bgzr5nyppcxaic3lm1ngn7jzr917zfk709l4f835ba";
    "fetchSubmodules" = false;
    "deepClone" = false;
    "leaveDotGit" = true;
  };

  nativeBuildInputs = [
    git
  ];

  buildPhase = ''
    make GOFLAGS=-v SHELL='sh -x'
  '';

  modSha256 = "sha256:0flbakhj4j74rgscq8plwgdh43jacw953v5n2cz8qmjs88y01qv6";
}

the build fails:

+ uname -s
+ find . -name '*.go' -type f '!' -path './vendor/*' '!' -path '*/bindata.go'
+ git describe --tags --always --abbrev=10
+ sed s/-/+/
+ sed s/-g/-/
+ sed 's/^v//'
+ git describe --tags --always --abbrev=10
+ sed s/-/+/
+ sed s/-g/-/
+ sed 's/^v//'
+ find . -name '*.go' -type f
go build -v  -tags '' -ldflags '-s -w -X "code.vikunja.io/api/pkg/version.Version=0.10+13-014ec2be69" -X "main.Tags="' -o vikunja
+ go build -v -tags '' -ldflags '-s -w -X "code.vikunja.io/api/pkg/version.Version=0.10+13-014ec2be69" -X "main.Tags="' -o vikunja
go: downloading github.com/spf13/viper v1.3.2
go: downloading github.com/spf13/cobra v0.0.3
go: downloading github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
go: downloading github.com/go-xorm/xorm v0.7.1
go: downloading github.com/stretchr/testify v1.4.0
go: downloading github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae
go: downloading github.com/labstack/echo v3.3.10+incompatible
go: downloading github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
go: downloading golang.org/x/crypto v0.0.0-20200208060501-ecb85df21340
go: downloading gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
go: extracting github.com/spf13/viper v1.3.2
go: extracting github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
go: extracting github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae
go: downloading github.com/go-xorm/builder v0.3.4
go: downloading github.com/magiconair/properties v1.8.0
go: extracting github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
go: extracting gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
go: extracting github.com/spf13/cobra v0.0.3
go: downloading src.techknowlogick.com/xormigrate v0.0.0-20190321151057-24497c23c09c
go: extracting github.com/stretchr/testify v1.4.0
go: extracting github.com/go-xorm/builder v0.3.4
go: extracting src.techknowlogick.com/xormigrate v0.0.0-20190321151057-24497c23c09c
go: downloading github.com/spf13/jwalterweatherman v1.1.0
go: extracting github.com/magiconair/properties v1.8.0
go: downloading github.com/swaggo/swag v1.6.3
go: downloading github.com/mattn/go-sqlite3 v1.10.0
go: downloading github.com/hashicorp/hcl v1.0.0
go: extracting github.com/spf13/jwalterweatherman v1.1.0
go: downloading github.com/imdario/mergo v0.3.7
go: downloading gopkg.in/testfixtures.v2 v2.5.3
go: extracting github.com/go-xorm/xorm v0.7.1
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: extracting github.com/imdario/mergo v0.3.7
go: extracting github.com/labstack/echo v3.3.10+incompatible
go: extracting gopkg.in/testfixtures.v2 v2.5.3
go: extracting github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/go-sql-driver/mysql v1.4.1
go: downloading github.com/go-xorm/core v0.6.2
go: extracting github.com/swaggo/swag v1.6.3
go: downloading github.com/labstack/echo/v4 v4.1.14
go: downloading code.vikunja.io/web v0.0.0-20200208214421-c90649369427
go: extracting github.com/go-xorm/core v0.6.2
go: extracting github.com/hashicorp/hcl v1.0.0
go: extracting github.com/go-sql-driver/mysql v1.4.1
go: downloading github.com/go-openapi/jsonreference v0.19.3
go: extracting code.vikunja.io/web v0.0.0-20200208214421-c90649369427
go: downloading github.com/ulule/limiter/v3 v3.3.0
go: downloading github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: extracting github.com/labstack/echo/v4 v4.1.14
go: extracting github.com/ulule/limiter/v3 v3.3.0
go: extracting golang.org/x/crypto v0.0.0-20200208060501-ecb85df21340
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/spf13/cast v1.3.0
go: extracting github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: downloading github.com/pelletier/go-toml v1.4.0
go: downloading github.com/labstack/gommon v0.3.0
go: extracting github.com/go-openapi/jsonreference v0.19.3
go: extracting github.com/spf13/cast v1.3.0
go: downloading github.com/prometheus/client_golang v0.9.2
go: extracting github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/olekukonko/tablewriter v0.0.1
go: downloading gopkg.in/yaml.v2 v2.2.7
go: extracting github.com/labstack/gommon v0.3.0
go: downloading github.com/go-openapi/jsonpointer v0.19.3
go: extracting github.com/pelletier/go-toml v1.4.0
go: downloading github.com/valyala/fasttemplate v1.1.0
go: extracting github.com/olekukonko/tablewriter v0.0.1
go: downloading github.com/go-openapi/spec v0.19.4
go: extracting gopkg.in/yaml.v2 v2.2.7
go: extracting github.com/go-openapi/jsonpointer v0.19.3
go: downloading github.com/davecgh/go-spew v1.1.1
go: extracting github.com/valyala/fasttemplate v1.1.0
go: downloading github.com/pkg/errors v0.8.1
go: downloading github.com/laurent22/ical-go v0.1.1-0.20181107184520-7e5d6ade8eef
go: extracting github.com/prometheus/client_golang v0.9.2
go: downloading github.com/spf13/pflag v1.0.3
go: extracting github.com/laurent22/ical-go v0.1.1-0.20181107184520-7e5d6ade8eef
go: extracting github.com/pkg/errors v0.8.1
go: downloading github.com/mattn/go-runewidth v0.0.4
go: extracting github.com/davecgh/go-spew v1.1.1
go: downloading golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d
go: downloading github.com/mattn/go-isatty v0.0.12
go: extracting github.com/mattn/go-isatty v0.0.12
go: downloading github.com/kolaente/caldav-go v3.0.1-0.20190524174923-9e5cd1688227+incompatible
go: downloading github.com/mattn/go-colorable v0.1.4
go: extracting github.com/spf13/pflag v1.0.3
go: extracting github.com/mattn/go-runewidth v0.0.4
go: extracting github.com/go-openapi/spec v0.19.4
go: extracting github.com/kolaente/caldav-go v3.0.1-0.20190524174923-9e5cd1688227+incompatible
go: extracting github.com/mattn/go-colorable v0.1.4
go: downloading github.com/KyleBanks/depth v1.2.1
go: downloading github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: downloading github.com/PuerkitoBio/purell v1.1.1
go: downloading github.com/golang/protobuf v1.3.2
go: extracting github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: extracting github.com/KyleBanks/depth v1.2.1
go: extracting github.com/PuerkitoBio/purell v1.1.1
go: downloading github.com/go-xorm/xorm-redis-cache v0.0.0-20180727005610-859b313566b2
go: downloading golang.org/x/text v0.3.2
go: downloading github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
go: downloading github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: extracting github.com/go-xorm/xorm-redis-cache v0.0.0-20180727005610-859b313566b2
go: downloading github.com/prometheus/common v0.0.0-20181126121408-4724e9255275
go: extracting github.com/golang/protobuf v1.3.2
go: extracting github.com/prometheus/common v0.0.0-20181126121408-4724e9255275
go: extracting github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
go: downloading github.com/valyala/bytebufferpool v1.0.0
go: extracting github.com/valyala/bytebufferpool v1.0.0
go: downloading github.com/garyburd/redigo v1.6.0
go: extracting github.com/mattn/go-sqlite3 v1.10.0
go: extracting github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: extracting github.com/garyburd/redigo v1.6.0
go: downloading golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5
go: downloading github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/go-redis/redis v6.15.2+incompatible
go: downloading github.com/spf13/afero v1.2.2
go: downloading github.com/shurcooL/httpfs v0.0.0-20190527155220-6a4d4a70508b
go: downloading github.com/go-openapi/swag v0.19.5
go: extracting github.com/shurcooL/httpfs v0.0.0-20190527155220-6a4d4a70508b
go: downloading github.com/beevik/etree v1.1.0
go: extracting github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
go: extracting github.com/spf13/afero v1.2.2
go: extracting github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a
go: extracting github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
go: downloading golang.org/x/net v0.0.0-20200202094626-16171245cfb2
go: extracting github.com/go-openapi/swag v0.19.5
go: extracting github.com/beevik/etree v1.1.0
go: extracting github.com/go-redis/redis v6.15.2+incompatible
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: extracting github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/mailru/easyjson v0.7.0
go: extracting github.com/mailru/easyjson v0.7.0
go: extracting golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d
go: extracting golang.org/x/net v0.0.0-20200202094626-16171245cfb2
go: extracting golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5
go: extracting golang.org/x/text v0.3.2
go: finding github.com/spf13/viper v1.3.2
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5
go: finding github.com/hashicorp/hcl v1.0.0
go: finding github.com/magiconair/properties v1.8.0
go: finding github.com/mitchellh/mapstructure v1.1.2
go: finding github.com/pelletier/go-toml v1.4.0
go: finding github.com/spf13/afero v1.2.2
go: finding golang.org/x/text v0.3.2
go: finding github.com/spf13/cast v1.3.0
go: finding github.com/spf13/jwalterweatherman v1.1.0
go: finding github.com/spf13/pflag v1.0.3
go: finding gopkg.in/yaml.v2 v2.2.7
go: finding github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
go: finding github.com/go-sql-driver/mysql v1.4.1
go: finding github.com/go-xorm/core v0.6.2
go: finding github.com/go-xorm/xorm v0.7.1
go: finding github.com/go-xorm/builder v0.3.4
go: finding github.com/go-xorm/xorm-redis-cache v0.0.0-20180727005610-859b313566b2
go: finding github.com/garyburd/redigo v1.6.0
go: finding github.com/mattn/go-sqlite3 v1.10.0
go: finding github.com/stretchr/testify v1.4.0
go: finding github.com/davecgh/go-spew v1.1.1
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding gopkg.in/testfixtures.v2 v2.5.3
go: finding code.vikunja.io/web v0.0.0-20200208214421-c90649369427
go: finding github.com/labstack/echo/v4 v4.1.14
go: finding github.com/labstack/gommon v0.3.0
go: finding github.com/mattn/go-colorable v0.1.4
go: finding github.com/mattn/go-isatty v0.0.12
go: finding github.com/valyala/fasttemplate v1.1.0
go: finding github.com/valyala/bytebufferpool v1.0.0
go: finding golang.org/x/crypto v0.0.0-20200208060501-ecb85df21340
go: finding golang.org/x/net v0.0.0-20200202094626-16171245cfb2
go: finding github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae
go: finding github.com/shurcooL/httpfs v0.0.0-20190527155220-6a4d4a70508b
go: finding gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
go: finding github.com/go-redis/redis v6.15.2+incompatible
go: finding github.com/prometheus/client_golang v0.9.2
go: finding github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: finding github.com/golang/protobuf v1.3.2
go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: finding github.com/prometheus/common v0.0.0-20181126121408-4724e9255275
go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1
go: finding github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
go: finding github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: finding github.com/imdario/mergo v0.3.7
go: finding github.com/olekukonko/tablewriter v0.0.1
go: finding github.com/mattn/go-runewidth v0.0.4
go: finding src.techknowlogick.com/xormigrate v0.0.0-20190321151057-24497c23c09c
go: finding github.com/swaggo/swag v1.6.3
go: finding github.com/KyleBanks/depth v1.2.1
go: finding github.com/go-openapi/jsonreference v0.19.3
go: finding github.com/PuerkitoBio/purell v1.1.1
go: finding github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
go: finding github.com/go-openapi/jsonpointer v0.19.3
go: finding github.com/go-openapi/swag v0.19.5
go: finding github.com/mailru/easyjson v0.7.0
go: finding github.com/go-openapi/spec v0.19.4
go: finding golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d
go: finding github.com/laurent22/ical-go v0.1.1-0.20181107184520-7e5d6ade8eef
go: finding github.com/kolaente/caldav-go v3.0.1-0.20190524174923-9e5cd1688227+incompatible
go: finding github.com/beevik/etree v1.1.0
go: finding github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
go: finding github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a
go: finding github.com/ulule/limiter/v3 v3.3.0
go: finding github.com/pkg/errors v0.8.1
go: finding github.com/spf13/cobra v0.0.3
code.vikunja.io/api/pkg/static
runtime/cgo
code.vikunja.io/api/pkg/version
github.com/hashicorp/hcl/hcl/strconv
golang.org/x/sys/unix
github.com/hashicorp/hcl/hcl/token
github.com/pelletier/go-toml
github.com/hashicorp/hcl/hcl/ast
github.com/hashicorp/hcl/hcl/scanner
github.com/hashicorp/hcl/hcl/parser
github.com/hashicorp/hcl/json/token
github.com/hashicorp/hcl/json/scanner
github.com/hashicorp/hcl/json/parser
github.com/hashicorp/hcl/hcl/printer
github.com/hashicorp/hcl
github.com/fsnotify/fsnotify
github.com/spf13/afero/mem
golang.org/x/text/transform
github.com/spf13/cast
github.com/spf13/jwalterweatherman
golang.org/x/text/unicode/norm
gopkg.in/yaml.v2
github.com/go-xorm/core
github.com/go-xorm/builder
github.com/garyburd/redigo/internal
net
github.com/mattn/go-sqlite3
github.com/davecgh/go-spew/spew
github.com/pmezard/go-difflib/difflib
gopkg.in/testfixtures.v2
github.com/mattn/go-isatty
github.com/mattn/go-colorable
github.com/labstack/gommon/color
github.com/valyala/bytebufferpool
github.com/valyala/fasttemplate
golang.org/x/text/unicode/bidi
github.com/labstack/gommon/log
github.com/c2h5oh/datasize
golang.org/x/text/secure/bidirule
code.vikunja.io/api/pkg/utils
golang.org/x/net/idna
github.com/go-redis/redis/internal/util
github.com/go-redis/redis/internal/proto
github.com/go-redis/redis/internal/consistenthash
github.com/go-redis/redis/internal/hashtag
github.com/beorn7/perks/quantile
github.com/golang/protobuf/proto
github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
github.com/prometheus/common/model
github.com/prometheus/procfs/internal/util
github.com/prometheus/procfs/nfs
github.com/prometheus/procfs/xfs
golang.org/x/crypto/blowfish
golang.org/x/crypto/bcrypt
github.com/imdario/mergo
github.com/mattn/go-runewidth
github.com/olekukonko/tablewriter
github.com/KyleBanks/depth
github.com/PuerkitoBio/urlesc
golang.org/x/text/width
github.com/prometheus/client_model/go
github.com/matttproud/golang_protobuf_extensions/pbutil
github.com/PuerkitoBio/purell
github.com/mailru/easyjson/jlexer
github.com/prometheus/client_golang/prometheus/internal
github.com/mailru/easyjson/buffer
golang.org/x/tools/go/ast/astutil
github.com/mailru/easyjson/jwriter
golang.org/x/tools/go/buildutil
golang.org/x/tools/go/internal/cgo
github.com/laurent22/ical-go
golang.org/x/tools/go/loader
github.com/beevik/etree
github.com/samedi/caldav-go/errs
github.com/samedi/caldav-go/lib
github.com/samedi/caldav-go/files
github.com/alecthomas/template/parse
github.com/magiconair/properties
github.com/mitchellh/mapstructure
github.com/spf13/afero
github.com/spf13/pflag
github.com/op/go-logging
github.com/go-sql-driver/mysql
github.com/go-xorm/xorm
github.com/spf13/viper
github.com/garyburd/redigo/redis
code.vikunja.io/api/pkg/config
code.vikunja.io/api/pkg/log
github.com/stretchr/testify/assert
github.com/go-xorm/xorm-redis-cache
code.vikunja.io/api/pkg/timeutil
golang.org/x/crypto/acme
github.com/shurcooL/httpfs/vfsutil
github.com/shurcooL/httpfs/path/vfspath
github.com/shurcooL/httpfs/html/vfstemplate
golang.org/x/crypto/acme/autocert
gopkg.in/gomail.v2
github.com/labstack/echo/v4
code.vikunja.io/api/pkg/mail
# code.vikunja.io/api/pkg/mail
pkg/mail/send_mail.go:89:34: undefined: static.Templates
github.com/go-redis/redis/internal
github.com/go-redis/redis/internal/pool
github.com/go-redis/redis
code.vikunja.io/web
github.com/prometheus/common/expfmt
github.com/prometheus/procfs
github.com/dgrijalva/jwt-go
github.com/prometheus/client_golang/prometheus
src.techknowlogick.com/xormigrate
code.vikunja.io/web/handler
github.com/go-openapi/swag
github.com/go-openapi/jsonpointer
github.com/prometheus/client_golang/prometheus/promauto
github.com/go-openapi/jsonreference
github.com/go-openapi/spec
github.com/samedi/caldav-go/data
github.com/samedi/caldav-go/global
github.com/samedi/caldav-go/ixml
github.com/samedi/caldav-go/handlers
github.com/samedi/caldav-go
github.com/alecthomas/template
github.com/swaggo/swag
code.vikunja.io/api/pkg/red
code.vikunja.io/api/pkg/metrics
github.com/asaskevich/govalidator
github.com/labstack/gommon/bytes
github.com/labstack/gommon/random
github.com/labstack/echo/v4/middleware
code.vikunja.io/api/pkg/swagger
github.com/prometheus/client_golang/prometheus/promhttp
github.com/pkg/errors
github.com/spf13/cobra
github.com/ulule/limiter/v3
github.com/ulule/limiter/v3/drivers/store/common
github.com/ulule/limiter/v3/drivers/store/memory
github.com/ulule/limiter/v3/drivers/store/redis
code.vikunja.io/api/pkg/db
code.vikunja.io/api/pkg/files
make: *** [Makefile:106: vikunja] Error 2
Using the following expression ```nix { stdenv , lib , buildGoModule , fetchgit , git }: buildGoModule rec { name = "vikunja-api"; src = fetchgit { "url" = "https://kolaente.dev/jtojnar/api.git"; "rev" = "5d96c62a472ca227763bf297c5641100d4ee4967"; "sha256" = "14drwnkx14bgzr5nyppcxaic3lm1ngn7jzr917zfk709l4f835ba"; "fetchSubmodules" = false; "deepClone" = false; "leaveDotGit" = true; }; nativeBuildInputs = [ git ]; buildPhase = '' make GOFLAGS=-v SHELL='sh -x' ''; modSha256 = "sha256:0flbakhj4j74rgscq8plwgdh43jacw953v5n2cz8qmjs88y01qv6"; } ``` the build fails: ``` + uname -s + find . -name '*.go' -type f '!' -path './vendor/*' '!' -path '*/bindata.go' + git describe --tags --always --abbrev=10 + sed s/-/+/ + sed s/-g/-/ + sed 's/^v//' + git describe --tags --always --abbrev=10 + sed s/-/+/ + sed s/-g/-/ + sed 's/^v//' + find . -name '*.go' -type f go build -v -tags '' -ldflags '-s -w -X "code.vikunja.io/api/pkg/version.Version=0.10+13-014ec2be69" -X "main.Tags="' -o vikunja + go build -v -tags '' -ldflags '-s -w -X "code.vikunja.io/api/pkg/version.Version=0.10+13-014ec2be69" -X "main.Tags="' -o vikunja go: downloading github.com/spf13/viper v1.3.2 go: downloading github.com/spf13/cobra v0.0.3 go: downloading github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 go: downloading github.com/go-xorm/xorm v0.7.1 go: downloading github.com/stretchr/testify v1.4.0 go: downloading github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae go: downloading github.com/labstack/echo v3.3.10+incompatible go: downloading github.com/op/go-logging v0.0.0-20160315200505-970db520ece7 go: downloading golang.org/x/crypto v0.0.0-20200208060501-ecb85df21340 go: downloading gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df go: extracting github.com/spf13/viper v1.3.2 go: extracting github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 go: extracting github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae go: downloading github.com/go-xorm/builder v0.3.4 go: downloading github.com/magiconair/properties v1.8.0 go: extracting github.com/op/go-logging v0.0.0-20160315200505-970db520ece7 go: extracting gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df go: extracting github.com/spf13/cobra v0.0.3 go: downloading src.techknowlogick.com/xormigrate v0.0.0-20190321151057-24497c23c09c go: extracting github.com/stretchr/testify v1.4.0 go: extracting github.com/go-xorm/builder v0.3.4 go: extracting src.techknowlogick.com/xormigrate v0.0.0-20190321151057-24497c23c09c go: downloading github.com/spf13/jwalterweatherman v1.1.0 go: extracting github.com/magiconair/properties v1.8.0 go: downloading github.com/swaggo/swag v1.6.3 go: downloading github.com/mattn/go-sqlite3 v1.10.0 go: downloading github.com/hashicorp/hcl v1.0.0 go: extracting github.com/spf13/jwalterweatherman v1.1.0 go: downloading github.com/imdario/mergo v0.3.7 go: downloading gopkg.in/testfixtures.v2 v2.5.3 go: extracting github.com/go-xorm/xorm v0.7.1 go: downloading github.com/mitchellh/mapstructure v1.1.2 go: extracting github.com/imdario/mergo v0.3.7 go: extracting github.com/labstack/echo v3.3.10+incompatible go: extracting gopkg.in/testfixtures.v2 v2.5.3 go: extracting github.com/mitchellh/mapstructure v1.1.2 go: downloading github.com/go-sql-driver/mysql v1.4.1 go: downloading github.com/go-xorm/core v0.6.2 go: extracting github.com/swaggo/swag v1.6.3 go: downloading github.com/labstack/echo/v4 v4.1.14 go: downloading code.vikunja.io/web v0.0.0-20200208214421-c90649369427 go: extracting github.com/go-xorm/core v0.6.2 go: extracting github.com/hashicorp/hcl v1.0.0 go: extracting github.com/go-sql-driver/mysql v1.4.1 go: downloading github.com/go-openapi/jsonreference v0.19.3 go: extracting code.vikunja.io/web v0.0.0-20200208214421-c90649369427 go: downloading github.com/ulule/limiter/v3 v3.3.0 go: downloading github.com/dgrijalva/jwt-go v3.2.0+incompatible go: extracting github.com/labstack/echo/v4 v4.1.14 go: extracting github.com/ulule/limiter/v3 v3.3.0 go: extracting golang.org/x/crypto v0.0.0-20200208060501-ecb85df21340 go: downloading github.com/fsnotify/fsnotify v1.4.7 go: downloading github.com/spf13/cast v1.3.0 go: extracting github.com/dgrijalva/jwt-go v3.2.0+incompatible go: downloading github.com/pelletier/go-toml v1.4.0 go: downloading github.com/labstack/gommon v0.3.0 go: extracting github.com/go-openapi/jsonreference v0.19.3 go: extracting github.com/spf13/cast v1.3.0 go: downloading github.com/prometheus/client_golang v0.9.2 go: extracting github.com/fsnotify/fsnotify v1.4.7 go: downloading github.com/olekukonko/tablewriter v0.0.1 go: downloading gopkg.in/yaml.v2 v2.2.7 go: extracting github.com/labstack/gommon v0.3.0 go: downloading github.com/go-openapi/jsonpointer v0.19.3 go: extracting github.com/pelletier/go-toml v1.4.0 go: downloading github.com/valyala/fasttemplate v1.1.0 go: extracting github.com/olekukonko/tablewriter v0.0.1 go: downloading github.com/go-openapi/spec v0.19.4 go: extracting gopkg.in/yaml.v2 v2.2.7 go: extracting github.com/go-openapi/jsonpointer v0.19.3 go: downloading github.com/davecgh/go-spew v1.1.1 go: extracting github.com/valyala/fasttemplate v1.1.0 go: downloading github.com/pkg/errors v0.8.1 go: downloading github.com/laurent22/ical-go v0.1.1-0.20181107184520-7e5d6ade8eef go: extracting github.com/prometheus/client_golang v0.9.2 go: downloading github.com/spf13/pflag v1.0.3 go: extracting github.com/laurent22/ical-go v0.1.1-0.20181107184520-7e5d6ade8eef go: extracting github.com/pkg/errors v0.8.1 go: downloading github.com/mattn/go-runewidth v0.0.4 go: extracting github.com/davecgh/go-spew v1.1.1 go: downloading golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d go: downloading github.com/mattn/go-isatty v0.0.12 go: extracting github.com/mattn/go-isatty v0.0.12 go: downloading github.com/kolaente/caldav-go v3.0.1-0.20190524174923-9e5cd1688227+incompatible go: downloading github.com/mattn/go-colorable v0.1.4 go: extracting github.com/spf13/pflag v1.0.3 go: extracting github.com/mattn/go-runewidth v0.0.4 go: extracting github.com/go-openapi/spec v0.19.4 go: extracting github.com/kolaente/caldav-go v3.0.1-0.20190524174923-9e5cd1688227+incompatible go: extracting github.com/mattn/go-colorable v0.1.4 go: downloading github.com/KyleBanks/depth v1.2.1 go: downloading github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910 go: downloading github.com/PuerkitoBio/purell v1.1.1 go: downloading github.com/golang/protobuf v1.3.2 go: extracting github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910 go: extracting github.com/KyleBanks/depth v1.2.1 go: extracting github.com/PuerkitoBio/purell v1.1.1 go: downloading github.com/go-xorm/xorm-redis-cache v0.0.0-20180727005610-859b313566b2 go: downloading golang.org/x/text v0.3.2 go: downloading github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 go: downloading github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 go: extracting github.com/go-xorm/xorm-redis-cache v0.0.0-20180727005610-859b313566b2 go: downloading github.com/prometheus/common v0.0.0-20181126121408-4724e9255275 go: extracting github.com/golang/protobuf v1.3.2 go: extracting github.com/prometheus/common v0.0.0-20181126121408-4724e9255275 go: extracting github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 go: downloading github.com/valyala/bytebufferpool v1.0.0 go: extracting github.com/valyala/bytebufferpool v1.0.0 go: downloading github.com/garyburd/redigo v1.6.0 go: extracting github.com/mattn/go-sqlite3 v1.10.0 go: extracting github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 go: extracting github.com/garyburd/redigo v1.6.0 go: downloading golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5 go: downloading github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a go: downloading github.com/pmezard/go-difflib v1.0.0 go: downloading github.com/go-redis/redis v6.15.2+incompatible go: downloading github.com/spf13/afero v1.2.2 go: downloading github.com/shurcooL/httpfs v0.0.0-20190527155220-6a4d4a70508b go: downloading github.com/go-openapi/swag v0.19.5 go: extracting github.com/shurcooL/httpfs v0.0.0-20190527155220-6a4d4a70508b go: downloading github.com/beevik/etree v1.1.0 go: extracting github.com/pmezard/go-difflib v1.0.0 go: downloading github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a go: extracting github.com/spf13/afero v1.2.2 go: extracting github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a go: extracting github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a go: downloading golang.org/x/net v0.0.0-20200202094626-16171245cfb2 go: extracting github.com/go-openapi/swag v0.19.5 go: extracting github.com/beevik/etree v1.1.0 go: extracting github.com/go-redis/redis v6.15.2+incompatible go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1 go: extracting github.com/matttproud/golang_protobuf_extensions v1.0.1 go: downloading github.com/mailru/easyjson v0.7.0 go: extracting github.com/mailru/easyjson v0.7.0 go: extracting golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d go: extracting golang.org/x/net v0.0.0-20200202094626-16171245cfb2 go: extracting golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5 go: extracting golang.org/x/text v0.3.2 go: finding github.com/spf13/viper v1.3.2 go: finding github.com/fsnotify/fsnotify v1.4.7 go: finding golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5 go: finding github.com/hashicorp/hcl v1.0.0 go: finding github.com/magiconair/properties v1.8.0 go: finding github.com/mitchellh/mapstructure v1.1.2 go: finding github.com/pelletier/go-toml v1.4.0 go: finding github.com/spf13/afero v1.2.2 go: finding golang.org/x/text v0.3.2 go: finding github.com/spf13/cast v1.3.0 go: finding github.com/spf13/jwalterweatherman v1.1.0 go: finding github.com/spf13/pflag v1.0.3 go: finding gopkg.in/yaml.v2 v2.2.7 go: finding github.com/op/go-logging v0.0.0-20160315200505-970db520ece7 go: finding github.com/go-sql-driver/mysql v1.4.1 go: finding github.com/go-xorm/core v0.6.2 go: finding github.com/go-xorm/xorm v0.7.1 go: finding github.com/go-xorm/builder v0.3.4 go: finding github.com/go-xorm/xorm-redis-cache v0.0.0-20180727005610-859b313566b2 go: finding github.com/garyburd/redigo v1.6.0 go: finding github.com/mattn/go-sqlite3 v1.10.0 go: finding github.com/stretchr/testify v1.4.0 go: finding github.com/davecgh/go-spew v1.1.1 go: finding github.com/pmezard/go-difflib v1.0.0 go: finding gopkg.in/testfixtures.v2 v2.5.3 go: finding code.vikunja.io/web v0.0.0-20200208214421-c90649369427 go: finding github.com/labstack/echo/v4 v4.1.14 go: finding github.com/labstack/gommon v0.3.0 go: finding github.com/mattn/go-colorable v0.1.4 go: finding github.com/mattn/go-isatty v0.0.12 go: finding github.com/valyala/fasttemplate v1.1.0 go: finding github.com/valyala/bytebufferpool v1.0.0 go: finding golang.org/x/crypto v0.0.0-20200208060501-ecb85df21340 go: finding golang.org/x/net v0.0.0-20200202094626-16171245cfb2 go: finding github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae go: finding github.com/shurcooL/httpfs v0.0.0-20190527155220-6a4d4a70508b go: finding gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df go: finding github.com/go-redis/redis v6.15.2+incompatible go: finding github.com/prometheus/client_golang v0.9.2 go: finding github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 go: finding github.com/golang/protobuf v1.3.2 go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910 go: finding github.com/prometheus/common v0.0.0-20181126121408-4724e9255275 go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1 go: finding github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a go: finding github.com/dgrijalva/jwt-go v3.2.0+incompatible go: finding github.com/imdario/mergo v0.3.7 go: finding github.com/olekukonko/tablewriter v0.0.1 go: finding github.com/mattn/go-runewidth v0.0.4 go: finding src.techknowlogick.com/xormigrate v0.0.0-20190321151057-24497c23c09c go: finding github.com/swaggo/swag v1.6.3 go: finding github.com/KyleBanks/depth v1.2.1 go: finding github.com/go-openapi/jsonreference v0.19.3 go: finding github.com/PuerkitoBio/purell v1.1.1 go: finding github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 go: finding github.com/go-openapi/jsonpointer v0.19.3 go: finding github.com/go-openapi/swag v0.19.5 go: finding github.com/mailru/easyjson v0.7.0 go: finding github.com/go-openapi/spec v0.19.4 go: finding golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d go: finding github.com/laurent22/ical-go v0.1.1-0.20181107184520-7e5d6ade8eef go: finding github.com/kolaente/caldav-go v3.0.1-0.20190524174923-9e5cd1688227+incompatible go: finding github.com/beevik/etree v1.1.0 go: finding github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 go: finding github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a go: finding github.com/ulule/limiter/v3 v3.3.0 go: finding github.com/pkg/errors v0.8.1 go: finding github.com/spf13/cobra v0.0.3 code.vikunja.io/api/pkg/static runtime/cgo code.vikunja.io/api/pkg/version github.com/hashicorp/hcl/hcl/strconv golang.org/x/sys/unix github.com/hashicorp/hcl/hcl/token github.com/pelletier/go-toml github.com/hashicorp/hcl/hcl/ast github.com/hashicorp/hcl/hcl/scanner github.com/hashicorp/hcl/hcl/parser github.com/hashicorp/hcl/json/token github.com/hashicorp/hcl/json/scanner github.com/hashicorp/hcl/json/parser github.com/hashicorp/hcl/hcl/printer github.com/hashicorp/hcl github.com/fsnotify/fsnotify github.com/spf13/afero/mem golang.org/x/text/transform github.com/spf13/cast github.com/spf13/jwalterweatherman golang.org/x/text/unicode/norm gopkg.in/yaml.v2 github.com/go-xorm/core github.com/go-xorm/builder github.com/garyburd/redigo/internal net github.com/mattn/go-sqlite3 github.com/davecgh/go-spew/spew github.com/pmezard/go-difflib/difflib gopkg.in/testfixtures.v2 github.com/mattn/go-isatty github.com/mattn/go-colorable github.com/labstack/gommon/color github.com/valyala/bytebufferpool github.com/valyala/fasttemplate golang.org/x/text/unicode/bidi github.com/labstack/gommon/log github.com/c2h5oh/datasize golang.org/x/text/secure/bidirule code.vikunja.io/api/pkg/utils golang.org/x/net/idna github.com/go-redis/redis/internal/util github.com/go-redis/redis/internal/proto github.com/go-redis/redis/internal/consistenthash github.com/go-redis/redis/internal/hashtag github.com/beorn7/perks/quantile github.com/golang/protobuf/proto github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg github.com/prometheus/common/model github.com/prometheus/procfs/internal/util github.com/prometheus/procfs/nfs github.com/prometheus/procfs/xfs golang.org/x/crypto/blowfish golang.org/x/crypto/bcrypt github.com/imdario/mergo github.com/mattn/go-runewidth github.com/olekukonko/tablewriter github.com/KyleBanks/depth github.com/PuerkitoBio/urlesc golang.org/x/text/width github.com/prometheus/client_model/go github.com/matttproud/golang_protobuf_extensions/pbutil github.com/PuerkitoBio/purell github.com/mailru/easyjson/jlexer github.com/prometheus/client_golang/prometheus/internal github.com/mailru/easyjson/buffer golang.org/x/tools/go/ast/astutil github.com/mailru/easyjson/jwriter golang.org/x/tools/go/buildutil golang.org/x/tools/go/internal/cgo github.com/laurent22/ical-go golang.org/x/tools/go/loader github.com/beevik/etree github.com/samedi/caldav-go/errs github.com/samedi/caldav-go/lib github.com/samedi/caldav-go/files github.com/alecthomas/template/parse github.com/magiconair/properties github.com/mitchellh/mapstructure github.com/spf13/afero github.com/spf13/pflag github.com/op/go-logging github.com/go-sql-driver/mysql github.com/go-xorm/xorm github.com/spf13/viper github.com/garyburd/redigo/redis code.vikunja.io/api/pkg/config code.vikunja.io/api/pkg/log github.com/stretchr/testify/assert github.com/go-xorm/xorm-redis-cache code.vikunja.io/api/pkg/timeutil golang.org/x/crypto/acme github.com/shurcooL/httpfs/vfsutil github.com/shurcooL/httpfs/path/vfspath github.com/shurcooL/httpfs/html/vfstemplate golang.org/x/crypto/acme/autocert gopkg.in/gomail.v2 github.com/labstack/echo/v4 code.vikunja.io/api/pkg/mail # code.vikunja.io/api/pkg/mail pkg/mail/send_mail.go:89:34: undefined: static.Templates github.com/go-redis/redis/internal github.com/go-redis/redis/internal/pool github.com/go-redis/redis code.vikunja.io/web github.com/prometheus/common/expfmt github.com/prometheus/procfs github.com/dgrijalva/jwt-go github.com/prometheus/client_golang/prometheus src.techknowlogick.com/xormigrate code.vikunja.io/web/handler github.com/go-openapi/swag github.com/go-openapi/jsonpointer github.com/prometheus/client_golang/prometheus/promauto github.com/go-openapi/jsonreference github.com/go-openapi/spec github.com/samedi/caldav-go/data github.com/samedi/caldav-go/global github.com/samedi/caldav-go/ixml github.com/samedi/caldav-go/handlers github.com/samedi/caldav-go github.com/alecthomas/template github.com/swaggo/swag code.vikunja.io/api/pkg/red code.vikunja.io/api/pkg/metrics github.com/asaskevich/govalidator github.com/labstack/gommon/bytes github.com/labstack/gommon/random github.com/labstack/echo/v4/middleware code.vikunja.io/api/pkg/swagger github.com/prometheus/client_golang/prometheus/promhttp github.com/pkg/errors github.com/spf13/cobra github.com/ulule/limiter/v3 github.com/ulule/limiter/v3/drivers/store/common github.com/ulule/limiter/v3/drivers/store/memory github.com/ulule/limiter/v3/drivers/store/redis code.vikunja.io/api/pkg/db code.vikunja.io/api/pkg/files make: *** [Makefile:106: vikunja] Error 2 ```
Author
Contributor

Perhaps something to do with

# code.vikunja.io/api/pkg/mail
pkg/mail/send_mail.go:89:34: undefined: static.Templates
Perhaps something to do with ``` # code.vikunja.io/api/pkg/mail pkg/mail/send_mail.go:89:34: undefined: static.Templates ```
Owner

It seems like you need to execute

go generate code.vikunja.io/api/pkg/static

before building.

Vikunja builds the email templates into the binary, that way the binary contains everything and there is no need to have the template files on the system somewhere.

It seems like you need to execute ``` go generate code.vikunja.io/api/pkg/static ``` before building. Vikunja builds the email templates into the binary, that way the binary contains everything and there is no need to have the template files on the system somewhere.
Author
Contributor

Yeah, running make generate && make seems to work. The generate target should probably be added as a dependency for build target.

Yeah, running `make generate && make` seems to work. The `generate` target should probably be added as a dependency for `build` target.
Author
Contributor

Or a least update the docs https://vikunja.io/docs/build-from-sources/

Or a least update the docs https://vikunja.io/docs/build-from-sources/
Owner

Updated the docs and added generate to build as a dependency.

Updated the docs and added `generate` to `build` as a dependency.
Owner

Closing this as the issue has been resolved, feel free to reopen if anything is unclear.

Closing this as the issue has been resolved, feel free to reopen if anything is unclear.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#134
No description provided.