Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Harden web/docs/desktop dependency installs

Anand Baburajan057f3aeed34f
diff --git a/.github/workflows/desktop-lint.yml b/.github/workflows/desktop-lint.yml
index c384cb2268..f0ae5b0d93 100644
--- a/.github/workflows/desktop-lint.yml
+++ b/.github/workflows/desktop-lint.yml
@@ -27,6 +27,11 @@ jobs:
cache: "yarn"
cache-dependency-path: "desktop/yarn.lock"
- - run: yarn install
+ - name: Activate Yarn 1.22.22
+ run: |
+ corepack enable
+ corepack prepare [email protected] --activate
+
+ - run: yarn install --frozen-lockfile
- run: yarn lint
diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml
index de61e5c955..4102ddf810 100644
--- a/.github/workflows/docs-deploy.yml
+++ b/.github/workflows/docs-deploy.yml
@@ -32,8 +32,13 @@ jobs:
cache: "yarn"
cache-dependency-path: "docs/yarn.lock"
+ - name: Activate Yarn 1.22.22
+ run: |
+ corepack enable
+ corepack prepare [email protected] --activate
+
- name: Install dependencies
- run: yarn install
+ run: yarn install --frozen-lockfile
- name: Build production site
# Will create docs/.vitepress/dist
diff --git a/.github/workflows/docs-verify-build.yml b/.github/workflows/docs-verify-build.yml
index afede699b6..1b41837e92 100644
--- a/.github/workflows/docs-verify-build.yml
+++ b/.github/workflows/docs-verify-build.yml
@@ -32,8 +32,13 @@ jobs:
cache: "yarn"
cache-dependency-path: "docs/yarn.lock"
+ - name: Activate Yarn 1.22.22
+ run: |
+ corepack enable
+ corepack prepare [email protected] --activate
+
- name: Install dependencies
- run: yarn install
+ run: yarn install --frozen-lockfile
- name: Build production site
run: yarn build
diff --git a/.github/workflows/ensu-release.yml b/.github/workflows/ensu-release.yml
index 2531314df4..69fbb4027d 100644
--- a/.github/workflows/ensu-release.yml
+++ b/.github/workflows/ensu-release.yml
@@ -59,6 +59,11 @@ jobs:
cache: "yarn"
cache-dependency-path: "web/yarn.lock"
+ - name: Activate Yarn 1.22.22
+ run: |
+ corepack enable
+ corepack prepare [email protected] --activate
+
# Pin to 1.93.0: Rust 1.94.0 has a trait glob-import regression
# that breaks wry 0.24.x (SettingsExt not found via traits::*).
- name: Install Rust 1.93.0
diff --git a/.github/workflows/locker-web-deploy.yml b/.github/workflows/locker-web-deploy.yml
index fd467ded8b..a6f516cfe8 100644
--- a/.github/workflows/locker-web-deploy.yml
+++ b/.github/workflows/locker-web-deploy.yml
@@ -27,6 +27,11 @@ jobs:
cache: "yarn"
cache-dependency-path: "web/yarn.lock"
+ - name: Activate Yarn 1.22.22
+ run: |
+ corepack enable
+ corepack prepare [email protected] --activate
+
- name: Install dependencies
run: yarn install --frozen-lockfile
diff --git a/.github/workflows/web-deploy-2of3.yml b/.github/workflows/web-deploy-2of3.yml
index 60e8f22ecd..afc63d0b57 100644
--- a/.github/workflows/web-deploy-2of3.yml
+++ b/.github/workflows/web-deploy-2of3.yml
@@ -27,6 +27,11 @@ jobs:
cache: "yarn"
cache-dependency-path: "web/yarn.lock"
+ - name: Activate Yarn 1.22.22
+ run: |
+ corepack enable
+ corepack prepare [email protected] --activate
+
- name: Install dependencies
run: yarn install --frozen-lockfile
diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.yml
index 94a9d9ef06..3051cc3a81 100644
--- a/.github/workflows/web-deploy.yml
+++ b/.github/workflows/web-deploy.yml
@@ -43,6 +43,11 @@ jobs:
cache: "yarn"
cache-dependency-path: "web/yarn.lock"
+ - name: Activate Yarn 1.22.22
+ run: |
+ corepack enable
+ corepack prepare [email protected] --activate
+
- name: Install dependencies
run: yarn install --frozen-lockfile
diff --git a/.github/workflows/web-lint.yml b/.github/workflows/web-lint.yml
index f60e24d559..755cac05f3 100644
--- a/.github/workflows/web-lint.yml
+++ b/.github/workflows/web-lint.yml
@@ -35,6 +35,11 @@ jobs:
cache: "yarn"
cache-dependency-path: "web/yarn.lock"
+ - name: Activate Yarn 1.22.22
+ run: |
+ corepack enable
+ corepack prepare [email protected] --activate
+
- run: yarn install --frozen-lockfile
- run: yarn build:wasm
diff --git a/desktop/README.md b/desktop/README.md
index 03abdf43a4..bcec4e590a 100644
--- a/desktop/README.md
+++ b/desktop/README.md
@@ -20,9 +20,12 @@ cd ente/desktop
Install dependencies (requires Yarn v1):
```sh
-yarn install
+yarn install --frozen-lockfile
```
+Use plain `yarn install` only when you are intentionally updating dependencies
+and reviewing the resulting `yarn.lock` changes.
+
Now you can run in development mode (supports hot reload for the renderer
process)
diff --git a/desktop/docs/README.md b/desktop/docs/README.md
index 412e7f61c8..ba98227776 100644
--- a/desktop/docs/README.md
+++ b/desktop/docs/README.md
@@ -3,7 +3,7 @@
If you just want to run the Ente Photos desktop app locally or develop it, you
can do:
- yarn install
+ yarn install --frozen-lockfile
yarn dev
The docs in this directory provide more details that some developers might find
diff --git a/desktop/docs/dev.md b/desktop/docs/dev.md
index f17ad9db70..3ea6d8c7ea 100644
--- a/desktop/docs/dev.md
+++ b/desktop/docs/dev.md
@@ -28,8 +28,8 @@ can be useful during development.
When using native node modules (those written in C/C++), we need to ensure they
are built against `electron`'s packaged `node` version. We use
[electron-builder](https://www.electron.build/cli)'s `install-app-deps` command
-to rebuild those modules automatically after each `yarn install` by invoking it
-in as the `postinstall` step in our package.json.
+to rebuild those modules automatically after each dependency install by
+invoking it in as the `postinstall` step in our package.json.
### lint, lint-fix
diff --git a/desktop/package.json b/desktop/package.json
index e5490f9455..d4d93354a9 100644
--- a/desktop/package.json
+++ b/desktop/package.json
@@ -10,50 +10,50 @@
"build": "yarn build-renderer && yarn build-main",
"build-main": "tsc && electron-builder",
"build-main:quick": "tsc && electron-builder --dir --config.compression=store --config.mac.identity=null",
- "build-renderer": "cross-env-shell _ENTE_IS_DESKTOP=1 \"cd ../web && yarn install && yarn build:photos && cd ../desktop && shx rm -rf out && shx cp -r ../web/apps/photos/out out\"",
+ "build-renderer": "cross-env-shell _ENTE_IS_DESKTOP=1 \"cd ../web && yarn install --frozen-lockfile && yarn build:photos && cd ../desktop && shx rm -rf out && shx cp -r ../web/apps/photos/out out\"",
"build:ci": "yarn build-renderer && tsc",
"build:quick": "yarn build-renderer && yarn build-main:quick",
"dev": "concurrently --kill-others --success first --names 'main,rndr' \"yarn dev-main\" \"yarn dev-renderer\"",
"dev-main": "tsc && electron .",
- "dev-renderer": "cross-env-shell _ENTE_IS_DESKTOP=1 \"cd ../web && yarn install && yarn workspace photos next dev -p 3008\"",
+ "dev-renderer": "cross-env-shell _ENTE_IS_DESKTOP=1 \"cd ../web && yarn install --frozen-lockfile && yarn workspace photos next dev -p 3008\"",
"postinstall": "electron-builder install-app-deps",
"lint": "yarn prettier --check --log-level warn . && yarn eslint && yarn tsc",
"lint-fix": "yarn prettier --write --log-level warn . && yarn eslint && yarn tsc",
"prepare": "node scripts/vips.js"
},
"dependencies": {
- "any-shell-escape": "^0.1.1",
- "auto-launch": "^5.0.6",
- "chokidar": "^4.0.3",
- "clip-bpe-js": "^0.0.6",
- "comlink": "^4.4.2",
- "compare-versions": "^6.1.1",
- "electron-log": "^5.4.3",
- "electron-store": "^11.0.2",
- "electron-updater": "^6.6.5",
- "ffmpeg-static": "^5.2.0",
- "lru-cache": "^11.2.2",
- "next-electron-server": "^1.0.0",
- "node-stream-zip": "^1.15.0",
+ "any-shell-escape": "0.1.1",
+ "auto-launch": "5.0.6",
+ "chokidar": "4.0.3",
+ "clip-bpe-js": "0.0.6",
+ "comlink": "4.4.2",
+ "compare-versions": "6.1.1",
+ "electron-log": "5.4.3",
+ "electron-store": "11.0.2",
+ "electron-updater": "6.6.5",
+ "ffmpeg-static": "5.2.0",
+ "lru-cache": "11.2.2",
+ "next-electron-server": "1.0.0",
+ "node-stream-zip": "1.15.0",
"onnxruntime-node": "1.22.0-rev",
- "zod": "^4.1.12"
+ "zod": "4.1.12"
},
"devDependencies": {
- "@eslint/js": "^9.30.1",
- "@types/auto-launch": "^5.0.5",
- "@types/node": "^24.12.0",
- "ajv": "^8.17.1",
- "concurrently": "^9.2.1",
- "cross-env": "^10.1.0",
- "electron": "^41.0.0",
+ "@eslint/js": "9.30.1",
+ "@types/auto-launch": "5.0.5",
+ "@types/node": "24.12.0",
+ "ajv": "8.17.1",
+ "concurrently": "9.2.1",
+ "cross-env": "10.1.0",
+ "electron": "41.0.0",
"electron-builder": "26.0.14",
- "eslint": "^9",
+ "eslint": "9.9.1",
"prettier": "3.6.2",
- "prettier-plugin-organize-imports": "^4.3.0",
- "prettier-plugin-packagejson": "^2.5.19",
- "shx": "^0.4.0",
- "typescript": "^5.8.3",
- "typescript-eslint": "^8.35.1"
+ "prettier-plugin-organize-imports": "4.3.0",
+ "prettier-plugin-packagejson": "2.5.19",
+ "shx": "0.4.0",
+ "typescript": "5.8.3",
+ "typescript-eslint": "8.35.1"
},
"packageManager": "[email protected]",
"productName": "ente"
diff --git a/desktop/yarn.lock b/desktop/yarn.lock
index 6cd93e4e1e..8cd6e130d4 100644
--- a/desktop/yarn.lock
+++ b/desktop/yarn.lock
@@ -180,7 +180,7 @@
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.9.1.tgz#4a97e85e982099d6c7ee8410aacb55adaa576f06"
integrity sha512-xIDQRsfg5hNBqHz04H1R3scSVwmI+KUbqjsQKHKQ1DAUSaUjYPReZZmS/5PNiKu1fUvzDd6H7DEDKACSEhu+TQ==
-"@eslint/js@^9.30.1":
+"@eslint/[email protected]", "@eslint/js@^9.30.1":
version "9.30.1"
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.30.1.tgz#ebe9dd52a38345784c486300175a28c6013c088d"
integrity sha512-zXhuECFlyep42KZUhWjfvsmXGX39W8K8LFb8AWXM9gSV9dQB+MrJGLKvW6Zw0Ggnbpw0VHTtrhFXYe3Gym18jg==
@@ -310,7 +310,7 @@
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf"
integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==
-"@types/auto-launch@^5.0.5":
+"@types/[email protected]", "@types/auto-launch@^5.0.5":
version "5.0.5"
resolved "https://registry.yarnpkg.com/@types/auto-launch/-/auto-launch-5.0.5.tgz#439ed36aaaea501e2e2cfbddd8a20c366c34863b"
integrity sha512-/nGvQZSzM/pvCMCh4Gt2kIeiUmOP/cKGJbjlInI+A+5MoV/7XmT56DJ6EU8bqc3+ItxEe4UC2GVspmPzcCc8cg==
@@ -368,7 +368,7 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b"
integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==
-"@types/node@^24.12.0", "@types/node@^24.9.0":
+"@types/[email protected]", "@types/node@^24.12.0", "@types/node@^24.9.0":
version "24.12.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-24.12.0.tgz#6222e028210e5322e4f4f6767f8d88e5ea3b33d2"
integrity sha512-GYDxsZi3ChgmckRT9HPU0WEhKLP08ev/Yfcq2AstjrDASOYCSXeyjDsHg4v5t4jOj7cyDX3vmprafKlWIG9MXQ==
@@ -575,7 +575,7 @@ ajv@^6.10.0, ajv@^6.12.0, ajv@^6.12.4:
json-schema-traverse "^0.4.1"
uri-js "^4.2.2"
-ajv@^8.0.0, ajv@^8.17.1:
[email protected], ajv@^8.0.0, ajv@^8.17.1:
version "8.17.1"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6"
integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==
@@ -607,7 +607,7 @@ ansi-styles@^6.1.0:
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5"
integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==
-any-shell-escape@^0.1.1:
[email protected], any-shell-escape@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/any-shell-escape/-/any-shell-escape-0.1.1.tgz#d55ab972244c71a9a5e1ab0879f30bf110806959"
integrity sha512-36j4l5HVkboyRhIWgtMh1I9i8LTdFqVwDEHy1cp+QioJyKgAUG40X0W8s7jakWRta/Sjvm8mUG1fU6Tj8mWagQ==
@@ -704,7 +704,7 @@ atomically@^2.0.3:
stubborn-fs "^1.2.5"
when-exit "^2.1.1"
-auto-launch@^5.0.6:
[email protected], auto-launch@^5.0.6:
version "5.0.6"
resolved "https://registry.yarnpkg.com/auto-launch/-/auto-launch-5.0.6.tgz#ccc238ddc07b2fa84e96a1bc2fd11b581a20cb2d"
integrity sha512-OgxiAm4q9EBf9EeXdPBiVNENaWE3jUZofwrhAkWjHDYGezu1k3FRZHU8V2FBxGuSJOHzKmTJEd0G7L7/0xDGFA==
@@ -870,7 +870,7 @@ [email protected], chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.1, chalk@^4.1.
ansi-styles "^4.1.0"
supports-color "^7.1.0"
-chokidar@^4.0.3:
[email protected], chokidar@^4.0.3:
version "4.0.3"
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-4.0.3.tgz#7be37a4c03c9aee1ecfe862a4a23b2c70c205d30"
integrity sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==
@@ -917,7 +917,7 @@ cli-truncate@^2.1.0:
slice-ansi "^3.0.0"
string-width "^4.2.0"
-clip-bpe-js@^0.0.6:
[email protected], clip-bpe-js@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/clip-bpe-js/-/clip-bpe-js-0.0.6.tgz#a11c228e793fa29841f8cd4f8576fc1ff3403511"
integrity sha512-+0n0eeacgFmg9hKhHhXanKkRDhqRwzYK7dj46VYMzePxmN8zbbDgeTQZchfvARNpbBMRi7FfWRSW3lysOUDX/Q==
@@ -962,7 +962,7 @@ combined-stream@^1.0.8:
dependencies:
delayed-stream "~1.0.0"
-comlink@^4.4.2:
[email protected], comlink@^4.4.2:
version "4.4.2"
resolved "https://registry.yarnpkg.com/comlink/-/comlink-4.4.2.tgz#cbbcd82742fbebc06489c28a183eedc5c60a2bca"
integrity sha512-OxGdvBmJuNKSCMO4NTl1L47VRp6xn2wG4F/2hYzB6tiCb709otOxtEYCSvK80PtjODfXXZu8ds+Nw5kVCjqd2g==
@@ -977,7 +977,7 @@ compare-version@^0.1.2:
resolved "https://registry.yarnpkg.com/compare-version/-/compare-version-0.1.2.tgz#0162ec2d9351f5ddd59a9202cba935366a725080"
integrity sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==
-compare-versions@^6.1.1:
[email protected], compare-versions@^6.1.1:
version "6.1.1"
resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-6.1.1.tgz#7af3cc1099ba37d244b3145a9af5201b629148a9"
integrity sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==
@@ -997,7 +997,7 @@ concat-stream@^2.0.0:
readable-stream "^3.0.2"
typedarray "^0.0.6"
-concurrently@^9.2.1:
[email protected], concurrently@^9.2.1:
version "9.2.1"
resolved "https://registry.yarnpkg.com/concurrently/-/concurrently-9.2.1.tgz#248ea21b95754947be2dad9c3e4b60f18ca4e44f"
integrity sha512-fsfrO0MxV64Znoy8/l1vVIjjHa29SZyyqPgQBwhiDcaW8wJc2W3XWVOGx4M3oJBnv/zdUZIIp1gDeS98GzP8Ng==
@@ -1044,7 +1044,7 @@ crc@^3.8.0:
dependencies:
buffer "^5.1.0"
-cross-env@^10.1.0:
[email protected], cross-env@^10.1.0:
version "10.1.0"
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-10.1.0.tgz#cfd2a6200df9ed75bfb9cb3d7ce609c13ea21783"
integrity sha512-GsYosgnACZTADcmEyJctkJIoqAhHjttw7RsFrVoJNXbsWWqaq6Ym+7kZjq6mS45O0jij6vtiReppKQEtqWy6Dw==
@@ -1236,7 +1236,7 @@ [email protected]:
simple-update-notifier "2.0.0"
yargs "^17.6.2"
-electron-log@^5.4.3:
[email protected], electron-log@^5.4.3:
version "5.4.3"
resolved "https://registry.yarnpkg.com/electron-log/-/electron-log-5.4.3.tgz#02a90baf4256950ca416095db6e5745268584d20"
integrity sha512-sOUsM3LjZdugatazSQ/XTyNcw8dfvH1SYhXWiJyfYodAAKOZdHs0txPiLDXFzOZbhXgAgshQkshH2ccq0feyLQ==
@@ -1255,7 +1255,7 @@ [email protected]:
lazy-val "^1.0.5"
mime "^2.5.2"
-electron-store@^11.0.2:
[email protected], electron-store@^11.0.2:
version "11.0.2"
resolved "https://registry.yarnpkg.com/electron-store/-/electron-store-11.0.2.tgz#00a182c8a8cfa3816240273bb9aa5732de6063b8"
integrity sha512-4VkNRdN+BImL2KcCi41WvAYbh6zLX5AUTi4so68yPqiItjbgTjqpEnGAqasgnG+lB6GuAyUltKwVopp6Uv+gwQ==
@@ -1263,7 +1263,7 @@ electron-store@^11.0.2:
conf "^15.0.2"
type-fest "^5.0.1"
-electron-updater@^6.6.5:
[email protected], electron-updater@^6.6.5:
version "6.6.5"
resolved "https://registry.yarnpkg.com/electron-updater/-/electron-updater-6.6.5.tgz#6614daa2f737c294471eee7ce7b61deda0d5543a"
integrity sha512-jnk38WfByl2Pb0cje02xls/pJkvkq3AQZI7usDCLriU23adkerLTkRrugbCPuUxUOa79nY1g/rokHPWHZFBKyA==
@@ -1277,7 +1277,7 @@ electron-updater@^6.6.5:
semver "^7.6.3"
tiny-typed-emitter "^2.1.0"
-electron@^41.0.0:
[email protected], electron@^41.0.0:
version "41.0.0"
resolved "https://registry.yarnpkg.com/electron/-/electron-41.0.0.tgz#5c5dcc8f38f7a53700ccd24c2abda962fa9a1d2b"
integrity sha512-U7QueSj1cFj9QM0Qamgh/MK08662FVK555iMfapqU7mcAmIm4A8bZuZptpjMXrT4JNAMGjgWu9sOeO1+RPCJNw==
@@ -1375,7 +1375,7 @@ eslint-visitor-keys@^4.2.1:
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz#4cfea60fe7dd0ad8e816e1ed026c1d5251b512c1"
integrity sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==
-eslint@^9:
[email protected], eslint@^9:
version "9.9.1"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-9.9.1.tgz#147ac9305d56696fb84cf5bdecafd6517ddc77ec"
integrity sha512-dHvhrbfr4xFQ9/dq+jcVneZMyRYLjggWjk6RVsIiHsP8Rz6yZ8LvZ//iU4TrZF+SXWG+JkNF2OyiZRvzgRDqMg==
@@ -1532,7 +1532,7 @@ fdir@^6.4.4:
resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.4.4.tgz#1cfcf86f875a883e19a8fab53622cfe992e8d2f9"
integrity sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==
-ffmpeg-static@^5.2.0:
[email protected], ffmpeg-static@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/ffmpeg-static/-/ffmpeg-static-5.2.0.tgz#6ca64a5ed6e69ec4896d175c1f69dd575db7c5ef"
integrity sha512-WrM7kLW+do9HLr+H6tk7LzQ7kPqbAgLjdzNE32+u3Ff11gXt9Kkkd2nusGFrlWMIe+XaA97t+I8JS7sZIrvRgA==
@@ -2201,7 +2201,7 @@ lru-cache@^10.2.0:
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119"
integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==
-lru-cache@^11.2.2:
[email protected], lru-cache@^11.2.2:
version "11.2.2"
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-11.2.2.tgz#40fd37edffcfae4b2940379c0722dc6eeaa75f24"
integrity sha512-F9ODfyqML2coTIsQpSkRHnLSZMtkU8Q+mSfcaIyKwy58u+8k5nvAYeiNhsyMARvzNcXJ9QfWVrcPsC9e9rAxtg==
@@ -2426,7 +2426,7 @@ negotiator@^0.6.3:
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd"
integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==
-next-electron-server@^1.0.0:
[email protected], next-electron-server@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/next-electron-server/-/next-electron-server-1.0.0.tgz#03e133ed64a5ef671b6c6409f908c4901b1828cb"
integrity sha512-fTUaHwT0Jry2fbdUSIkAiIqgDAInI5BJFF4/j90/okvZCYlyx6yxpXB30KpzmOG6TN/ESwyvsFJVvS2WHT8PAA==
@@ -2455,7 +2455,7 @@ node-api-version@^0.2.0:
dependencies:
semver "^7.3.5"
-node-stream-zip@^1.15.0:
[email protected], node-stream-zip@^1.15.0:
version "1.15.0"
resolved "https://registry.yarnpkg.com/node-stream-zip/-/node-stream-zip-1.15.0.tgz#158adb88ed8004c6c49a396b50a6a5de3bca33ea"
integrity sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==
@@ -2654,12 +2654,12 @@ prelude-ls@^1.2.1:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
-prettier-plugin-organize-imports@^4.3.0:
[email protected], prettier-plugin-organize-imports@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-4.3.0.tgz#e8d392e2040b3e5fc1476967d669487dde0eea76"
integrity sha512-FxFz0qFhyBsGdIsb697f/EkvHzi5SZOhWAjxcx2dLt+Q532bAlhswcXGYB1yzjZ69kW8UoadFBw7TyNwlq96Iw==
-prettier-plugin-packagejson@^2.5.19:
[email protected], prettier-plugin-packagejson@^2.5.19:
version "2.5.19"
resolved "https://registry.yarnpkg.com/prettier-plugin-packagejson/-/prettier-plugin-packagejson-2.5.19.tgz#2e25664fe828ac6c5660b765a598ca075e3587bc"
integrity sha512-Qsqp4+jsZbKMpEGZB1UP1pxeAT8sCzne2IwnKkr+QhUe665EXUo3BAvTf1kAPCqyMv9kg3ZmO0+7eOni/C6Uag==
@@ -2938,7 +2938,7 @@ shelljs@^0.9.2:
interpret "^1.0.0"
rechoir "^0.6.2"
-shx@^0.4.0:
[email protected], shx@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/shx/-/shx-0.4.0.tgz#c6ea6ace7e778da0ab32d2eab9def59d788e9336"
integrity sha512-Z0KixSIlGPpijKgcH6oCMCbltPImvaKy0sGH8AkLRXw1KyzpKtaCTizP2xen+hNDqVF4xxgvA0KXSb9o4Q6hnA==
@@ -3260,7 +3260,7 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==
-typescript-eslint@^8.35.1:
[email protected], typescript-eslint@^8.35.1:
version "8.35.1"
resolved "https://registry.yarnpkg.com/typescript-eslint/-/typescript-eslint-8.35.1.tgz#4ddeda5c5777a7bd86516280d8099ada06055f2f"
integrity sha512-xslJjFzhOmHYQzSB/QTeASAHbjmxOGEP6Coh93TXmUBFQoJ1VU35UHIDmG06Jd6taf3wqqC1ntBnCMeymy5Ovw==
@@ -3269,7 +3269,7 @@ typescript-eslint@^8.35.1:
"@typescript-eslint/parser" "8.35.1"
"@typescript-eslint/utils" "8.35.1"
-typescript@^5.4.3, typescript@^5.8.3:
[email protected], typescript@^5.4.3, typescript@^5.8.3:
version "5.8.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.3.tgz#92f8a3e5e3cf497356f4178c34cd65a7f5e8440e"
integrity sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==
@@ -3458,7 +3458,7 @@ yocto-queue@^0.1.0:
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
-zod@^4.1.12:
[email protected], zod@^4.1.12:
version "4.1.12"
resolved "https://registry.yarnpkg.com/zod/-/zod-4.1.12.tgz#64f1ea53d00eab91853195653b5af9eee68970f0"
integrity sha512-JInaHOamG8pt5+Ey8kGmdcAcg3OL9reK8ltczgHTAwNhMys/6ThXHityHxVV2p3fkw/c+MAvBHFVYHFZDmjMCQ==
diff --git a/docs/CLAUDE.md b/docs/CLAUDE.md
index 4ded8a5099..07322a2703 100644
--- a/docs/CLAUDE.md
+++ b/docs/CLAUDE.md
@@ -27,12 +27,15 @@ Documentation for Ente's products (Photos, Auth, self-hosting), published at [en
## Development Commands
```bash
-yarn install # Install dependencies
+yarn install --frozen-lockfile # Install dependencies from the committed lockfile
yarn dev # Start local dev server
yarn build # Build for production
yarn pretty # Format all files with Prettier
```
+Use plain `yarn install` only when intentionally updating dependencies and
+reviewing the resulting `yarn.lock` changes.
+
## Critical Architecture Notes
**Adding new pages**: New pages MUST be manually added to `docs/.vitepress/sidebar.ts` - VitePress does not auto-generate the sidebar.
diff --git a/docs/README.md b/docs/README.md
index c302ab3932..20c663abc5 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -32,9 +32,12 @@ cd ente/docs
Install dependencies
```sh
-yarn install
+yarn install --frozen-lockfile
```
+Use plain `yarn install` only when you are intentionally updating dependencies
+and reviewing the resulting `yarn.lock` changes.
+
Then start a local server
```sh
diff --git a/docs/docs/self-hosting/installation/manual.md b/docs/docs/self-hosting/installation/manual.md
index 1d6ad8d664..efe9a6bb27 100644
--- a/docs/docs/self-hosting/installation/manual.md
+++ b/docs/docs/self-hosting/installation/manual.md
@@ -180,7 +180,7 @@ Values you used for `database name` and `username` correspond to the values you
cd ../web
# Install dependencies
- yarn install
+ yarn install --frozen-lockfile
```
2. Configure the environment variables in your corresponding shell's
diff --git a/docs/package.json b/docs/package.json
index c9cccee51b..781b4f1141 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -9,9 +9,9 @@
"pretty:check": "prettier -c ."
},
"devDependencies": {
- "prettier": "^3.6.2",
- "sitemap": "^8.0.2",
- "vitepress": "^1.6.4"
+ "prettier": "3.6.2",
+ "sitemap": "8.0.2",
+ "vitepress": "1.6.4"
},
"packageManager": "[email protected]"
}
diff --git a/docs/yarn.lock b/docs/yarn.lock
index d69e019646..76c30ac336 100644
--- a/docs/yarn.lock
+++ b/docs/yarn.lock
@@ -987,7 +987,7 @@ preact@^10.0.0:
resolved "https://registry.yarnpkg.com/preact/-/preact-10.19.6.tgz#66007b67aad4d11899f583df1b0116d94a89b8f5"
integrity sha512-gympg+T2Z1fG1unB8NH29yHJwnEaCH37Z32diPDku316OTnRPeMbiRV9kTrfZpocXjdfnWuFUl/Mj4BHaf6gnw==
-prettier@^3.6.2:
[email protected], prettier@^3.6.2:
version "3.6.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.6.2.tgz#ccda02a1003ebbb2bfda6f83a074978f608b9393"
integrity sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==
@@ -1068,7 +1068,7 @@ shiki@^2.1.0:
"@shikijs/vscode-textmate" "^10.0.2"
"@types/hast" "^3.0.4"
-sitemap@^8.0.2:
[email protected], sitemap@^8.0.2:
version "8.0.2"
resolved "https://registry.yarnpkg.com/sitemap/-/sitemap-8.0.2.tgz#27bddb5fc2c61a1cf8f0194674cd89d762c9f5ae"
integrity sha512-LwktpJcyZDoa0IL6KT++lQ53pbSrx2c9ge41/SeLTyqy2XUNA6uR4+P9u5IVo5lPeL2arAcOKn1aZAxoYbCKlQ==
@@ -1188,7 +1188,7 @@ vite@^5.4.14:
optionalDependencies:
fsevents "~2.3.3"
-vitepress@^1.6.4:
[email protected], vitepress@^1.6.4:
version "1.6.4"
resolved "https://registry.yarnpkg.com/vitepress/-/vitepress-1.6.4.tgz#1b6c68fede541a3f401a66263dce0c985e2d8d92"
integrity sha512-+2ym1/+0VVrbhNyRoFFesVvBvHAVMZMK0rw60E3X/5349M1GuVdKeazuksqopEdvkKwKGs21Q729jX81/bkBJg==
diff --git a/web/CLAUDE.md b/web/CLAUDE.md
index e2700ff6e1..5650c07a69 100644
--- a/web/CLAUDE.md
+++ b/web/CLAUDE.md
@@ -22,8 +22,8 @@ Format markdown files with Prettier for consistent styling
### Development
```bash
-# Install dependencies (uses Yarn classic 1.22.22)
-yarn install
+# Install dependencies from the committed lockfile (uses Yarn classic 1.22.22)
+yarn install --frozen-lockfile
# Run development servers
yarn dev # Photos app (port 3000)
@@ -48,6 +48,9 @@ yarn lint # Check formatting, linting, and TypeScript types
yarn lint-fix # Auto-fix linting and formatting issues
```
+Use plain `yarn install` only when intentionally updating dependencies and
+reviewing the resulting `yarn.lock` changes.
+
## Architecture
This is a **monorepo** containing multiple Ente web applications using **Yarn workspaces**.
diff --git a/web/Dockerfile b/web/Dockerfile
index 5bab6da891..6d023b3e22 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -20,7 +20,8 @@ ENV NEXT_PUBLIC_ENTE_PHOTOS_ENDPOINT=ENTE_PHOTOS_ORIGIN_PLACEHOLDER
# `yarn install` is flaky on the GitHub arm64 runners otherwise.
RUN yarn config set network-timeout 900000 -g
-RUN yarn install
+RUN corepack enable && corepack prepare [email protected] --activate
+RUN yarn install --frozen-lockfile
RUN yarn build:photos
RUN yarn build:albums
RUN yarn build:accounts
diff --git a/web/README.md b/web/README.md
index 033bd2004e..03c15e9239 100644
--- a/web/README.md
+++ b/web/README.md
@@ -18,9 +18,12 @@ Install [node](https://nodejs.org) and [Rust](https://www.rust-lang.org/tools/in
Install dependencies
```sh
-yarn install
+yarn install --frozen-lockfile
```
+Use plain `yarn install` only when you are intentionally updating dependencies
+and reviewing the resulting `yarn.lock` changes.
+
Start a local development server
```sh
diff --git a/web/docs/README.md b/web/docs/README.md
index b81402944a..ca1a53b57e 100644
--- a/web/docs/README.md
+++ b/web/docs/README.md
@@ -3,7 +3,7 @@
If you just want to run Ente's web apps locally or develop them, you can do
```sh
-yarn install
+yarn install --frozen-lockfile
yarn dev
```
diff --git a/web/docs/dev.md b/web/docs/dev.md
index 95340417ea..4ff323eb3c 100644
--- a/web/docs/dev.md
+++ b/web/docs/dev.md
@@ -14,10 +14,14 @@ also find it useful to install the _vscode-styled-components_ extension.
Make sure you're on yarn 1.x series (aka yarn "classic").
-### yarn install
+### yarn install --frozen-lockfile
-Installs dependencies. This needs to be done once, and thereafter wherever there
-is a change in `yarn.lock` (e.g. when pulling the latest upstream).
+Installs dependencies using the committed lockfile. This should be the default
+for local setup, and whenever there is a change in `yarn.lock` (e.g. when
+pulling the latest upstream).
+
+Use plain `yarn install` only when intentionally updating dependencies and
+reviewing the resulting `package.json` and `yarn.lock` changes.
### yarn dev:\*
@@ -63,9 +67,10 @@ production build.
Note that yarn does not automatically update `node_modules` if you switch to a
branch that has added or modified dependencies. So if you encounter unexpected
errors on switching branches, make sure that your `node_modules` is up to date
-by running `yarn install` first.
+by running `yarn install --frozen-lockfile` first.
-> `yarn` is a shortcut for `yarn install`
+> `yarn` is a shortcut for `yarn install`, but normal development should prefer
+> `yarn install --frozen-lockfile`.
To add a local package as a dependency, use `<package-name>@*`. The "\*" here
denotes any version.
diff --git a/web/package.json b/web/package.json
index e5d251d42a..b73b6b2eca 100644
--- a/web/package.json
+++ b/web/package.json
@@ -47,10 +47,10 @@
"base-x": "5.0.1"
},
"devDependencies": {
- "concurrently": "^9.2.1",
- "eslint": "^9.30.1",
- "prettier": "^3.6.2",
- "typescript": "^5.8.3"
+ "concurrently": "9.2.1",
+ "eslint": "9.30.1",
+ "prettier": "3.6.2",
+ "typescript": "5.8.3"
},
"packageManager": "[email protected]"
}
diff --git a/web/yarn.lock b/web/yarn.lock
index 24d81d35f1..81ab1e831b 100644
--- a/web/yarn.lock
+++ b/web/yarn.lock
@@ -2006,7 +2006,7 @@ [email protected]:
resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"
integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
-concurrently@^9.2.1:
[email protected], concurrently@^9.2.1:
version "9.2.1"
resolved "https://registry.npmjs.org/concurrently/-/concurrently-9.2.1.tgz"
integrity sha512-fsfrO0MxV64Znoy8/l1vVIjjHa29SZyyqPgQBwhiDcaW8wJc2W3XWVOGx4M3oJBnv/zdUZIIp1gDeS98GzP8Ng==
@@ -2457,7 +2457,7 @@ eslint-visitor-keys@^4.2.1:
resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz"
integrity sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==
-eslint@^9.30.1:
[email protected], eslint@^9.30.1:
version "9.30.1"
resolved "https://registry.npmjs.org/eslint/-/eslint-9.30.1.tgz"
integrity sha512-zmxXPNMOXmwm9E0yQLi5uqXHs7uq2UIiqEKo3Gq+3fwo1XrJ+hijAZImyF7hclW3E6oHz43Yk3RP8at6OTKflQ==
@@ -4504,7 +4504,7 @@ prettier-plugin-packagejson@^2.5.17:
sort-package-json "3.3.1"
synckit "0.11.8"
-prettier@^3.6.2:
[email protected], prettier@^3.6.2:
version "3.6.2"
resolved "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz"
integrity sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==
@@ -5458,7 +5458,7 @@ typescript-eslint@^8.35.1:
"@typescript-eslint/parser" "8.35.1"
"@typescript-eslint/utils" "8.35.1"
-typescript@^5.8.3:
[email protected], typescript@^5.8.3:
version "5.8.3"
resolved "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz"
integrity sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==