Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source-based installation fails #2673

Closed
Cheol-Soon-Choi opened this issue Nov 29, 2022 · 4 comments
Closed

Source-based installation fails #2673

Cheol-Soon-Choi opened this issue Nov 29, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@Cheol-Soon-Choi
Copy link

Cheol-Soon-Choi commented Nov 29, 2022

Issue description

Installing according to https://apisix.apache.org/docs/dashboard/2.13/install/#source

An error occurred in the [make build] step.

Expected behavior

install finished

How to Reproduce

https://apisix.apache.org/docs/dashboard/2.13/install/#source

Screenshots

스크린샷 2022-11-29 오전 11 07 09

Environment

  • apisix version (cmd: apisix version): 2.15.1
  • OS (cmd: uname -a): Ubuntu
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V): openresty/1.21.4.1
  • etcd version, if have (cmd: run etcd --version): 3.5.4
  • apisix-dashboard version, if have: release/2.13
  • Browser version, if have:

Additional context

Is the goscript the problem? @Baoyuantop

@Cheol-Soon-Choi Cheol-Soon-Choi added the bug Something isn't working label Nov 29, 2022
@ronething
Copy link
Contributor

ronething commented Dec 1, 2022

@Cheol-Soon-Choi Hi, what version of go are you using? package io/fs came into go since 1.16, if your go version is less than 1.16, then may cause err like below.

$ go version
go version go1.14 linux/amd64
$ ./api/build.sh
/home/codespace/.gvm/pkgsets/go1.14/global/pkg/mod/go.etcd.io/etcd/client/pkg/[email protected]/fileutil/filereader.go:20:2: package io/fs is not in GOROOT (/home/codespace/.gvm/gos/go1.14/src/io/fs)
+ cp ./api/conf/schema.json ./output/conf/schema.json
cp: cannot stat './api/conf/schema.json': No such file or directory

@Baoyuantop
Copy link
Contributor

Hi @Cheol-Soon-Choi, if there are still problems, you can reopen

@zqq-nuli
Copy link

zqq-nuli commented Apr 2, 2024

hello
My go version is 1.16.7 but I still encountered the same error. The specific error message is as follows

error for make build

root@VM-0-15-ubuntu:/home/lighthouse/apisix-dashboard# go version
go version go1.16.7 linux/amd64
+ go build -o ../output/manager-api -ldflags '-X github.com/apisix/manager-api/internal/utils.version=3.0.1 -X github.com/apisix/manager-api/internal/utils.gitHash=4133aa1' ./main.go
go: github.com/gin-gonic/[email protected] requires
        github.com/kr/[email protected]: missing go.sum entry; to add it:
        go mod download github.com/kr/text
+ cp ./api/conf/schema.json ./output/conf/schema.json
cp: cannot stat './api/conf/schema.json': No such file or directory
make: *** [Makefile:39: build] Error 1

@zqq-nuli
Copy link

zqq-nuli commented Apr 2, 2024

Hi @Cheol-Soon-Choi, if there are still problems, you can reopen

hello,I want your help,thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants