You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/06/09 07:46:05 UTC

[GitHub] [apisix-dashboard] BigBoyY opened a new issue #1939: cannot find package "github.com/apisix/manager-api/

BigBoyY opened a new issue #1939:
URL: https://github.com/apache/apisix-dashboard/issues/1939


   ## Issue description
    When using the source build manager - API make build in. / API/build go file 45th line
    ```
   cd ./api && go build -o ../output/manager-api -ldflags "${GOLDFLAGS}" ./cmd/manager && cd .. 
   
    ```
    Go to import github.com/apisix/manager-api/ in the package
   ```
   go build -o ../output/manager-api -ldflags '-X github.com/apisix/manager-api/internal/utils.version=2.6 -X github.com/apisix/manager-api/internal/utils.gitHash=73b5cfd' ./cmd/manager
   cmd/manager/main.go:23:2: cannot find package "github.com/apisix/manager-api/cmd" in any of:
           /usr/local/go/src/github.com/apisix/manager-api/cmd (from $GOROOT)
           /root/goweb/src/github.com/apisix/manager-api/cmd (from $GOPATH)
    cp ./api/conf/schema.json ./output/conf/schema.json
   cp: 无法获取"./api/conf/schema.json" 的文件状态(stat): 没有那个文件或目录  
   ```
    There is no project under github.com/apisix/. How should I build
    
   ## Expected behavior
   make build
   
   ## How to Reproduce
   
   1.  git clone -b release/2.6 https://github.com/apache/apisix-dashboard.git
   2. cd apisix-dashboard
   3. make build
   
   ## Screenshots
   <!-- Add screenshots to help explain your problem if applicable. -->
   
   ## Environment
   
   * apisix version : 2.6
   * OS :  6.1
   * OpenResty / Nginx version:  openresty/1.19.3.2
   * etcd version: 3.4.13
   * apisix-dashboard version: 2.6
   
   ## Additional context
   <!-- Do you want to solve this issue? or add any other context about the problem 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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] bzp2010 commented on issue #1939: cannot find package "github.com/apisix/manager-api/

Posted by GitBox <gi...@apache.org>.
bzp2010 commented on issue #1939:
URL: https://github.com/apache/apisix-dashboard/issues/1939#issuecomment-858242843


   You can try to open the go module feature and use the `GO111MODULE` environment variable.
   It seems that the golang compiler searches `GOPATH` for related packages and ignores the definitions in the `go.mod` file.
   
   I'm not sure that's what's causing your problem, but you can try it.


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



[GitHub] [apisix-dashboard] bzp2010 edited a comment on issue #1939: cannot find package "github.com/apisix/manager-api/

Posted by GitBox <gi...@apache.org>.
bzp2010 edited a comment on issue #1939:
URL: https://github.com/apache/apisix-dashboard/issues/1939#issuecomment-858289455






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



[GitHub] [apisix-dashboard] juzhiyuan closed issue #1939: cannot find package "github.com/apisix/manager-api/

Posted by GitBox <gi...@apache.org>.
juzhiyuan closed issue #1939:
URL: https://github.com/apache/apisix-dashboard/issues/1939


   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] bzp2010 commented on issue #1939: cannot find package "github.com/apisix/manager-api/

Posted by GitBox <gi...@apache.org>.
bzp2010 commented on issue #1939:
URL: https://github.com/apache/apisix-dashboard/issues/1939#issuecomment-858289455


   @BigBoyY You need to upgrade the Golang version. The go module feature can only be used in the minimum version 1.13.


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



[GitHub] [apisix-dashboard] BigBoyY commented on issue #1939: cannot find package "github.com/apisix/manager-api/

Posted by GitBox <gi...@apache.org>.
BigBoyY commented on issue #1939:
URL: https://github.com/apache/apisix-dashboard/issues/1939#issuecomment-858290302


   > You can try to open the go module feature and use the `GO111MODULE` environment variable.
   > It seems that the golang compiler searches `GOPATH` for related packages and ignores the definitions in the `go.mod` file.
   > 
   > I'm not sure that's what's causing your problem, but you can try it.
   
   I looked at the DockeFile and it actually did  “go env -w GO111MODULE=on”  I'll give it a try. Thank you very much


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



[GitHub] [apisix-dashboard] nic-chen commented on issue #1939: cannot find package "github.com/apisix/manager-api/

Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #1939:
URL: https://github.com/apache/apisix-dashboard/issues/1939#issuecomment-858277449


   hi @BigBoyY what is your GO version


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



[GitHub] [apisix-dashboard] BigBoyY commented on issue #1939: cannot find package "github.com/apisix/manager-api/

Posted by GitBox <gi...@apache.org>.
BigBoyY commented on issue #1939:
URL: https://github.com/apache/apisix-dashboard/issues/1939#issuecomment-858288654


   > 嗨@BigBoyY你的GO版本是什么
   
   go version go1.8.3 linux/amd64


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



[GitHub] [apisix-dashboard] BigBoyY commented on issue #1939: cannot find package "github.com/apisix/manager-api/

Posted by GitBox <gi...@apache.org>.
BigBoyY commented on issue #1939:
URL: https://github.com/apache/apisix-dashboard/issues/1939#issuecomment-858290618


   > hi @BigBoyY, You need to upgrade the Golang version. The go module feature can only be used in the minimum version 1.13.
   
   OK. I'll  try. Thank you very much


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