| 13 Nov 2023 |
@keiichi:matrix.org | sure, where is the best place to upload those files ? | 17:02:43 |
Lily Foster | i mean you could put them on a pastebin. or https://tmp.lily.flowers/ | 17:03:21 |
Lily Foster | In reply to @keiichi:matrix.org
I try to build a small package.json with buildNpmPackage. I seem to deterministically (repeatdly) hit:
> invalid type nullinvalid type nullnpm ERR! code ENOTCACHED
> npm ERR! request to https://registry.npmjs.org/@pulumi/query/-/query-0.3.0.tgz failed: cache mode is 'only-if-cached' but no cached response is available.
while nix-prefetch-url https://registry.npmjs.org/@pulumi/query/-/query-0.3.0.tgz works fine. what could explain this specific error ?
* Prefetching that URL has nothing to do with npm trying to do something it shouldn't in the nix sandbox. Can you share the full log and the package-lock.json file you are using? | 17:03:41 |
@keiichi:matrix.org | https://tmp.lily.flowers/package.json and the package-lock.json https://tmp.lily.flowers/wuhszr | 17:06:22 |
Lily Foster | can you share full build log? | 17:08:41 |
Lily Foster | i don't see anything wrong with this lockfile | 17:08:46 |
@keiichi:matrix.org | I build it with :
pulumiSdks = pkgs.buildNpmPackage {
pname = "ci-runner";
version = "1.0.0";
src = ./.;
npmDepsHash = "sha256-mUNksrt+S90RoXTofPSwhRAMw5wqrdjKtINkUA0KrQE=";
dontNpmBuild = true;
dontBuild = true;
};
and a nixpkgs of 8ac5c1191b06206f8508595f0c17332b851240f0
| 17:10:01 |
@keiichi:matrix.org | let me regenerate the log | 17:10:50 |
Lily Foster | i mean i've got it building on my end now | 17:13:18 |
Lily Foster | oh it's happening during prune...?? | 17:14:22 |
Lily Foster | what the hell | 17:14:26 |
Lily Foster | (why does npm prune logic always have to be so horribly busted) | 17:15:37 |
@keiichi:matrix.org | yes. I haven't tried dontNpmPrune = true yet, trying | 17:25:18 |