This repository was archived by the owner on Dec 2, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ VERSION := $(shell cat VERSION)
1717GITFILES := $(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)
3131generate : $(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
3539install-deps :
3640 curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ var userAgentHandler = request.NamedHandler{
1717
1818func 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 )
You can’t perform that action at this time.
0 commit comments