devenv icon indicating copy to clipboard operation
devenv copied to clipboard

Yarn must the same package as language definition.

Open dz0ny opened this issue 1 year ago • 6 comments

Inherit a package, so that we do not end up with different versions of Node.js as default is whatever is marked as stable in Nixpkgs.

dz0ny avatar Jul 08 '24 22:07 dz0ny

error: syntax error, unexpected '=', expecting ';'

domenkozar avatar Jul 10 '24 10:07 domenkozar

This example seems to fail: https://github.com/cachix/devenv/actions/runs/9872750941/job/27263894731?pr=1325#step:7:29

domenkozar avatar Jul 10 '24 11:07 domenkozar

Ping

domenkozar avatar Aug 11 '24 10:08 domenkozar

We ended with a configuration like this, but this is mostly because the project uses a lot of packages and there were issues with resolving correct ESM/non-ESM packages that older versions of Yarn had.

{
  inputs,
  ...
}: let
  nixpkgs-2405 = import inputs.nixpkgs-2405 {system = pkgs.stdenv.system;};
  node-20 = nixpkgs-2405.nodejs_20;
  yarn-422 = nixpkgs-2405.yarn-berry.override {
    nodejs = node-20;
  };
in {
  packages = with nixpkgs-2405; [
    yarn-422
    node-20
  ];
  languages.javascript.package = node-20;
}

dz0ny avatar Aug 20 '24 12:08 dz0ny

Let's wait on the CI

domenkozar avatar Aug 20 '24 16:08 domenkozar

@dz0ny can you rebase?

domenkozar avatar Sep 09 '24 10:09 domenkozar