mweagle / Sparta

go microservices, powered by AWS Lambda
https://gosparta.io
MIT License
716 stars 48 forks source link

Getting "no buildable Go source files" #40

Closed BigJk closed 7 years ago

BigJk commented 7 years ago

I'm new to AWS Lambda and Sparta and I've got a problem deploying my Lambda Function. I'm using one external package from my own Github. When I run go run main.go provision --s3Bucket mybucket I get:

INFO[0000] =================
INFO[0000] Welcome to ExMars GoVersion=go1.7.3 LinkFlags= Option=provision SpartaVersion=0.10.0 UTC="2017-01-08T03:47:19Z" INFO[0000] =================
INFO[0000] Provisioning service BuildID=da66722cb35cef05579a0df95901332c89e76869 CodePipelineTrigger= NOOP=false Tags= INFO[0000] Verifying IAM Lambda execution roles
INFO[0000] IAM roles verified Count=1 INFO[0000] Checking S3 versioning Bucket=mybucket VersioningEnabled=true INFO[0000] Running go generate
INFO[0000] Compiling binary Name=ExMars.lambda.amd64 INFO[0000] main.go:7:2: no buildable Go source files in /Users/bigjk/Documents/go/src/github.com/BigJk/goexmars INFO[0000] Invoking rollback functions RollbackCount=0 ERRO[0000] exit status 1
Error: exit status 1 Usage: main provision [flags]

Flags: -i, --buildID string Optional BuildID to use -p, --codePipeline string Provision for CodePipeline integration -s, --s3Bucket string S3 Bucket to use for Lambda source

Global Flags: --ldflags string Go linker string definition flags (https://golang.org/cmd/link/) -l, --level string Log level [panic, fatal, error, warn, info, debug] (default "info") -n, --noop Dry-run behavior only (do not perform mutations) -t, --tags string Optional build tags for conditional compilation

ERRO[0000] exit status 1

while go run main.go --level info explore is working correctly. It seems like it can't find the source of the package when I want to deploy it. Did I miss something? I'm very sorry if it's a obvious problem.

mweagle commented 7 years ago

@BigJk - Is this still an issue for you?

mweagle commented 7 years ago

Hi @BigJk - I'm closing this due to inactivity. Please reopen if you're running into issues.