Skip to content

Commit

Permalink
Various Makefile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-gr committed May 28, 2021
1 parent 9de0ba4 commit be40c3b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
LICENSE := ASL2-Short
VERSION ?= latest
VERSION ?= local

check-fmt: goimports go-licenser
@go-licenser -d -license ${LICENSE}
@goimports -l -e -local github.com/andrewkroh . | read && echo "Code differs from gofmt's style. Run 'gofmt -w .'" 1>&2 && exit 1 || true
@goimports -l -e -local github.com/elastic . | read && echo "Code differs from gofmt's style. Run 'gofmt -w .'" 1>&2 && exit 1 || true

docker:
docker build -t akroh/stream:${VERSION} .

publish: docker
docker push akroh/stream:${VERSION}
docker build -t docker.elastic.co/observability/stream:${VERSION} .

fmt: goimports go-licenser
go-licenser -license ${LICENSE}
goimports -l -w -local github.com/andrewkroh .
goimports -l -w -local github.com/elastic .

goimports:
GO111MODULE=off go get golang.org/x/tools/cmd/goimports
Expand Down
5 changes: 3 additions & 2 deletions command/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ import (
"strings"
"time"

"github.com/elastic/go-concert/ctxtool/osctx"
"github.com/elastic/go-concert/timed"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"go.uber.org/multierr"
"go.uber.org/zap"
"golang.org/x/sys/unix"

"github.com/elastic/go-concert/ctxtool/osctx"
"github.com/elastic/go-concert/timed"

"github.com/elastic/stream/pkg/log"
"github.com/elastic/stream/pkg/output"

Expand Down
3 changes: 2 additions & 1 deletion pkg/output/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import (
"context"
"time"

"github.com/elastic/go-concert/timed"
"go.uber.org/zap"

"github.com/elastic/go-concert/timed"
)

func Initialize(opts *Options, logger *zap.SugaredLogger, ctx context.Context) (Output, error) {
Expand Down

0 comments on commit be40c3b

Please sign in to comment.