@huaqiu/hardware-artifacts 0.7.19 → 0.7.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.mjs +2 -2
- package/package.json +1 -1
- package/src/toolchain/manager.ts +4 -2
package/lib/index.mjs
CHANGED
|
@@ -2069,9 +2069,9 @@ async function defaultVersionProbe(executable, tool) {
|
|
|
2069
2069
|
});
|
|
2070
2070
|
});
|
|
2071
2071
|
}
|
|
2072
|
-
/** The per-user toolchain root, following the
|
|
2072
|
+
/** The per-user toolchain root, following the harness-home convention (§8.1). */
|
|
2073
2073
|
function defaultManagedRoot(env = process.env) {
|
|
2074
|
-
const home = env.DSH_HOME !== void 0 && env.DSH_HOME !== "" ? resolve(env.DSH_HOME) : join(homedir(), ".
|
|
2074
|
+
const home = env.DSH_HOME !== void 0 && env.DSH_HOME !== "" ? resolve(env.DSH_HOME) : join(homedir(), ".huaqiu-eda");
|
|
2075
2075
|
return join(home, "toolchains");
|
|
2076
2076
|
}
|
|
2077
2077
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huaqiu/hardware-artifacts",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Hardware Engineering host capability: deterministic artifact discovery, installation resolution, native application launch and compact agent context.",
|
|
6
6
|
"license": "MIT",
|
package/src/toolchain/manager.ts
CHANGED
|
@@ -158,9 +158,11 @@ async function defaultVersionProbe(executable: string, tool: ToolchainId): Promi
|
|
|
158
158
|
})
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
/** The per-user toolchain root, following the
|
|
161
|
+
/** The per-user toolchain root, following the harness-home convention (§8.1). */
|
|
162
162
|
export function defaultManagedRoot(env: Readonly<Record<string, string | undefined>> = process.env): string {
|
|
163
|
-
|
|
163
|
+
// `$DSH_HOME` wins; the fallback is this product's own root (`~/.huaqiu-eda`),
|
|
164
|
+
// not the upstream `~/.dsh` — a machine that runs both must not mix them.
|
|
165
|
+
const home = env.DSH_HOME !== undefined && env.DSH_HOME !== '' ? resolve(env.DSH_HOME) : join(homedir(), '.huaqiu-eda')
|
|
164
166
|
return join(home, 'toolchains')
|
|
165
167
|
}
|
|
166
168
|
|