!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

180 Members
51 Servers

Load older messages


SenderMessageTime
7 Dec 2024
@fsagbuya:matrix.orgfsagbuya joined the room.03:23:44
@fsagbuya:matrix.orgfsagbuya

Hi. I'm trying to build mattermost webapp from source but keep running into thenpm error code ENOTCACHED. This happens even though I'm using a package-lock.json file that includes the resolved and integrity fields.

Here is Nix my derivation:

{
  lib,
  buildNpmPackage,
  fetchFromGitHub
}:

buildNpmPackage rec {
  pname = "mattermost-webbapp";
  version = "9.11.5";

  src = fetchFromGitHub {
    owner = "mattermost";
    repo = "mattermost";
    rev = "v${version}";
    hash = "sha256-bLZFeG6kBVP0ws50wtBam/bO206sQnz6va8PATAoRAQ=";
  };
  
  sourceRoot = "${src.name}/webapp";
  patches = [./fix-package-lock-json.patch ];

  dontNpmBuild = true;
  makeCacheWritable = true;
  forceGitDeps = true;

  npmDepsHash = "sha256-ODlqjBZIrvZXtxtIG/CLISf2faAGG1bwFmgd0aUECOQ=";


Can you help me understand why this error is occurring and how I can resolve it?

03:45:00
@fsagbuya:matrix.orgfsagbuya *

Hi. I'm trying to build mattermost webapp from source but keep running into the npm error code ENOTCACHED. This happens even though I'm using a package-lock.json file that includes the resolved and integrity fields.

Here is Nix my derivation:

{
  lib,
  buildNpmPackage,
  fetchFromGitHub
}:

buildNpmPackage rec {
  pname = "mattermost-webbapp";
  version = "9.11.5";

  src = fetchFromGitHub {
    owner = "mattermost";
    repo = "mattermost";
    rev = "v${version}";
    hash = "sha256-bLZFeG6kBVP0ws50wtBam/bO206sQnz6va8PATAoRAQ=";
  };
  
  sourceRoot = "${src.name}/webapp";
  patches = [./fix-package-lock-json.patch ];

  dontNpmBuild = true;
  makeCacheWritable = true;
  forceGitDeps = true;

  npmDepsHash = "sha256-ODlqjBZIrvZXtxtIG/CLISf2faAGG1bwFmgd0aUECOQ=";


Can you help me understand why this error is occurring and how I can resolve it?

03:45:46
@fsagbuya:matrix.orgfsagbuya *

Hi. I'm trying to build mattermost webapp from source but keep running into the npm error code ENOTCACHED. This happens even though I'm using a package-lock.json file that includes the resolved and integrity fields.

Here is Nix my derivation:

{
  lib,
  buildNpmPackage,
  fetchFromGitHub
}:

buildNpmPackage rec {
  pname = "mattermost-webbapp";
  version = "9.11.5";

  src = fetchFromGitHub {
    owner = "mattermost";
    repo = "mattermost";
    rev = "v${version}";
    hash = "sha256-bLZFeG6kBVP0ws50wtBam/bO206sQnz6va8PATAoRAQ=";
  };
  
  sourceRoot = "${src.name}/webapp";
  patches = [./fix-package-lock-json.patch ];

  dontNpmBuild = true;
  makeCacheWritable = true;
  forceGitDeps = true;

  npmDepsHash = "sha256-ODlqjBZIrvZXtxtIG/CLISf2faAGG1bwFmgd0aUECOQ=";


Can you help me understand why this error is occurring and how I can resolve it?

Detailed error log: https://gist.github.com/fsagbuya/aadbe79e3b791c5c82e5bb917e2ca63d

03:49:30
@fsagbuya:matrix.orgfsagbuya *

Hi. I'm trying to build mattermost webapp from source but keep running into the npm error code ENOTCACHED. This happens even though I'm using a package-lock.json file that includes the resolved and integrity fields.

Here is Nix my derivation:

{
  lib,
  buildNpmPackage,
  fetchFromGitHub
}:

buildNpmPackage rec {
  pname = "mattermost-webbapp";
  version = "9.11.5";

  src = fetchFromGitHub {
    owner = "mattermost";
    repo = "mattermost";
    rev = "v${version}";
    hash = "sha256-bLZFeG6kBVP0ws50wtBam/bO206sQnz6va8PATAoRAQ=";
  };
  
  sourceRoot = "${src.name}/webapp";
  patches = [./fix-package-lock-json.patch ];

  dontNpmBuild = true;
  makeCacheWritable = true;
  forceGitDeps = true;

  npmDepsHash = "sha256-ODlqjBZIrvZXtxtIG/CLISf2faAGG1bwFmgd0aUECOQ=";


Can you help me understand why this error is occurring and how I can resolve it?

Detailed error log: https://gist.github.com/fsagbuya/aadbe79e3b791c5c82e5bb917e2ca63d
fix-package-lock-json.patch: https://gist.github.com/fsagbuya/59fac03fc17a876393632c1c92f4184a

03:51:59
@fsagbuya:matrix.orgfsagbuya *

Hi. I'm trying to build mattermost webapp from source but keep running into the npm error code ENOTCACHED. This happens even though I'm using a package-lock.json file that includes the resolved and integrity fields.

Here is Nix my derivation:

{
  lib,
  buildNpmPackage,
  fetchFromGitHub
}:

buildNpmPackage rec {
  pname = "mattermost-webapp";
  version = "9.11.5";

  src = fetchFromGitHub {
    owner = "mattermost";
    repo = "mattermost";
    rev = "v${version}";
    hash = "sha256-bLZFeG6kBVP0ws50wtBam/bO206sQnz6va8PATAoRAQ=";
  };
  
  sourceRoot = "${src.name}/webapp";
  patches = [./fix-package-lock-json.patch ];

  dontNpmBuild = true;
  makeCacheWritable = true;
  forceGitDeps = true;

  npmDepsHash = "sha256-ODlqjBZIrvZXtxtIG/CLISf2faAGG1bwFmgd0aUECOQ=";


Can you help me understand why this error is occurring and how I can resolve it?

Detailed error log: https://gist.github.com/fsagbuya/aadbe79e3b791c5c82e5bb917e2ca63d
fix-package-lock-json.patch: https://gist.github.com/fsagbuya/59fac03fc17a876393632c1c92f4184a

04:35:57
8 Dec 2024
@pyrox:pyrox.devdish [Fox/It/She]https://github.com/postcss/postcss-cli/blob/master/.npmrc21:05:18
@pyrox:pyrox.devdish [Fox/It/She]I hate this 😭21:05:30
* @pyrox:pyrox.devdish [Fox/It/She] rattling the bars of my cage screaming "USE A LOCKFILE"21:06:31
* @pyrox:pyrox.devdish [Fox/It/She] * rattling the bars of my cage screaming "USE A LOCKFILE!!"21:06:40
@emma:rory.gayEmma [it/its]just wait until you find out about NoVNC22:35:33
@emma:rory.gayEmma [it/its] https://github.com/novnc/noVNC/issues/1705 22:36:40
@emma:rory.gayEmma [it/its] they explicitly version all their dependencies as latest 22:37:01
@emma:rory.gayEmma [it/its] https://github.com/novnc/noVNC/blob/master/package.json 22:37:31
@marie:marie.cologneMarie changed their profile picture.22:38:16
@marie:marie.cologneMarie changed their profile picture.22:39:29
9 Dec 2024
@tomodachi94:matrix.orgTomodachi94 (they/them)
In reply to@emma:rory.gay
https://github.com/novnc/noVNC/blob/master/package.json
That was painful to look at
02:47:12
11 Dec 2024
@marijan:matrix.orgmarijan changed their profile picture.14:20:32
@pyrox:pyrox.devdish [Fox/It/She]considering dropping nodePackages.bower2nix since bower is not really a thing anymore and nothing in-tree uses it. Any arguments as to why it should stay?19:27:14
@winter:catgirl.cloudWinterno19:27:36
@winter:catgirl.cloudWinterkill it19:27:37
@pyrox:pyrox.devdish [Fox/It/She]🫡19:28:07
@sandro:supersandro.deSandro 🐧thats not true19:28:35
@sandro:supersandro.deSandro 🐧https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/bower-modules/generic/default.nix#L4619:28:39
@sandro:supersandro.deSandro 🐧and that is used by mediagoblin19:28:43
@tomodachi94:matrix.orgTomodachi94 (they/them)
In reply to@pyrox:pyrox.dev
considering dropping nodePackages.bower2nix since bower is not really a thing anymore and nothing in-tree uses it. Any arguments as to why it should stay?
The only reason I can think of is that it's still maintained
19:28:44
@tomodachi94:matrix.orgTomodachi94 (they/them)* The only reason I can think of is that it's still maintained (edit: and also because it's used in tree)19:29:00
@pyrox:pyrox.devdish [Fox/It/She]
In reply to@sandro:supersandro.de
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/bower-modules/generic/default.nix#L46
that's bower, not bower2nix
19:29:08
@pyrox:pyrox.devdish [Fox/It/She]wait19:29:21
@pyrox:pyrox.devdish [Fox/It/She]im reading that wrong19:29:24

Show newer messages


Back to Room ListRoom Version: 6