Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nktpro committed Sep 3, 2024
1 parent 4451603 commit 166de7d
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 57 deletions.
14 changes: 7 additions & 7 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
}
},
"imports": {
"@std/assert": "jsr:@std/assert@^1.0.2",
"@std/async": "jsr:@std/async@^1.0.3",
"@std/fmt": "jsr:@std/fmt@^1.0.0",
"@std/fs": "jsr:@std/fs@^1.0.1",
"@std/path": "jsr:@std/path@^1.0.2",
"@std/yaml": "jsr:@std/yaml@^1.0.3",
"@std/assert": "jsr:@std/assert@^1.0.3",
"@std/async": "jsr:@std/async@^1.0.4",
"@std/fmt": "jsr:@std/fmt@^1.0.1",
"@std/fs": "jsr:@std/fs@^1.0.2",
"@std/path": "jsr:@std/path@^1.0.3",
"@std/yaml": "jsr:@std/yaml@^1.0.4",
"@wok/typebox": "jsr:@wok/typebox@^0.33.7",
"@wok/utils": "jsr:@wok/utils@^1.8.0"
"@wok/utils": "jsr:@wok/utils@^1.12.0"
}
}
77 changes: 38 additions & 39 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
pkgs = import nixpkgs { inherit system; };
hotPotPkgs = hotPot.packages.${system};
deno = hotPotPkgs.deno;
# denort = hotPotPkgs.denort;
vscodeSettings = pkgs.writeTextFile {
name = "vscode-settings.json";
text = builtins.toJSON {
Expand Down Expand Up @@ -65,9 +66,11 @@
hasSuffix "/deno.json" path
);
};
deno-cache = pkgs.callPackage hotPot.lib.denoAppCache {
inherit name src deno;
cacheArgs = "./src/**/*.ts";
deno-cache = pkgs.callPackage hotPot.lib.denoAppCache2 {
inherit deno name src;
config-file = ./deno.json;
lock-file = ./deno.lock;
deno-gen-cache-entry = hotPotPkgs.deno-gen-cache-entry;
};
built = pkgs.callPackage hotPot.lib.denoAppBuild
{
Expand Down Expand Up @@ -122,7 +125,9 @@
};
defaultPackage = jetski;
packages = {
inherit jetski;
inherit
jetski
;
};
}
);
Expand Down
2 changes: 1 addition & 1 deletion src/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ export { parse as parseYaml, stringify as stringifyYaml } from "@std/yaml";
export { exists as fsExists } from "@std/fs/exists";
export { ensureFile } from "@std/fs/ensure-file";
export { assertExists } from "@std/assert/exists";
export { memoizePromise } from "@wok/utils/async";
export { memoize } from "@wok/utils/memoize";
export { delay } from "@std/async/delay";
6 changes: 3 additions & 3 deletions src/multipass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
ExecAbortedError,
gray,
inheritExec,
memoizePromise,
memoize,
NonZeroExitError,
printErrLines,
printOutLines,
Expand All @@ -18,8 +18,8 @@ import type { InstanceConfig, JoinMetadata, ServerInstanceConfig } from "./types
import { InstanceState, MultipassInfo } from "./types.ts";
import { err, getExternalIp, log, ok, print } from "./utils.ts";

export const multipassBin = memoizePromise(() => locateBin("multipass"));
export const sshBin = memoizePromise(() => locateBin("ssh"));
export const multipassBin = memoize(() => locateBin("multipass"));
export const sshBin = memoize(() => locateBin("ssh"));

export async function locateBin(name: string): Promise<string> {
try {
Expand Down

0 comments on commit 166de7d

Please sign in to comment.