When calling sls service-a:package --stage mystage from the compose level, an error is thrown due to a duplicate stage parameter being passed to service-a.
Note the invoked command above contains both "--stage mystage" and "--stage=mystage".
Please see README here for folder structure and error.
What's the impact of this bug?
You can't run 'sls package' against a particular service from the compose level.
I hit this while trying to get my custom plugin command to work. I see that passing cli options to a plugin's command is still TODO, but I felt this falls outside that TODO, as it's the 'package' command and it's not failing from lack of passed options.
Steps to Reproduce?
Please see README here for exact reproduction steps.
in short:
sls service-a:package --stage mystage
Assorted Notes/Considerations
I put this in the helper repo's README, but deleting the stage from opts before invoking the sub command "fixes" this, but I doubt that's the right choice.
I'm suspicious that I'm missing something, and this is all intended. Any help appreciated!!
Hello @mdial89f, thanks a lot for reporting and sorry you've run into trouble. I've managed to reproduce your problem and we will work on a fix shortly. 👍
I've made a hello-world repo of the issue with error logs and explanation here: https://github.com/mdial89f/double-stage-issue
What's broken?
When calling
sls service-a:package --stage mystage
from the compose level, an error is thrown due to a duplicate stage parameter being passed to service-a.Note the invoked command above contains both "--stage mystage" and "--stage=mystage".
Please see README here for folder structure and error.
What's the impact of this bug?
You can't run 'sls package' against a particular service from the compose level.
I hit this while trying to get my custom plugin command to work. I see that passing cli options to a plugin's command is still TODO, but I felt this falls outside that TODO, as it's the 'package' command and it's not failing from lack of passed options.
Steps to Reproduce?
Please see README here for exact reproduction steps.
in short:
Assorted Notes/Considerations