serverless / github-action

:zap::octocat: A Github Action for deploying with the Serverless Framework
Apache License 2.0
658 stars 172 forks source link

There is no option to pin specific version of serverless #84

Open santhosh-vikraman opened 1 year ago

santhosh-vikraman commented 1 year ago

Please add provision to support specific version

ryanlawson commented 4 months ago

Created PR #90 to address this.

thrichardson-twist commented 4 days ago

I am seriously giving up on serverless unless there is a way to pin it. My rust builds are failing and there is no error message at all. All I can say for sure is the serverless version changed. But I can't roll back and test.

garethmcc commented 4 days ago

There is a way to do this. For Serverless Framework Version 4 you can add the frameworkVersion property to your serverless.yml with a specific version. More details can be found here: https://www.serverless.com/framework/docs/providers/aws/guide/services#version-pinning

thrichardson-twist commented 3 days ago

I did find a way, not sure if that's what you link points to: npm install -g serverless@4.1.22. It turns out my issue was related to the lambda instance memory limit and I was getting OOM. Strangely, downgrading rust by one version seems to have fixed it. So I take back what I said in this thread. :)

Long day of debugging...