Skip to content

Commit dcc1ed5

Browse files
committed
wip
1 parent 134cc6c commit dcc1ed5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/cmd/build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { gum, rsync } from "brewkit/utils.ts"
55
import fix_up from "brewkit/porcelain/fix-up.ts"
66
import { Command } from "cliffy/command/mod.ts"
77
import fetch from "brewkit/porcelain/fetch.ts"
8-
import get_config from "brewkit/config.ts"
8+
import get_config, { platform_cache } from "brewkit/config.ts"
99
import { Path, hooks, utils } from "pkgx"
1010
import * as YAML from "deno/yaml/mod.ts"
1111
const { useConfig } = hooks
@@ -121,7 +121,7 @@ if (env['GITHUB_TOKEN']) {
121121
env['GH_TOKEN'] = env['GITHUB_TOKEN']
122122
}
123123

124-
platform_cache(config.path.home).mkdir('p') // we’ve indeed found things to break without this
124+
platform_cache(() => config.path.home).mkdir('p') // we’ve indeed found things to break without this
125125

126126
const proc = new Deno.Command(script.string, {clearEnv: true, env}).spawn()
127127
const rv = await proc.status

bin/cmd/test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import { Package, PackageRequirement, Path, hooks, utils } from "pkgx"
77
import { gum, find_pkgx, rsync, find_in_PATH } from "brewkit/utils.ts"
8-
import get_config from "brewkit/config.ts"
8+
import get_config, { platform_cache } from "brewkit/config.ts"
99
import * as YAML from "deno/yaml/mod.ts"
1010
import undent from "outdent"
1111
import useConfig from "libpkgx/hooks/useConfig.ts";
@@ -99,7 +99,7 @@ if (env['GITHUB_TOKEN']) {
9999
env['GH_TOKEN'] = env['GITHUB_TOKEN']
100100
}
101101

102-
platform_cache(config.path.home).mkdir('p') // we’ve indeed found things to break without this
102+
platform_cache(() => config.path.home).mkdir('p') // we’ve indeed found things to break without this
103103

104104
const proc = new Deno.Command(script.string, {clearEnv: true, env}).spawn()
105105
const rv = await proc.status

0 commit comments

Comments
 (0)