修复发行构建工具链版本来源
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-17 18:23:40 +08:00
1 parent 9f65c60600
commit 3fd8facbdb
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -11,6 +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\)/)
const commands = [...content.matchAll(/cd ([^\s]+) && [^\n]*go build [^\n]* -o ([^\s]+) /g)]
assert.equal(commands.length, 12)
for (const [, directory, output] of commands) {