Open Seeker14491 opened 5 years ago
I'm tracking a related issue that may be the source of this problem here https://github.com/softprops/lambda-rust/issues/2 so far it appears to only affect windows users. Let me know of the symptoms listed there seem familiar.
In the mean time I'll leave this issue open for visibility
supporting docker with windows was kind of a pain since I didn't have a good way to test. The latest release has an experimental option to build locally without docker which may help https://github.com/softprops/serverless-rust#-experimental-local-builds Of not I do have integration tests which testing building and running on a windows vm
Can confirm that this issue is not being resolved yet. Got the same error when trying to deploy rust serverless today.
Finished release [optimized] target(s) in 34.45s
objcopy: st8nPDiH: debuglink section already exists
mv: 'metis-diagnosis' and 'bootstrap' are the same file
Serverless: Rust build encountered an error: undefined 1.
Error --------------------------------------------------
Error
at /workspace/node_modules/serverless-rust/index.js:289:15
at Array.forEach (<anonymous>)
at RustPlugin.build (/workspace/node_modules/serverless-rust/index.js:269:22)
From previous event:
at PluginManager.invoke (/workspace/node_modules/serverless/lib/classes/PluginManager.js:483:22)
at PluginManager.spawn (/workspace/node_modules/serverless/lib/classes/PluginManager.js:503:17)
at /workspace/node_modules/serverless/lib/plugins/deploy/deploy.js:112:50
From previous event:
at Object.before:deploy:deploy [as hook] (/workspace/node_modules/serverless/lib/plugins/deploy/deploy.js:102:22)
at /workspace/node_modules/serverless/lib/classes/PluginManager.js:483:55
From previous event:
at PluginManager.invoke (/workspace/node_modules/serverless/lib/classes/PluginManager.js:483:22)
at /workspace/node_modules/serverless/lib/classes/PluginManager.js:518:24
From previous event:
at PluginManager.run (/workspace/node_modules/serverless/lib/classes/PluginManager.js:518:8)
at /workspace/node_modules/serverless/lib/Serverless.js:133:33
From previous event:
at Serverless.run (/workspace/node_modules/serverless/lib/Serverless.js:120:74)
at /workspace/node_modules/serverless/bin/serverless.js:87:26
at processImmediate (internal/timers.js:461:21)
From previous event:
at Object.<anonymous> (/workspace/node_modules/serverless/bin/serverless.js:87:4)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47
π Bug description
An error is generated when running the
serverless deploy
command. I'm trying to run the serverless-aws-rust template.π Steps to reproduce
Steps taken:
Rerunning the
serverless deploy
command with theSLS_DEBUG
env variable set to*
yields this stack trace:π Your environment
Windows 10 x64
serverless version: 1.35.1
rust-plugin version: 0.2.0