mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-02 21:59:35 +02:00
Compare commits
1 Commits
chore/node
...
MickLesk-p
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8df1ce16be |
18
.github/workflows/check-node-versions.yml
generated
vendored
18
.github/workflows/check-node-versions.yml
generated
vendored
@@ -336,18 +336,14 @@ jobs:
|
|||||||
issue_scripts+=("$slug|$our_version|$upstream_major|$upstream_hint|$repo")
|
issue_scripts+=("$slug|$our_version|$upstream_major|$upstream_hint|$repo")
|
||||||
drift_count=$((drift_count + 1))
|
drift_count=$((drift_count + 1))
|
||||||
elif [[ -n "$upstream_major" && "$our_version" != "$upstream_major" ]]; then
|
elif [[ -n "$upstream_major" && "$our_version" != "$upstream_major" ]]; then
|
||||||
if (( our_version < upstream_major )); then
|
# Check if engines.node is a minimum constraint that our version satisfies
|
||||||
# Check if engines.node is a minimum constraint that our version satisfies
|
if [[ -z "$DF_NODE_MAJOR" && "$ENGINES_IS_MINIMUM" == "true" ]] && \
|
||||||
if [[ -z "$DF_NODE_MAJOR" && "$ENGINES_IS_MINIMUM" == "true" ]] && \
|
version_satisfies_engines "$our_version" "$ENGINES_MIN_MAJOR" "$ENGINES_IS_MINIMUM"; then
|
||||||
version_satisfies_engines "$our_version" "$ENGINES_MIN_MAJOR" "$ENGINES_IS_MINIMUM"; then
|
status="✅ (engines: $ENGINES_NODE_RAW — ours: $our_version satisfies)"
|
||||||
status="✅ (engines: $ENGINES_NODE_RAW — ours: $our_version satisfies)"
|
|
||||||
else
|
|
||||||
status="🔸 Drift → upstream=$upstream_major ($upstream_hint)"
|
|
||||||
issue_scripts+=("$slug|$our_version|$upstream_major|$upstream_hint|$repo")
|
|
||||||
drift_count=$((drift_count + 1))
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
status="✅ Ahead of upstream ($upstream_major via $upstream_hint)"
|
status="🔸 Drift → upstream=$upstream_major ($upstream_hint)"
|
||||||
|
issue_scripts+=("$slug|$our_version|$upstream_major|$upstream_hint|$repo")
|
||||||
|
drift_count=$((drift_count + 1))
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -8227,11 +8227,13 @@ setup_ruby() {
|
|||||||
#
|
#
|
||||||
# Variables:
|
# Variables:
|
||||||
# RUST_TOOLCHAIN - Rust toolchain to install (default: stable)
|
# RUST_TOOLCHAIN - Rust toolchain to install (default: stable)
|
||||||
|
# RUST_PROFILE - Rust installation profile (default: default, e.g. minimal)
|
||||||
# RUST_CRATES - Comma-separated list of crates (e.g. "cargo-edit,wasm-pack@0.12.1")
|
# RUST_CRATES - Comma-separated list of crates (e.g. "cargo-edit,wasm-pack@0.12.1")
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
setup_rust() {
|
setup_rust() {
|
||||||
local RUST_TOOLCHAIN="${RUST_TOOLCHAIN:-stable}"
|
local RUST_TOOLCHAIN="${RUST_TOOLCHAIN:-stable}"
|
||||||
|
local RUST_PROFILE="${RUST_PROFILE:-default}"
|
||||||
local RUST_CRATES="${RUST_CRATES:-}"
|
local RUST_CRATES="${RUST_CRATES:-}"
|
||||||
local CARGO_BIN="${HOME}/.cargo/bin"
|
local CARGO_BIN="${HOME}/.cargo/bin"
|
||||||
|
|
||||||
@@ -8243,8 +8245,8 @@ setup_rust() {
|
|||||||
|
|
||||||
# Scenario 1: Rustup not installed - fresh install
|
# Scenario 1: Rustup not installed - fresh install
|
||||||
if ! command -v rustup &>/dev/null; then
|
if ! command -v rustup &>/dev/null; then
|
||||||
msg_info "Setup Rust ($RUST_TOOLCHAIN)"
|
msg_info "Setup Rust ($RUST_TOOLCHAIN, profile: $RUST_PROFILE)"
|
||||||
curl -fsSL https://sh.rustup.rs | $STD sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN" || {
|
curl -fsSL https://sh.rustup.rs | $STD sh -s -- -y --profile "$RUST_PROFILE" --default-toolchain "$RUST_TOOLCHAIN" || {
|
||||||
msg_error "Failed to install Rust"
|
msg_error "Failed to install Rust"
|
||||||
msg_error "Hint: Check connectivity to sh.rustup.rs and static.rust-lang.org"
|
msg_error "Hint: Check connectivity to sh.rustup.rs and static.rust-lang.org"
|
||||||
return 7
|
return 7
|
||||||
|
|||||||
Reference in New Issue
Block a user