Open smt7174 opened 1 year ago
We may have broke something with Bun that causes a library used in the publish script to break.
@Electroid
We may have broke something with Bun that causes a library used in the publish script to break.
I think so. "bun" file in bun-lambda-layer.zip is 0KB, and "bootstrap" and "runtime.ts" files are not in bun-lambda-layer.zip, so aws cli may judge it's broken.
I am seeing this bug in 1.0.14 in Linux
What version of Bun is running?
1.0.8 or later(version 1.0.7 or earlier, this error does not occur)
What platform is your computer?
Linux 5.4.72-microsoft-standard-WSL2 x86_64 x86_64 and Ubuntu 18
What steps can reproduce the bug?
curl -fsSL https://bun.sh/install | bash
commandgit clone https://github.com/oven-sh/bun.git
orgit clone git@github.com:oven-sh/bun.git
commandcd bun/packages/bun-lambda
commandbun install
command.bun run publish-layer
bun/packages/bun-lambda/README.md
aws configure
) is set correctly. (version 1.0.7 or earlier, publishing lambda layer finishes correctly.)What is the expected behavior?
publishing lambda layer finishes correctly (with no errors) like below.
What do you see instead?
publishing lambda layer fails by "--zip-file must be a zip file with the fileb:// prefix" error. (error code: 252)
Additional information
`/<your project dir>/bun-lambda
directory.--profile <your profile name>
option to line 69 of/<your project dir>/bun-lambda/scripts/publish-layer.ts
(not related to this issue)