Skip to content

编译报错提示go module找不到 #177

Open
@346673164

Description

Please attach the output of following commands.

cat /etc/*release
编译环境
CentOS Linux release 7.2 (Final)
Tencent tlinux release 2.2 (Final)
Tencent tlinux release 2.2 (Final)

使用lede的openwrt源码编译成功,clone本仓库至package后。build对应插件报错。
Finding targets
no required module provides package github.com/v2fly/v2ray-core/v4/main; to add it:
go get github.com/v2fly/v2ray-core/v4/main

Building targets
no Go files in /data/workspace/lede/build_dir/target-mipsel_24kc_musl/v2ray-core-full/v2ray-core-5.1.0/.go_work/build

make[2]: *** [Makefile:369: /data/workspace/lede/build_dir/target-mipsel_24kc_musl/v2ray-core-full/v2ray-core-5.1.0/.built] Error 1
make[2]: Leaving directory '/data/workspace/lede/package/v2ray-core'
time: package/v2ray-core/full/compile#0.37#0.42#4.73
ERROR: package/v2ray-core failed to build (build variant: full).
make[1]: *** [package/Makefile:116: package/v2ray-core/compile] Error 1
make[1]: Leaving directory '/data/workspace/lede'
make: *** [/data/workspace/lede/include/toplevel.mk:230: package/v2ray-core/compile] Error 2
是在是对makefile不熟,求教是什么原因

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