Skip to content

Commit b0bc22c

Browse files
committed
homedir involved
1 parent 0bb71c7 commit b0bc22c

File tree

3 files changed

+19
-85
lines changed

3 files changed

+19
-85
lines changed

deno.json

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -5,51 +5,9 @@
55
"compile-linux": "deno compile -A --target x86_64-unknown-linux-gnu --v8-flags=--max-old-space-size=8000 --include src/worker.ts --output no-issue-linux main.ts"
66
},
77
"imports": {
8+
"@std/async": "jsr:@std/async@^1.0.9",
89
"@std/fs": "jsr:@std/fs@^1.0.9",
9-
"src/": "./src/",
10-
"@cdktf/provider-aws": "npm:@cdktf/provider-aws@^19.25.0",
11-
"@cdktf/provider-azurerm": "npm:@cdktf/provider-azurerm@^12.23.0",
12-
"@cdktf/provider-google": "npm:@cdktf/provider-google@^14.13.1",
13-
"@cdktf/provider-helm": "npm:@cdktf/provider-helm@^10.2.0",
14-
"@cdktf/provider-kubernetes": "npm:@cdktf/provider-kubernetes@^11.6.0",
15-
"@cdktf/provider-local": "npm:@cdktf/provider-local@^10.1.0",
16-
"@cdktf/provider-random": "npm:@cdktf/provider-random@^11.0.2",
17-
"@cdktf/provider-time": "npm:@cdktf/provider-time@^10.1.1",
18-
"@cdktf/provider-tls": "npm:@cdktf/provider-tls@^10.0.0",
19-
"netmask": "npm:netmask@2.0.2",
20-
"@cliffy/ansi": "jsr:@cliffy/ansi@^1.0.0-rc.5",
21-
"@cliffy/command": "jsr:@cliffy/command@^1.0.0-rc.5",
22-
"@cliffy/prompt": "jsr:@cliffy/prompt@^1.0.0-rc.5",
23-
"@cndi/cdktf/modules/aws-eks-managed-node-group.ts": "jsr:@cndi/cdktf@^0.1.2/modules/aws-eks-managed-node-group.ts",
24-
"@cndi/cdktf/modules/aws-eks.ts": "jsr:@cndi/cdktf@^0.1.2/modules/aws-eks.ts",
25-
"@cndi/cdktf/modules/aws-iam-assumable-role-with-oidc.ts": "jsr:@cndi/cdktf@^0.1.2/modules/aws-iam-assumable-role-with-oidc.ts",
26-
"@cndi/cdktf/modules/aws-vpc.ts": "jsr:@cndi/cdktf@^0.1.2/modules/aws-vpc.ts",
27-
"@polyseam/cliffy-provider-gh-releases": "jsr:@polyseam/cliffy-provider-gh-releases@1.0.0-rc.11",
28-
"@polyseam/silky": "jsr:@polyseam/silky@^1.1.2",
29-
"@std/assert": "jsr:@std/assert@^0.221.0",
30-
"@std/async": "jsr:@std/async@^0.221.0",
31-
"@std/cli": "jsr:@std/cli@^0.221.0",
32-
"@std/collections": "jsr:@std/collections@^0.221.0",
33-
"@std/dotenv": "jsr:@std/dotenv@^0.221.0",
34-
"@std/io": "jsr:@std/io@^0.221.0",
35-
"@std/jsonc": "jsr:@std/jsonc@^0.221.0",
36-
"@std/path": "jsr:@std/path@^0.221.0",
37-
"@std/path/constants": "jsr:@std/path/constants@^0.221.0",
38-
"@std/semver": "jsr:@std/semver@^0.221.0",
39-
"@std/semver/compare": "jsr:@std/semver/compare.ts",
40-
"@std/streams": "jsr:@std/streams@^0.221.0",
41-
"@std/testing": "jsr:@std/testing@^0.221.0",
42-
"@std/yaml": "jsr:@std/yaml@^0.221.0",
43-
"cdktf": "npm:cdktf@^0.20.8",
44-
"child_process": "node:child_process",
45-
"constructs": "npm:constructs@10.3.0",
46-
"crypto-js": "npm:crypto-js@4.1.1",
47-
"lodash.get": "npm:lodash.get@4.4.2",
48-
"lodash.set": "npm:lodash.set@4.3.2",
49-
"lodash.unset": "npm:lodash.unset@4.5.2",
50-
"octokit": "npm:octokit@^3.1.2",
51-
"simple-git": "npm:simple-git@3.18.0",
52-
"test-deps": "./src/tests/deps.ts",
53-
"validator": "npm:validator@13.11.0"
10+
"@std/path": "jsr:@std/path@^1.0.8",
11+
"src/": "./src/"
5412
}
5513
}

deno.lock

Lines changed: 6 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/deno-compile-win-error.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1-
import { ensureDir } from "@std/fs";
1+
import { ensureDirSync } from "@std/fs";
2+
import { homedir } from "node:os";
3+
import * as path from "@std/path";
4+
import { delay } from "@std/async";
25

36
export async function denoCompileWinError() {
7+
await delay(1);
8+
const home = homedir();
9+
const whereTheProblemsAre = path.join(home, "problematic");
10+
411
const w = new Worker(import.meta.resolve("src/worker.ts"), {
512
type: "module",
613
});
714

815
try {
9-
await ensureDir("foo/bar/baz/omg");
16+
ensureDirSync(whereTheProblemsAre);
17+
1018
throw new Error(
1119
"this will not be logged if compiled\nfor windows on deno v2.1.5",
1220
);

0 commit comments

Comments
 (0)