Skip to content

Commit 85e4193

Browse files
committed
test: Pull module TSPs from test branch
1 parent 15b5a3c commit 85e4193

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

fetchModuleSchemas.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ fs.mkdirSync(modulesDir)
1414

1515
for (const module of modules) {
1616
if (module.tsp === "") continue
17-
const res = await fetch(module.tsp)
17+
let url = undefined
18+
if (module.tsp.includes("blue-build/modules")) {
19+
url = module.tsp.replace("/main/", "/refs/heads/oneof-fix/")
20+
} else {
21+
url = module.tsp
22+
}
23+
24+
console.log(url)
25+
const res = await fetch(url)
1826
let text = await res.text()
1927
let last_line = ''
2028

0 commit comments

Comments
 (0)