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

编译文件报错 cannot load embed: malformed module path "embed": missing dot in first path element #11

Closed
luoyou opened this issue Sep 26, 2023 · 1 comment

Comments

@luoyou
Copy link

luoyou commented Sep 26, 2023

master 分支执行 go build -o build/debug/aidea-server cmd/main.go 报错:

build command-line-arguments: cannot load embed: malformed module path "embed": missing dot in first path element

执行 go mod tidy,报错如下:

github.com/mylxsw/aidea-server/internal/ai/baidu imports
        gopkg.in/resty.v1 imports
        golang.org/x/net/publicsuffix imports
        embed: malformed module path "embed": missing dot in first path element
github.com/mylxsw/aidea-server/cmd imports
        github.com/mylxsw/glacier/starter/app imports
        github.com/urfave/cli/v2/altsrc imports
        github.com/BurntSushi/toml imports
        io/fs: malformed module path "io/fs": missing dot in first path element
github.com/mylxsw/aidea-server/cmd imports
        github.com/mylxsw/glacier/starter/app imports
        github.com/urfave/cli/v2/altsrc imports
        github.com/BurntSushi/toml tested by
        github.com/BurntSushi/toml.test imports
        testing/fstest: malformed module path "testing/fstest": missing dot in first path element
@mylxsw
Copy link
Owner

mylxsw commented Sep 27, 2023

Go 版本太低,推荐使用最新版的 Golang,或者是按照 go.mod 中的要求,使用 1.20 及以上版本

@mylxsw mylxsw closed this as completed Oct 8, 2023
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

2 participants