mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-07-18 00:57:55 +00:00
fix(deb): bump nodejs Depends to >= 25; install Node 25 in smoke test (#7754)
Followup to #7752. That PR raised `src/package.json` engines.node to
>=25.0.0 (matching the workspace root) but missed three places that
still encoded the previous Node 22+ floor — so the deb-package CI
broke at sha 33b616b9:
packaging/nfpm.yaml declared `Depends: nodejs (>= 22)`, so the deb
installed cleanly on a Node 22-or-24 system. .github/workflows/
deb-package.yml's smoke test then explicitly installed Node 24
(`NODE_MAJOR=24`), `dpkg -i` succeeded, and `systemctl start
etherpad` crashlooped with:
[ERROR] settings - Running Etherpad on Node v24.15.0 is not
supported. Please upgrade at least to Node 25.0.0
(The misleading `ENOENT: ... lstat '/opt/etherpad/.git'` line above
it is a benign WARN from getGitCommit(), wrapped in try/catch — not
the cause.)
This commit aligns everything to Node 25:
- packaging/nfpm.yaml: `nodejs (>= 22)` → `nodejs (>= 25)` in the
top-level `depends:` and the deb / rpm overrides (3 occurrences).
- .github/workflows/deb-package.yml: smoke-test `NODE_MAJOR=24` →
`25`, comments updated to match.
- packaging/README.md: doc points users at `node_25.x` NodeSource
apt repo (Node 25 isn't in most distro repos yet, so the
`setup_lts.x` shortcut no longer suffices).
- packaging/bin/etherpad: comment about the apt declare updated to
match.
No source code changes — Etherpad's own NodeVersion check already
reads engines.node from src/package.json and rejects anything older.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
33b616b925
commit
9bdbb3ee95
4 changed files with 19 additions and 13 deletions
10
.github/workflows/deb-package.yml
vendored
10
.github/workflows/deb-package.yml
vendored
|
|
@ -128,16 +128,16 @@ jobs:
|
|||
run: |
|
||||
set -eux
|
||||
# Ubuntu's default apt nodejs is 18 — too old for our
|
||||
# `Depends: nodejs (>= 22)`. Add NodeSource's apt repo
|
||||
# `Depends: nodejs (>= 25)`. Add NodeSource's apt repo
|
||||
# explicitly (key + sources.list) instead of `curl | sudo bash`
|
||||
# so we don't execute network-fetched code as root.
|
||||
NODE_MAJOR=24
|
||||
NODE_MAJOR=25
|
||||
# GitHub runner images often ship a NodeSource node_20.x list
|
||||
# preinstalled (sometimes as a .sources deb822 file). Wipe any
|
||||
# existing nodesource entries so the only Node candidate apt sees
|
||||
# is our node_24.x repo. Otherwise `apt-get install -y nodejs`
|
||||
# is our node_25.x repo. Otherwise `apt-get install -y nodejs`
|
||||
# picks the higher-version 20.x build that's already cached and
|
||||
# `dpkg -i` then fails on `Depends: nodejs (>= 22)`.
|
||||
# `dpkg -i` then fails on `Depends: nodejs (>= 25)`.
|
||||
sudo rm -f /etc/apt/sources.list.d/nodesource.list \
|
||||
/etc/apt/sources.list.d/nodesource.sources \
|
||||
/etc/apt/preferences.d/nodesource \
|
||||
|
|
@ -147,7 +147,7 @@ jobs:
|
|||
| sudo gpg --dearmor --yes -o "${KEYRING}"
|
||||
echo "deb [signed-by=${KEYRING}] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" \
|
||||
| sudo tee /etc/apt/sources.list.d/nodesource.list
|
||||
# Pin nodejs to the 24.x line so neither Ubuntu's noble-updates
|
||||
# Pin nodejs to the 25.x line so neither Ubuntu's noble-updates
|
||||
# 20.x nor any leftover NodeSource cache can win the resolver.
|
||||
printf 'Package: nodejs\nPin: version %s.*\nPin-Priority: 1001\n' "${NODE_MAJOR}" \
|
||||
| sudo tee /etc/apt/preferences.d/nodesource >/dev/null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue