Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit b759feb

Browse files
committed
Add go fmt target
1 parent 37ac6e8 commit b759feb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ VERSION := $(shell cat VERSION)
1717
GITFILES := $(shell find ".git/")
1818

1919
.PHONY: build
20-
build: $(LOCAL_BINARY)
20+
build: format $(LOCAL_BINARY)
2121

2222
$(LOCAL_BINARY): $(SOURCES) GITCOMMIT_SHA
2323
./scripts/build_binary.sh ./bin/local img2lambda $(VERSION) $(shell cat GITCOMMIT_SHA)
@@ -31,6 +31,10 @@ integration-test: $(LOCAL_BINARY)
3131
generate: $(SOURCES)
3232
PATH=$(LOCAL_PATH) go generate -x $(shell go list ./img2lambda/... | grep -v '/vendor/')
3333

34+
.PHONY: format
35+
format: $(SOURCES)
36+
PATH=$(LOCAL_PATH) go fmt -x $(shell go list ./img2lambda/... | grep -v '/vendor/')
37+
3438
.PHONY: install-deps
3539
install-deps:
3640
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

img2lambda/clients/clients.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var userAgentHandler = request.NamedHandler{
1717

1818
func NewLambdaClient(region string, profile string) *lambda.Lambda {
1919
sess := session.Must(session.NewSessionWithOptions(session.Options{
20-
Profile: profile,
20+
Profile: profile,
2121
SharedConfigState: session.SharedConfigEnable,
2222
}))
2323
sess.Handlers.Build.PushBackNamed(userAgentHandler)

0 commit comments

Comments
 (0)