diff --git a/files/MergedEnvs.ts b/files/MergedEnvs.ts index c158503..948a4d9 100644 --- a/files/MergedEnvs.ts +++ b/files/MergedEnvs.ts @@ -78,6 +78,7 @@ export class ParentEnvs { posixDirs: Array, dynamicPosixDirs: Array, ) { + logger.debug("merge posix dirs", { posixDirs, dynamicPosixDirs }); this.#posixDirs.push(...posixDirs); this.#dynamicPosixDirs.push(...dynamicPosixDirs); } diff --git a/files/mod.ts b/files/mod.ts index e881dcf..bdc7619 100644 --- a/files/mod.ts +++ b/files/mod.ts @@ -646,10 +646,10 @@ export class Ghjkfile { prov, ); }), - ...base.posixDirs, ...final.posixDirs, - ...base.dynamicPosixDirs, + ...base.posixDirs, ...final.dynamicPosixDirs, + ...base.dynamicPosixDirs, // env hooks ...hooks, ], diff --git a/modules/envs/posix.ts b/modules/envs/posix.ts index 21f2d26..6dce0b0 100644 --- a/modules/envs/posix.ts +++ b/modules/envs/posix.ts @@ -22,6 +22,7 @@ export async function cookPosixEnv( }, ) { logger.debug("cooking env", envKey, { envDir }); + logger.debug("recipe", recipe); const reducedRecipe = await reduceStrangeProvisions(gcx, recipe); await $.removeIfExists(envDir); // create the shims for the user's environment diff --git a/modules/envs/reducer.ts b/modules/envs/reducer.ts index c27172d..26c5d9e 100644 --- a/modules/envs/reducer.ts +++ b/modules/envs/reducer.ts @@ -1,4 +1,5 @@ import { unwrapZodRes } from "../../port.ts"; +import logger from "../../utils/logger.ts"; import { execTask } from "../tasks/exec.ts"; import { getTasksCtx } from "../tasks/inter.ts"; import type { GhjkCtx } from "../types.ts"; @@ -66,6 +67,7 @@ export async function reduceStrangeProvisions( const reducerStore = getProvisionReducerStore(gcx); // Replace by `Object.groupBy` once the types for it are fixed const bins = {} as Record; + logger(import.meta).debug("provides", env.provides); for (const item of env.provides) { let bin = bins[item.ty]; if (!bin) {