Commit Graph

41 Commits

Author SHA1 Message Date
Stéphan Kochen 321a0d7e19 Remove unused imports 2022-02-13 21:19:54 +01:00
Stéphan Kochen fcc976dcfb Add option to install binaries of dependencies 2022-01-29 19:59:27 +01:00
Adrian Gierakowski c999d4070c feature: handle git dependencies
- add git and cacert as deps to cacheDrvs
- use pkg.reference instead of version in package.json of isolated builds
  since it allow yarn to find the git repo (this will probably also fix
  oter type of deps)
2022-01-26 07:35:39 +01:00
Stéphan Kochen 01bf568bdc Revert "feature: handle git dependencies"
This reverts commit f957a93479.
2022-01-25 22:22:38 +01:00
Stéphan Kochen baae657ea8 Merge pull request #8 from DeversiFi/bugfix/restore-install-state-at-the-start-of-inject-build
bugfix: inject-build: storedBuildState handling
2022-01-25 20:03:26 +01:00
Adrian Gierakowski f957a93479 feature: handle git dependencies
- add git and cacert as deps to cacheDrvs
- use pkg.reference instead of version in package.json of isolated builds
  since it allow yarn to find the git repo (this will probably also fix
  oter type of deps)
2022-01-21 16:04:09 +00:00
Adrian Gierakowski dd30036316 bugfix: inject-build: storedBuildState handling
call restoreInstallState so that state written by previous invocations
to inject-build doesn't get lost

before this fix, all but the last one of the injected isolated builds
would be re-run when building main package
2022-01-21 15:48:22 +00:00
Stéphan Kochen 645da1ae02 Account for mismatch in 'fetch-one' filename 2022-01-04 15:20:16 +01:00
Stéphan Kochen abd295cc50 Revert "Account for mismatch in 'fetch-one' filename"
This reverts commit 7122fcf881.
2022-01-04 15:01:48 +01:00
Stéphan Kochen 7122fcf881 Account for mismatch in 'fetch-one' filename 2022-01-04 14:39:51 +01:00
Joe DeVivo cface0f015 Move runHook preConfigure so it can patch deps 2022-01-04 13:44:26 +01:00
Stéphan Kochen 00b7adf473 Upgrade dependencies, require Yarn 3.1.0 2021-12-14 09:55:35 +01:00
Stéphan Kochen d2c46886a6 Handle Yarn cache entries without checksums 2021-12-14 09:50:00 +01:00
Stéphan Kochen b6033729fe Revert "Remove --immutable-cache in yarn install command"
This reverts commit 2635212b77.
2021-12-14 09:39:33 +01:00
Stéphan Kochen 2635212b77 Remove --immutable-cache in yarn install command
Since Yarn 3.1.0, some cache items no longer have checksums, mostly
derived items like patched packages. Nixify skipped these, but that has
started causing `--immutable-cache` to complain about the missing
entries.

Instead, we will have to rely on the Nix sandbox for purity, so that
Yarn only does local operations (like patching) when to fill in these
missing cache entries.
2021-12-13 16:35:27 +01:00
Stéphan Kochen 2757cfd115 Upgrade to Yarn v3 2021-08-15 21:36:55 +02:00
Stéphan Kochen 153254f62a Isolated builds of dependencies 2021-04-30 15:10:47 +02:00
Stéphan Kochen e54893e726 Sort cache entry listing 2020-12-03 11:43:46 +01:00
Stéphan Kochen 60d9093d93 Fix 'argument list too long' during build 2020-12-02 16:23:02 +01:00
Stéphan Kochen ce4172544a Don't generate default.nix if flake.nix exists 2020-12-01 15:15:02 +01:00
Stéphan Kochen 9e7a15a264 Use NODE_OPTIONS to set PnP require in wrapper
Fixes PnP in subprocesses.
2020-09-28 19:22:56 +02:00
Stéphan Kochen 00b404aad7 Passthru the nodejs derivation used 2020-09-27 11:34:42 +02:00
Stéphan Kochen c0a00b0637 Fix preloading missing some files 2020-08-30 08:59:50 +02:00
Stéphan Kochen 71aaede50d Tweak docs 2020-08-27 17:57:04 +02:00
Stéphan Kochen d3c6821257 Don't touch 'yarn dlx' installations 2020-08-27 17:20:56 +02:00
Stéphan Kochen 5f1a03eefc Fix node path in bin wrappers 2020-08-26 10:59:42 +02:00
Stéphan Kochen a1fe6181f1 Add some settings 2020-08-26 09:10:07 +02:00
Stéphan Kochen ccfc83af5d Docs, and rebuild dist 2020-08-25 22:48:31 +02:00
Stéphan Kochen fcba68fd6f Preload cache into Nix store 2020-08-25 22:37:26 +02:00
Stéphan Kochen 5d3ed3c119 Split into modules and reorganize 2020-08-25 18:56:49 +02:00
Stéphan Kochen 708e36eaf4 Cleanup of yarn-project.nix 2020-08-25 18:20:16 +02:00
Stéphan Kochen 7682962581 Naming tweak 2020-08-25 16:39:22 +02:00
Stéphan Kochen 09b7b70664 Remove yarn-closure code 2020-08-25 16:37:59 +02:00
Stéphan Kochen 413deabced Allow overriding src 2020-08-25 16:32:40 +02:00
Stéphan Kochen 4bf35c526d Lift 'nodeLinker' == 'pnp' restriction 2020-08-25 16:05:32 +02:00
Stéphan Kochen 92cf450420 Granular fetching 2020-08-25 08:14:07 +02:00
Stéphan Kochen 111da50bee Use a copy of the cache to avoid issues 2020-08-24 20:31:05 +02:00
Stéphan Kochen 68cca6c0c0 Switch to a hook, allow absolute yarnPath 2020-08-24 20:04:12 +02:00
Stéphan Kochen 75006ce73b Handle yarnPath with exec permissions 2020-08-24 19:53:28 +02:00
Stéphan Kochen fe71de29aa Add headers to generated files 2020-08-24 19:53:15 +02:00
Stéphan Kochen 45050621c8 Initial commit 2020-08-23 18:11:31 +02:00