mirror of
https://gitcode.com/JianFeeeee/homeagent-sdk.git
synced 2026-09-20 08:58:03 +00:00
plugindev: generate go.mod without local absolute replace; auto-download SDK module on first build
- init 生成的 go.mod 只 require SDK 线上版本(gitcode.com/JianFeeeee/homeagent-sdk v0.8.0),不再写本地绝对路径 replace - build 仅在显式指定(plg.json sdk_path 或 --sdk-path)时写入 replace - 首次构建自动执行 go mod download <sdk_module> 生成 go.sum(修复无 go.sum 构建失败) - 修正 ensureGoMod 模块名解析(支持 require 行与 require 块)
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -25,3 +25,6 @@ z_entry.c
|
||||
# Pre-built plugindev binaries in bin/ should be tracked
|
||||
!bin/plugindev*
|
||||
!bin/*.exe
|
||||
|
||||
# plugindev binary in tools/
|
||||
tools/plugindev/plugindev
|
||||
|
||||
Reference in New Issue
Block a user