Skip to content

Commit 788a674

Browse files
committed
We can only write to /opt so there we go
We have to bake in our write dirs, maybe sometime we can figure out how to make our tmp dir a symlink to the sysmte tmpdir since we get clean up that way
1 parent 5021c9a commit 788a674

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Change how your team works.
1616
 
1717

1818

19-
# tea/cli 0.3.2
19+
# tea/cli 0.3.3
2020

2121
tea is a universal virtual‑environment manager:
2222

@@ -528,7 +528,7 @@ If you got this error message, you need to install tea:
528528
| Project | Version | Lock |
529529
|-------------|---------|--------|
530530
| deno.land | ^1.18 | 1.20.3 |
531-
| tea.xyz | ^0 | 0.3.2 |
531+
| tea.xyz | ^0 | 0.3.3 |
532532
533533
534534
[pantry]: ../../../../pantry

‎src/types/Path.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ export default class Path {
170170
}
171171

172172
static mktemp(): Path {
173-
const rv = Deno.makeTempDirSync({ prefix: "tea" })
173+
const dir = "/opt/tea.xyz/tmp"
174+
Deno.mkdirSync(dir, {recursive: true})
175+
const rv = Deno.makeTempDirSync({
176+
prefix: "tea", dir
177+
})
174178
return new Path(rv)
175179
}
176180

‎tests/utils.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export async function shout({ tea: args, cwd }: { tea: string[], cwd?: Path }) {
66
'deno',
77
'run',
88
'--allow-env', '--allow-read', '--allow-run',
9-
`--allow-write=${Deno.env.get('TMPDIR')}`,
9+
'--allow-write=/opt',
1010
`--import-map=${srcroot}/import-map.json`,
1111
`${srcroot}/src/app.ts`,
1212
...args

0 commit comments

Comments
 (0)