Well, that's embarrassing... Of course, you need to run
make before running an
sls deploy... If you don't do that, you'll always be deploying stale code. I'll forgive myself, because it's only my second day at Go, but it's silly all the same.
I have updated my
Makefile by adding
install, like so:
build: dep ensure env GOOS=linux go build -ldflags="-s -w" -o bin/hello hello/main.go env GOOS=linux go build -ldflags="-s -w" -o bin/world world/main.go deploy: sls deploy install: build deploy
make install now builds, then deploys, preventing this issue from happening again.