修复Go版本构建参数

This commit is contained in:
xuans committed 2026-09-24 19:47:52 +08:00
1 parent 2a1da95bfc
commit 3d38f4e3cc
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ const read = relative => readFile(path.join(root, relative), 'utf8')
test('跨平台构建输出不得越过项目 out 目录', async () => {
const content = await read('Makefile')
assert.match(content, /GO_VERSION \?= \$\(shell cd backend && go version\)/)
assert.match(content, /GO_VERSION \?= \$\(shell cd backend && go env GOVERSION\)/)
const commands = [...content.matchAll(/cd ([^\s]+) && [^\n]*go build [^\n]* -o ([^\s]+) /g)]
assert.equal(commands.length, 18)
for (const [, directory, output] of commands) {