Skip to content

Instantly share code, notes, and snippets.

@psturc
Created February 28, 2018 09:06
Show Gist options
  • Select an option

  • Save psturc/355aba33949e54487d604732e93685b2 to your computer and use it in GitHub Desktop.

Select an option

Save psturc/355aba33949e54487d604732e93685b2 to your computer and use it in GitHub Desktop.
metrics api - make_build error
psturc@Pavels-MacBook-Pro ~/gocode/src/github.com/aerogear/aerogear-metrics-api [9:56:06]
> $make build_linux ⬡ 6.11.3 [±db-fix ✓]
dep ensure
env GOOS=linux GOARCH=amd64 go build -o ./dist/linux_amd64/aerogear-app-metrics ./cmd/metrics-api/metrics-api.go
# command-line-arguments
cmd/metrics-api/metrics-api.go:19:26: not enough arguments in call to dbHandler.Connect
cmd/metrics-api/metrics-api.go:19:33: config.DBConnectionString undefined (type map[string]string has no field or method DBConnectionString)
cmd/metrics-api/metrics-api.go:19:60: config.DBMaxConnections undefined (type map[string]string has no field or method DBMaxConnections)
cmd/metrics-api/metrics-api.go:45:68: config.ListenAddress undefined (type map[string]string has no field or method ListenAddress)
cmd/metrics-api/metrics-api.go:48:38: config.ListenAddress undefined (type map[string]string has no field or method ListenAddress)
make: *** [build_linux] Error 2
psturc@Pavels-MacBook-Pro ~/gocode/src/github.com/aerogear/aerogear-metrics-api [9:57:43]
> $ git checkout master ⬡ 6.11.3 [±db-fix ✓]
Switched to branch 'master'
Your branch is ahead of 'origin/master' by 40 commits.
(use "git push" to publish your local commits)
psturc@Pavels-MacBook-Pro ~/gocode/src/github.com/aerogear/aerogear-metrics-api [9:57:58]
> $ go build -o aerogear-app-metrics ./cmd/metrics-api/metrics-api.go ⬡ 6.11.3 [±master ✓▴]
psturc@Pavels-MacBook-Pro ~/gocode/src/github.com/aerogear/aerogear-metrics-api [9:58:03]
> $ make build ⬡ 6.11.3 [±master ✓▴]
dep ensure
go build -o aerogear-app-metrics ./cmd/metrics-api/metrics-api.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment