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

docker-compose up报错 #285

Open
qq516249940 opened this issue Oct 18, 2022 · 3 comments
Open

docker-compose up报错 #285

qq516249940 opened this issue Oct 18, 2022 · 3 comments

Comments

@qq516249940
Copy link

qq516249940 commented Oct 18, 2022

Status: Downloaded newer image for golang:1.18
 ---> 5fedf7be08ce
Step 13/35 : WORKDIR /opt/workflow/ferry
 ---> Running in 6a3add738221
Removing intermediate container 6a3add738221
 ---> d51818354ae0
Step 14/35 : COPY . .
 ---> 516cb9e41194
Step 15/35 : ARG GOPROXY="https://goproxy.cn"
 ---> Running in 161b3539bcd6
Removing intermediate container 161b3539bcd6
 ---> 6b7eed60c40f
Step 16/35 : RUN go mod download
 ---> Running in 41c726f9f962
Removing intermediate container 41c726f9f962
 ---> 652b3fee0383
Step 17/35 : RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ferry .
 ---> Running in 99c7d8c2e9b5
# ferry/apis/process
apis/process/task.go:201:23: undefined: Strings
ERROR: Service 'ferry' failed to build: The command '/bin/sh -c CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ferry .' returned a non-zero code: 2
@yangliuchang
Copy link

apis/process/task.go 的201行 Strings改为strings就好了

@toolatetosleep
Copy link

貌似是go的版本不对,源码里设置的1.18,有些依赖模块需要更高的1.22

@qq516249940
Copy link
Author

貌似是go的版本不对,源码里设置的1.18,有些依赖模块需要更高的1.22

有什么办法可以查看到 golang 模块的版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants