nix-community / yarn2nix

Generate nix expressions from a yarn.lock file [maintainer=???]
GNU General Public License v3.0
123 stars 61 forks source link

mkYarnWorkspace fails when a workspace depends on another #95

Open Shou opened 5 years ago

Shou commented 5 years ago

When a workspace depends on another, mkYarnWorkspace fails with a message like:

error Couldn't find any versions for "@dependency-workspace" that matches "1.0.0" in our cache (possible versions are ""). This is usually caused by a missing entry in the lockfile, running Yarn without the --offline flag may help fix this issue.

Is there a way around this with current yarn2nix or any ideas for how to fix it (I'm happy to PR)?

{
  "name": "@program/app",
  "private": true,
  "workspaces": [
    "dependency-workspace",
    "dependent-workspace"
  ]
}
nightkr commented 5 years ago

Seems to work fine for us, hard to say anything definite without a repro.