mrutkows commented on issue #437: Question about dependency name and the origin 
package name
URL: 
https://github.com/apache/incubator-openwhisk-wskdeploy/issues/437#issuecomment-327249111
 
 
   @daisy-ycguo  The intent was that the  dependency's <package_name> would be 
treated as a local alias for the actual package name as decribed in the 
referenced package.  The referenced package would have its own Manifest file 
that would include its actual Package name (and the one that would be used by 
the wskdeploy tool to replace the local alias).
   
   Using your example above, this would mean that the template author would 
have the following:
   ```
   dependencies: 
      dependency_name:
         location: github.com/daisy-ycguo/wskdeploy-test/helloworld
   sequences:
       mySequence:
         actions: dependency_name/helloworld
   ```
   
   Where the tool would be smart enough to treat ```dependency_name``` as alias 
for the actual package name (inside its manifest; in this case 
```myhelloworld```) and perform a replacement inside the tool for invoking 
openwhisk APIs.
   
   This would align with the concept of creating a local alias on "import" 
statements seen in many languages; for example, 
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
 uses "import x as y".  where y is the local name alias.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to