This repository was archived by the owner on Dec 2, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ VERSION := $(shell cat VERSION)
17
17
GITFILES := $(shell find ".git/")
18
18
19
19
.PHONY : build
20
- build : $(LOCAL_BINARY )
20
+ build : format $(LOCAL_BINARY )
21
21
22
22
$(LOCAL_BINARY ) : $(SOURCES ) GITCOMMIT_SHA
23
23
./scripts/build_binary.sh ./bin/local img2lambda $(VERSION ) $(shell cat GITCOMMIT_SHA)
@@ -31,6 +31,10 @@ integration-test: $(LOCAL_BINARY)
31
31
generate : $(SOURCES )
32
32
PATH=$(LOCAL_PATH ) go generate -x $(shell go list ./img2lambda/... | grep -v '/vendor/')
33
33
34
+ .PHONY : format
35
+ format : $(SOURCES )
36
+ PATH=$(LOCAL_PATH ) go fmt -x $(shell go list ./img2lambda/... | grep -v '/vendor/')
37
+
34
38
.PHONY : install-deps
35
39
install-deps :
36
40
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{
17
17
18
18
func NewLambdaClient (region string , profile string ) * lambda.Lambda {
19
19
sess := session .Must (session .NewSessionWithOptions (session.Options {
20
- Profile : profile ,
20
+ Profile : profile ,
21
21
SharedConfigState : session .SharedConfigEnable ,
22
22
}))
23
23
sess .Handlers .Build .PushBackNamed (userAgentHandler )
You can’t perform that action at this time.
0 commit comments