twilio-labs / serverless-toolkit

CLI tool to develop, debug and deploy Twilio Functions
https://www.twilio.com/docs/labs/serverless-toolkit
MIT License
114 stars 59 forks source link

Serverless plugin does not honor explicit Service Name when a .twilio-functions points to a different service #169

Open dorkusprime opened 4 years ago

dorkusprime commented 4 years ago

Repro Steps

  1. Deploy a Serverless Function under any name with twilio serverless:deploy
  2. Change the name value in package.json
  3. Deploy again with twilio serverless:deploy
  4. Notice that the "Service Name" appears correct while deploying
  5. List services with twilio serverless:list
  6. Notice that the function was deployed to the old Service

(deploying with an explicit --service-name= parameter produces the same result)

Extra credit:

  1. rm .twilio-functions
  2. twilio serverless:deploy
  3. twilio serverless:list
  4. Notice that the function was deployed to the new Service

Expected Result

Actual Result

welcome[bot] commented 4 years ago

Thank you so much for opening your first issue in this project! We'll try to get back to it as quickly as possible. While you are waiting...here's a random picture of a corgi (powered by dog.ceo)

picture of dog