You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When trying to build a pnpm monorepo using Nix's buildNpmPackage that includes git dependencies (specifically @discordjs/opus), the build fails due to git access restrictions in the Nix build environment. The current workarounds involve either modifying package.json or pre-fetching git dependencies, both of which are not ideal solutions for maintaining the project.
Describe the solution you'd like
A built-in way to handle git dependencies in buildNpmPackage that:
Automatically fetches git dependencies using fetchgit during the build process
Maintains compatibility with pnpm workspaces and monorepo structure
Preserves the original package.json without requiring modifications
Works with trusted dependencies in pnpm
Describe alternatives you've considered
Manually pre-fetching git dependencies and placing them in node_modules
Modifying package.json to use published versions instead of git dependencies
Using mkDerivation instead of buildNpmPackage to handle the build process manually
Creating a custom derivation to handle git dependencies before the main build
Additional context
This issue particularly affects projects using Discord.js and similar packages that rely on git dependencies for native modules. The current workarounds either break the development workflow or require maintaining separate package configurations for Nix builds.
Example of a failing build:
ERR_PNPM_LOCKFILE_CONFIG_MISMATCH Cannot proceed with the frozen installation. The current "overrides" configuration doesn't match the value found in the lockfile
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When trying to build a pnpm monorepo using Nix's buildNpmPackage that includes git dependencies (specifically @discordjs/opus), the build fails due to git access restrictions in the Nix build environment. The current workarounds involve either modifying package.json or pre-fetching git dependencies, both of which are not ideal solutions for maintaining the project.
Describe the solution you'd like
A built-in way to handle git dependencies in buildNpmPackage that:
Describe alternatives you've considered
Additional context
This issue particularly affects projects using Discord.js and similar packages that rely on git dependencies for native modules. The current workarounds either break the development workflow or require maintaining separate package configurations for Nix builds.
Example of a failing build:
ERR_PNPM_LOCKFILE_CONFIG_MISMATCH Cannot proceed with the frozen installation. The current "overrides" configuration doesn't match the value found in the lockfile
The text was updated successfully, but these errors were encountered: