Skip to content

Docker镜像构建不起来,有两处问题 #10

@HuoDaxia

Description

@HuoDaxia

1、tasks.go和server_api_extended.go有import为链接,构建时提示cannot find package

2、server.go编码有错误,用GBK和UTF-8打开都不正常,构建时提示空字符(11号的版本好像还是正常的,13号更新的版本编码有问题)

8.676 tasks.go:8:2: cannot find package
8.676 server_api_extended.go:13:2: cannot find package
8.676 server_api_extended.go:14:2: cannot find package
8.676 server_api_extended.go:15:2: cannot find package
8.676 read /app/web/server.go: unexpected NUL in input

failed to solve: process "/bin/sh -c go mod tidy && go build -ldflags="-s -w" -o stock-web ." did not complete successfully: exit code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions