d4rkstar opened a new issue, #84:
URL: https://github.com/apache/openserverless/issues/84

   - [X] I have searched the 
[issues](https://github.com/apache/openserverless/issues) of this repository 
and believe that this is not a duplicate.
   
   ### Ⅰ. Issue Description
   When `ops` is executed from npx, it fails to install prerequisites.
   
   ### Ⅱ. Describe what happened
   I tried to use ops from apache-openserverless-cli npm package:
   
   ```
   npm-test $ npm install apache-openserverless-cli
   
   added 80 packages, and audited 82 packages in 3s
   
   21 packages are looking for funding
     run `npm fund` for details
   
   found 0 vulnerabilities
   npm-test $ npx ops -t
   Welcome to ops, the all-mighty, extensibile apache OPenServerless CLI Tool.
   General syntax:
      ops -<tool>  <args>...
      ops <task>   <args>...
   Essential tools (chek -h and -t for more):
   -h | -help    list tools      (embedded tools, prefixed by '-', no download)
   -v | -version current version (always mention this when asking for help)
   -t | -tasks   list tasks      (show top level tasks, download if needed)
   -i | -info    CLI infos       (show the cli environment)
   -u | -update  download latest (get the latest tasks and prerequisites)
   -c | -config  manage config   (openserverless server configuration)
   -l | -login   access system   (required to access openserverless)
   -reset        clean downloads (if nothing works, try this)
   
   ensuring prerequisite rg 14.1.0
   error in prereq rg: failed to download rg version 14.1.0
   ensuring prerequisite 7zz 2407
   error in prereq 7zz: failed to download 7zz version 2407
   ensuring prerequisite coreutils 0.0.27
   error in prereq coreutils: failed to download coreutils version 0.0.27
   ensuring prerequisite bun 1.1.27
   error in prereq bun: failed to download bun version 1.1.27
   ensuring prerequisite kubectl 1.30.3
   ```
   
   After enabling DEBUG and TRACE, i can see that the ops binary is unable to 
resolve correctly the symlink created by npm:
   
   ```
   $ npx ops -t
   [TRACE:  WSK_RUNTIMES_JSON len= 2137]
   [TRACE:  found /Users/bruno/tmp/oss-projects/npm-test/node_modules/.bin/ops]
   [TRACE:  resolving link to 
../apache-openserverless-cli/node_modules/.bin/ops]
   ```
   
   
   ### Ⅲ. Describe what you expected to happen
   
   
   ### Ⅳ. How to reproduce it (as minimally and precisely as possible)
   
   1. remove ~/.ops folder 
   2. npx apache-openserverless-cli -t
   
   
   ### Ⅴ. Anything else we need to know?
   nothing
   
   ### Ⅵ. Environment:
   
   - K8S Runtime and version: none
   - OPS CLI version:  0.1.0-2409121919.dev
   - OS: Mac and Linux


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to