sst / ion

❍ — a new engine for SST
https://ion.sst.dev
MIT License
1.04k stars 114 forks source link

When built from source code: Uploaded file must be a non-empty zip #430

Closed arjunyel closed 4 weeks ago

arjunyel commented 1 month ago
  1. clone down ion repo, cd cmd/sst, go build -o sst, drag binary to project directory. Running latest Go and MacOS x86

  2. when running sst dev everything works, when I run ./sst dev I get

|  Error       InTestAws sst:aws:Function → InTestAwsCodeUpdater sst:aws:FunctionCodeUpdater Uploaded file must be a non-empty zip
|  Error        Error: failed to register new resource InTestAwsCodeUpdater.sst.aws.FunctionCodeUpdater [pulumi-nodejs:dynamic:Resource]: 13 INTERNAL: resource registration failed
|  at Object.registerResource (/Users/test/test/.sst/platform/node_modules/@pulumi/runtime/resource.ts:444:27)
|  at new Resource (/Users/test/test/.sst/platform/node_modules/@pulumi/resource.ts:507:13)
|  at new CustomResource (/Users/test/test/.sst/platform/node_modules/@pulumi/resource.ts:962:9)
|  at new Resource (/Users/test/test/.sst/platform/node_modules/@pulumi/dynamic/index.ts:231:9)
|  at new FunctionCodeUpdater (file:///Users/test/test/.sst/platform/src/components/aws/providers/function-code-updater.ts:110:5)
|  at updateFunctionCode (file:///Users/test/test/.sst/platform/src/components/aws/function.ts:1468:14)
|  at new _Function (file:///Users/test/test/.sst/platform/src/components/aws/function.ts:920:25)
|  at run (file:///Users/test/test/sst.config.ts:75:24)
|  at run (file:///Users/test/test/.sst/platform/src/auto/run.ts:36:26)
|  at file:///Users/test/test/.sst/platform/eval.ts:6:28 {
|  promise: Promise { <rejected> [Circular *1] }
|  }

×  Failed
   InTestAws sst:aws:Function → InTestAwsCodeUpdater sst:aws:FunctionCodeUpdater
   Uploaded file must be a non-empty zip
   Error: failed to register new resource InTestAwsCodeUpdater.sst.aws.FunctionCodeUpdater [pulumi-nodejs:dynamic:Resource]: 13 INTERNAL: resource registration failed
       at Object.registerResource (/Users/test/test/.sst/platform/node_modules/@pulumi/runtime/resource.ts:444:27)
       at new Resource (/Users/test/test/.sst/platform/node_modules/@pulumi/resource.ts:507:13)
       at new CustomResource (/Users/test/test/.sst/platform/node_modules/@pulumi/resource.ts:962:9)
       at new Resource (/Users/test/test/.sst/platform/node_modules/@pulumi/dynamic/index.ts:231:9)
       at new FunctionCodeUpdater (file:///Users/test/test/.sst/platform/src/components/aws/providers/function-code-updater.ts:110:5)
       at updateFunctionCode (file:///Users/test/test/.sst/platform/src/components/aws/function.ts:1468:14)
       at new _Function (file:///Users/test/test/.sst/platform/src/components/aws/function.ts:920:25)
       at run (file:///Users/test/test/sst.config.ts:75:24)
       at run (file:///Users/test/test/.sst/platform/src/auto/run.ts:36:26)
       at file:///Users/test/test/.sst/platform/eval.ts:6:28 {
     promise: Promise { <rejected> [Circular *1] }
   }

Related: https://github.com/sst/ion/issues/62

Tried restarting and deleting the 22 byte files that appear in S3.

thdxr commented 4 weeks ago

is there a reason you're building from source? there's a few assets that need to be build as well - we haven't documented this yet since it's still in flux

if you look at the top of the .goreleaser.yml file you'll see

arjunyel commented 4 weeks ago

I was hoping to contribute :D My testing loop was going to be make changes, build sst binary, move it into my project and run ./sst dev. I shall check out .goreleaser.yml thanks!