sirpdboy / luci-app-ddns-go

luci-app-ddns-go 自动获得你的公网 IPv4 或 IPv6 地址,并解析到对应的域名服务。支持的域名服务商 Alidns(阿里云) Dnspod(腾讯云) Cloudflare 华为云 Callback 百度云 porkbun GoDaddy
495 stars 70 forks source link

编译报错 #59

Closed Eric-Joker closed 7 months ago

Eric-Joker commented 7 months ago

没看明白,是我上次编译的缓存没清干净?只make dirclean了 初次编译openwrt时使用make download将文件下载到了dl/ddns-go-.tar.gz,可见文件名最后一个“-”后面并没有正确跟上版本号(或哈希值),导致之后每次更新后make download均不会下载新版本的ddns-go(可能是认为文件已存在且并未校验),编译时工作文件夹基本为空然后报错编译失败。

go: warning: "github.com/jeessy2/ddns-go/v6/..." matched no packages

Building targets
go: cannot find main module, but found .git/config in /root/openwrt
        to create a module there, run:
        cd ../../../../.. && go mod init

make[3]: *** [Makefile:63: /root/openwrt/build_dir/target-arm_cortex-a9_musl_eabi/ddns-go-9aee04b5/.built] Error 1
make[3]: Leaving directory '/root/openwrt/feeds/kiddin9/ddns-go'
time: package/feeds/kiddin9/ddns-go/compile#0.52#0.79#1.30
    ERROR: package/feeds/kiddin9/ddns-go failed to build.
make[2]: *** [package/Makefile:129: package/feeds/kiddin9/ddns-go/compile] Error 1
make[2]: Leaving directory '/root/openwrt'
make[1]: *** [package/Makefile:123: /root/openwrt/staging_dir/target-arm_cortex-a9_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/root/openwrt'
make: *** [/root/openwrt/include/toplevel.mk:233:world] 错误 2

distclean会造成大量额外恢复工作甚至包括.config配置文件,对于第三方包的客制化修改内容也略微难以自动化实现。有啥现成的方法实现介于dirclean和distclean之间嘛

darkrain88 commented 7 months ago

修改一下啊

sirpdboy commented 7 months ago

好. 已经修改。