From 5043546fd4aef7ea67f09afd3373758255e6a1d9 Mon Sep 17 00:00:00 2001 From: Mike Bland Date: Mon, 10 Apr 2023 14:38:26 -0400 Subject: [PATCH] Update Makefile target name that builds the Lambda Should've been part of commit 756d4669a1d4fd851095ad2bdeef3748009e240e. This could've been caught locally via 'make run-local', but was caught by the CI/CD pipeline: - https://github.com/mbland/elistman/actions/runs/4660170315/jobs/8247905879 Build Failed Error: CustomMakeBuilder:MakeBuild - Make Failed: make: *** No rule to make target 'build-Function'. Stop. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4ab1f67..3b82326 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,13 @@ SHELL := /bin/bash .POSIX: -.PHONY: all clean delete deploy run-local sam-build coverage test build-EListMan +.PHONY: all clean delete deploy run-local sam-build coverage test build-Function # https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-build.html#examples-makefile-identifier # https://docs.aws.amazon.com/lambda/latest/dg/golang-package.html # https://github.com/aws-samples/sessions-with-aws-sam/tree/master/go-al2 -build-EListMan: +build-Function: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" \ - -o $(ARTIFACTS_DIR)/main lambda/main.go + -o $(ARTIFACTS_DIR)/main lambda/main.go test: go vet ./...