You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2020/03/04 04:44:03 UTC

[GitHub] [openwhisk-wskdebug] alexkli opened a new issue #10: Support reading package name from WSK_PACKAGE env var

alexkli opened a new issue #10: Support reading package name from WSK_PACKAGE env var
URL: https://github.com/apache/openwhisk-wskdebug/issues/10
 
 
   _Moved from https://github.com/adobe/wskdebug/issues/49_
   
   **Motivation**
   
   Some Openwhisk applications deploy their actions in a package that is defined at deployment time and includes a version number etc. OTOH, when using a VS Code launch config one cannot easily use environment variables for the action name, so something like `wskdebug $WSK_PACKAGE/myaction` does NOT work. It is impractical if each developer, working against a different package, has to modify the VS code `launch.json` which is usually version controlled.
   
   **Solution**
   
   Users would configure `wskdebug myaction` in their `launch.json` config. Upon start, `wskdebug` would:
   * if `WSK_PACKAGE` env var is set: use `$WSK_PACKAGE/myaction` as fully qualified action name
   * if `WSK_PACKAGE` is not set: use `myaction`
   
   In case the cli argument already contains a package as part of the action name (`package/myaction`), the cli arg would be used and the env var ignored. This would follow standard cli behavior patterns.
   
   **Notes**
   
   Sometimes the action name might also get dynamically generated. So maybe we should also support `WSK_ACTION` as well? What to specify on the cli then?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [openwhisk-wskdebug] alexkli commented on issue #10: Support reading package name from WSK_PACKAGE env var

Posted by GitBox <gi...@apache.org>.
alexkli commented on issue #10: Support reading package name from WSK_PACKAGE env var
URL: https://github.com/apache/openwhisk-wskdebug/issues/10#issuecomment-611876798
 
 
   In #37 I added support for `WSK_PACKAGE` as described above. I did not add `WSK_ACTION` as that's a speculative feature right now.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [openwhisk-wskdebug] alexkli closed issue #10: Support reading package name from WSK_PACKAGE env var

Posted by GitBox <gi...@apache.org>.
alexkli closed issue #10: Support reading package name from WSK_PACKAGE env var
URL: https://github.com/apache/openwhisk-wskdebug/issues/10
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services