Skip to content

Commit

Permalink
Update Makefile target name that builds the Lambda
Browse files Browse the repository at this point in the history
Should've been part of commit 756d466.

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.
  • Loading branch information
mbland committed Apr 10, 2023
1 parent 716a57e commit 5043546
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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 ./...
Expand Down

0 comments on commit 5043546

Please sign in to comment.