Skip to content

Commit 5e33dd4

Browse files
committed
make cache dir to prevent build failures
Some tools don’t think to `mkdir -p` directories that are usually there. Refs pkgxdev/pantry#4807
1 parent 749e90c commit 5e33dd4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

bin/cmd/build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ if (env['GITHUB_TOKEN']) {
121121
env['GH_TOKEN'] = env['GITHUB_TOKEN']
122122
}
123123

124+
config.path.cache.mkdir('p') // we’ve indeed found things to break without this
125+
124126
const proc = new Deno.Command(script.string, {clearEnv: true, env}).spawn()
125127
const rv = await proc.status
126128
if (!rv.success) throw new Error(`${rv.code} ${rv.signal}`)

bin/cmd/test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ if (env['GITHUB_TOKEN']) {
9999
env['GH_TOKEN'] = env['GITHUB_TOKEN']
100100
}
101101

102+
config.path.cache.mkdir('p') // we’ve indeed found things to break without this
103+
102104
const proc = new Deno.Command(script.string, {clearEnv: true, env}).spawn()
103105
const rv = await proc.status
104106
if (!rv.success) throw new Error(`${rv.code} ${rv.signal}`)

0 commit comments

Comments
 (0)