@stll/oxlint-config 1.2.2 → 1.2.4
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/dist/toolchain-guard.cjs
CHANGED
|
@@ -13,7 +13,7 @@ let picomatch = require("picomatch");
|
|
|
13
13
|
picomatch = require_rolldown_runtime.__toESM(picomatch, 1);
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/toolchain-consumer-checks.ts
|
|
16
|
-
const consumerRunnerVersion = "1.2.
|
|
16
|
+
const consumerRunnerVersion = "1.2.4";
|
|
17
17
|
const consumerCheckWorkflow = "stella/.github/.github/workflows/package-consumer-compat.yml";
|
|
18
18
|
const record$7 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
19
19
|
const repositoryDirectory = (value) => typeof value === "string" && value !== "" && !value.includes("\\") && !value.includes("${{") && !value.split("").some((character) => {
|
package/dist/toolchain-guard.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { LineCounter, isAlias, isMap, isNode, isScalar, isSeq, parseAllDocuments
|
|
|
10
10
|
import picomatch from "picomatch";
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/toolchain-consumer-checks.ts
|
|
13
|
-
const consumerRunnerVersion = "1.2.
|
|
13
|
+
const consumerRunnerVersion = "1.2.4";
|
|
14
14
|
const consumerCheckWorkflow = "stella/.github/.github/workflows/package-consumer-compat.yml";
|
|
15
15
|
const record$7 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
16
16
|
const repositoryDirectory = (value) => typeof value === "string" && value !== "" && !value.includes("\\") && !value.includes("${{") && !value.split("").some((character) => {
|
|
@@ -42,7 +42,21 @@ apt_install() (
|
|
|
42
42
|
policy_state=installed
|
|
43
43
|
printf '%s\n' '#!/bin/sh' 'exit 101' > /usr/sbin/policy-rc.d
|
|
44
44
|
chmod 755 /usr/sbin/policy-rc.d
|
|
45
|
-
|
|
45
|
+
local package
|
|
46
|
+
for package in "$@"; do
|
|
47
|
+
if [[ "$package" == */* ]]; then
|
|
48
|
+
# apt cannot fetch local archives with --download-only, so their installs
|
|
49
|
+
# stay one call. Package triggers can be slow on cloud filesystems; the
|
|
50
|
+
# longer whole-call deadline covers them while Acquire timeouts still
|
|
51
|
+
# bound each network request.
|
|
52
|
+
APT_DEADLINE=600 DEBIAN_FRONTEND=noninteractive apt_network install -y --no-install-recommends "$@"
|
|
53
|
+
return
|
|
54
|
+
fi
|
|
55
|
+
done
|
|
56
|
+
# The network deadline covers downloads only; unpacking and maintainer scripts
|
|
57
|
+
# (for example locale generation or cluster creation) run offline afterwards.
|
|
58
|
+
DEBIAN_FRONTEND=noninteractive apt_network install -y --no-install-recommends --download-only "$@"
|
|
59
|
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --no-download "$@"
|
|
46
60
|
)
|
|
47
61
|
|
|
48
62
|
`;
|
|
@@ -296,7 +310,8 @@ apt_network() {
|
|
|
296
310
|
# --print-uris reads configured indexes without contacting their servers.
|
|
297
311
|
hosts="$(set -o pipefail; apt-get --print-uris update | awk -F/ '/^\047https?:\/\// { host=$3; sub(/.*@/, "", host); if (!seen[host]++) { printf "%s%s", separator, host; separator="," } }')" || return "$?"
|
|
298
312
|
[[ -n "$hosts" ]] || hosts='configured APT hosts'
|
|
299
|
-
|
|
313
|
+
# APT_DEADLINE: whole-call seconds; callers that also unpack packages may extend it.
|
|
314
|
+
network_run "$hosts" "${"$"}{APT_DEADLINE:-180}" apt-get -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 -o Acquire::Retries=3 -o APT::Update::Error-Mode=any "$@"
|
|
300
315
|
}
|
|
301
316
|
apt_refresh_for() {
|
|
302
317
|
# Skip the refresh only when the install downloads nothing: then no package
|