build(Makefile): fix various bug with makefiles
Fixes subdir ordering. Works around issue with stringer not working with Go modules. Fixes issues with generated code being ignored. Fixes #2044pull/10616/head
parent
bb2efcc641
commit
89f4525841
5
Makefile
5
Makefile
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
# SUBDIRS are directories that have their own Makefile.
|
||||
# It is required that all subdirs have the `all` and `clean` targets.
|
||||
SUBDIRS := chronograf http ui query storage task
|
||||
SUBDIRS := http ui chronograf query storage task
|
||||
|
||||
GO_ARGS=-tags '$(GO_TAGS)'
|
||||
|
||||
|
|
@ -75,9 +75,6 @@ chronograf_lint:
|
|||
ui/node_modules:
|
||||
make -C ui node_modules
|
||||
|
||||
ui/build:
|
||||
mkdir -p ui/build
|
||||
|
||||
#
|
||||
# Define action only targets
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
CHANGELOG.md merge=union
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
# Directories
|
||||
ui/reports/
|
||||
build/
|
||||
backup/
|
||||
.vscode/
|
||||
|
||||
# Binaries
|
||||
/chronograf
|
||||
/chronoctl
|
||||
|
||||
# Dotfiles
|
||||
.pull-request
|
||||
.DS_Store
|
||||
.godep
|
||||
.jsdep
|
||||
.jssrc
|
||||
.dev-jssrc
|
||||
.bindata
|
||||
.eslintcache
|
||||
|
||||
# Files
|
||||
chronograf*.db
|
||||
*_gen.go
|
||||
canned/apps_gen.go
|
||||
npm-debug.log
|
||||
npm-error.log
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
2
go.mod
2
go.mod
|
|
@ -139,7 +139,7 @@ require (
|
|||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
|
||||
golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a
|
||||
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
|
||||
golang.org/x/tools v0.0.0-20181121193951-91f80e683c10 // indirect
|
||||
golang.org/x/tools v0.0.0-20181121193951-91f80e683c10
|
||||
google.golang.org/api v0.0.0-20181021000519-a2651947f503
|
||||
google.golang.org/appengine v1.2.0 // indirect
|
||||
google.golang.org/genproto v0.0.0-20181016170114-94acd270e44e // indirect
|
||||
|
|
|
|||
|
|
@ -4,4 +4,6 @@ package reads
|
|||
//go:generate env GO111MODULE=on go run github.com/benbjohnson/tmpl -data=@array_cursor.gen.go.tmpldata response_writer.gen.go.tmpl
|
||||
//go:generate env GO111MODULE=on go run github.com/benbjohnson/tmpl -data=@array_cursor.gen.go.tmpldata stream_reader.gen.go.tmpl
|
||||
//go:generate env GO111MODULE=on go run github.com/benbjohnson/tmpl -data=@array_cursor.gen.go.tmpldata stream_reader_gen_test.go.tmpl
|
||||
//go:generate stringer -type=readState -trimprefix=state
|
||||
// Stringer is not compatible with Go modules, see https://github.com/influxdata/platform/issues/2017
|
||||
// For now we are disabling the command. If it needs to be regenerated you must do so manually.
|
||||
////go:generate stringer -type=readState -trimprefix=state
|
||||
|
|
|
|||
Loading…
Reference in New Issue