2456868764 opened a new issue, #55:
URL: https://github.com/apache/dubbo-kubernetes/issues/55

   - [ ] I have searched the 
[issues](https://github.com/apache/dubbo-kubernetes/issues) of this repository 
and believe that this is not a duplicate.
   - [ ] I have checked the 
[REAMDE](https://github.com/apache/dubbo-kubernetes/blob/master/README.md) of 
this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * dubboctl or control-plane version: xxx
   * Operating System version: xxx
   * Go version: xxx
   * Other information: xxx
   
   ### Steps to reproduce this issue
   
   1. git clone https://github.com/apache/dubbo-kubernetes.git 
   2. cd app/dubboctl 
   3. go build -o dubboctl main.go
   4. mv ./dubboctl ~/Downloads
   5. 删除 dubbo-kubernetes 项目目录
   6. ~/Downloads/dubboctl profile list
   
   ```
   Error: open /Users/jun/java/dubbo/dubbo-kubernetes/deploy/profiles: no such 
file or directory
   
   ```
   
   7. 发现问题在代码 app/dubboctl/identifier/env.go 
   
   ```
   var (
        _, b, _, _ = runtime.Caller(0)
        // Root folder of dubbo-admin
        // This relies on the fact this file is 3 levels up from the root; if 
this changes, adjust the path below
        Root            = filepath.Join(filepath.Dir(b), "../../..")
        Deploy          = filepath.Join(Root, "/deploy")
        Charts          = filepath.Join(Deploy, "/charts")
        Profiles        = filepath.Join(Deploy, "profiles")
        Addons          = filepath.Join(Deploy, "addons")
        AddonDashboards = filepath.Join(Addons, "dashboards")
        AddonManifests  = filepath.Join(Addons, "manifests")
   )
   
   ```
   
   The Root value is project source code directory when is build, so dubboctl 
can not run standalone.
   
   
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Result
   
   What do you expect from the above steps?
   
   ### Actual Result
   
   What actually happens?
   
   If there is an exception, please attach the exception trace:
   
   ```
   Just put your stack trace here!
   ```
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to