Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tilt: migrate to prefetch-yarn-deps #269885

Merged
merged 1 commit into from
Nov 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkgs/applications/networking/cluster/tilt/assets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
, stdenvNoCC
, version, src
, fetchYarnDeps
, fixup_yarn_lock, yarn, nodejs
, prefetch-yarn-deps, yarn, nodejs
}:

stdenvNoCC.mkDerivation rec {
pname = "tilt-assets";

inherit src version;

nativeBuildInputs = [ fixup_yarn_lock yarn nodejs ];
nativeBuildInputs = [ prefetch-yarn-deps yarn nodejs ];

yarnOfflineCache = fetchYarnDeps {
yarnLock = "${src}/web/yarn.lock";
Expand All @@ -27,7 +27,7 @@ stdenvNoCC.mkDerivation rec {
yarn config --offline set yarn-offline-mirror $yarnOfflineCache

cd web
fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
yarn install --offline --frozen-lockfile --ignore-engines
patchShebangs node_modules
export PATH=$PWD/node_modules/.bin:$PATH
Expand Down