Skip to content

Commit

Permalink
fix: all green
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohe-Am committed Dec 29, 2024
1 parent fa9a7a8 commit 7b7d8ea
Show file tree
Hide file tree
Showing 11 changed files with 184 additions and 177 deletions.
185 changes: 91 additions & 94 deletions .ghjk/deno.lock

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

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ Run the tests in the repository through the deno task:

```bash
$ deno task test
# this supports filtering
$ deno task test --filter envHooks
```

Most tests are isolated from each other using containers.
Set `$GHJK_TEST_E2E_TYPE` to `local` to use the local test runner.
6 changes: 3 additions & 3 deletions modules/ports/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class PortsModule extends ModuleBase<PortsLockEnt> {
updateInstall: {
short: "u",
long: "update-install",
value_name: "INSTALL_ID",
value_name: "INSTALL ID",
},
updateAll: {
short: "a",
Expand All @@ -157,7 +157,7 @@ export class PortsModule extends ModuleBase<PortsLockEnt> {
gcx,
pcx,
updateInstall as string | undefined,
updateAll as string | undefined,
updateAll as boolean | undefined,
);
},
},
Expand Down Expand Up @@ -203,7 +203,7 @@ async function outdatedCommand(
gcx: GhjkCtx,
pcx: PortsCtx,
updateInstallFlag?: string,
updateAllFlag?: string,
updateAllFlag?: boolean,
) {
const envsCtx = getEnvsCtx(gcx);
const envName = envsCtx.activeEnv;
Expand Down
10 changes: 2 additions & 8 deletions src/deno_systems/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ const flagsAndArgs = zod.record(
zod.union([
zod.string(),
zod.string().array(),
zod.string().array().array(),
zod.number(),
zod.boolean(),
]).optional(),
);

Expand Down Expand Up @@ -114,13 +115,6 @@ export type DenoSystemsRoot = {
systems: Record<string, DenoSystemCtor>;
};

export type CommandAction = (
args: {
flags: Record<string, string | undefined>;
args: Record<string, string | undefined>;
},
) => Promise<void> | void;

export type CliCommand = zod.input<typeof cliCommandActionBase> & {
sub_commands?: CliCommand[];
};
Expand Down
2 changes: 1 addition & 1 deletion src/ghjk/host/hashfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async fn file_digests(
.into_iter()
.map(|path| {
async move {
let path = tokio::fs::canonicalize(path).await?;
let path = std::path::absolute(path)?;
let hash = file_digest_hash(hcx, &path).await?;
let relative_path = pathdiff::diff_paths(path, &hcx.config.cwd).unwrap();
Ok((relative_path, hash))
Expand Down
2 changes: 1 addition & 1 deletion src/ghjk/systems/deno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ impl SystemInstance for DenoSystemInstance {

let cmds = cmds
.into_iter()
.map(|cmd| cmd.into_clap(self.scx.clone()))
.map(|cmd| cmd.convert(self.scx.clone()))
.collect();

Ok(cmds)
Expand Down
Loading

0 comments on commit 7b7d8ea

Please sign in to comment.