!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

118 Members
23 Servers

Load older messages


SenderMessageTime
17 Mar 2025
@gggkiller:matrix.orgGGG * fortunately seems like it work with mimalloc with the security features enabled, at least I can have some extent of security in the allocator
nevermind, chromium breaks with mimalloc
07:23:59
@mattsturg:matrix.orgMatt Sturgeon

Am I missing something, or is fetch-deps not working? Seems like it builds the nix shell but doesn't actually run the fetch-deps.sh script, so I don't see any changes in deps.json.

To reproduce on latest master, wipe a deps.json file and attempt to re-generate it:

$ echo "" > pkgs/by-name/ne/nexusmods-app/deps.json
$ nix-build -A nexusmods-app.fetch-deps
$ ./result

No changes to add-nuget-deps in 3months, so I'm confused. Nothing obviously wrong in the built scripts either.

22:46:46
@mattsturg:matrix.orgMatt Sturgeon *

Am I missing something, or is fetch-deps not working? Seems like it builds the nix shell but doesn't actually run the inner fetch-deps.sh script, so I don't see any changes in deps.json.

To reproduce on latest master, wipe a deps.json file and attempt to re-generate it:

$ echo "" > pkgs/by-name/ne/nexusmods-app/deps.json
$ nix-build -A nexusmods-app.fetch-deps
$ ./result

No changes to add-nuget-deps in 3months, so I'm confused. Nothing obviously wrong in the built scripts either.

22:47:16
@gggkiller:matrix.orgGGG yeah, there's an open issue about it, curl now fails with --netrc flag and we add it unconditionally in nuget-to-json 22:47:39
@gggkiller:matrix.orgGGGcorngood has a PR open on it, however it is also the same PR for the latest patch tuesday22:48:00
@mattsturg:matrix.orgMatt Sturgeon Thanks, I should've checked for an issue. I'll try cherry-picking 7a36c0ef locally. Assuming #389338 won't merge for a while, is it worth opening another PR with just the curl fixes? 22:53:56
@gggkiller:matrix.orgGGGyes, it would be indeed preferable so we can merge and backport ASAP22:54:32
@gggkiller:matrix.orgGGG do you agree Corngood? 22:54:36
@mattsturg:matrix.orgMatt Sturgeon * Thanks, I should've checked for an issue. I'll try cherry-picking 7a36c0ef locally. Assuming #389338 won't merge for a while, is it worth opening another PR with just the curl fixes?
EDIT: that commit did resolve things for me
22:55:00
@corngood:corngood.comCorngoodIt's good with me if someone wants to merge it on its own. I've been away this weekend so I haven't had a chance to work on the upgrades.23:11:19
@whovian9369:matrix.orgWhovian9369 Hey gang, for some reason I'm not getting any deps.json output recently. I'm not sure if it's related to the error mentioned above by Matt or not? 23:19:00
@gggkiller:matrix.orgGGGMost likely yes23:19:12
@whovian9369:matrix.orgWhovian9369That's a little frustrating, damn. Thanks!23:19:37
@gggkiller:matrix.orgGGG could probably temporarily solve it by doing touch ~/.netrc 23:19:56
@corngood:corngood.comCorngoodThat'll work if you call `nuget-to-json` directly, but not for `fetch-deps`23:20:34
@gggkiller:matrix.orgGGGoh?23:20:40
@whovian9369:matrix.orgWhovian9369 Oh it depends on the local $HOME/.netrc (or is it the one in $TMPDIR/home)? 23:21:42
@corngood:corngood.comCorngoodYeah, it creates a temporary $HOME I'm pretty sure.23:21:59
@corngood:corngood.comCorngoodCherry picking the fix is probably easiest for fetch-deps https://github.com/NixOS/nixpkgs/pull/389338/commits/7a36c0ef0b08e07afec4f5300956941db2945efa23:22:42
@whovian9369:matrix.orgWhovian9369 Yeah but then that requires applying it in the derivation.
What I did is cp fetch-deps fetch-deps.sh && chmod 600 fetch-deps.sh && chmod +x fetch-deps.sh, and added touch "$HOME/.netrc" under where it runs the mkdir.
23:27:01
@whovian9369:matrix.orgWhovian9369 That appears to have worked and let me generate deps.json -- Small/Temporarily manual patch that forces it to work, at least. 23:27:55
@whovian9369:matrix.orgWhovian9369
diff --git a/nix/store/j4lwavhd4spz7bhn7c0bmyczishf1402-yura-2025.01.25-unstable-fetch-deps b/fetch-deps.sh
index f29778f..b7dbff7 100755
--- a/nix/store/j4lwavhd4spz7bhn7c0bmyczishf1402-yura-2025.01.25-unstable-fetch-deps
+++ b/fetch-deps.sh
@@ -16,6 +16,7 @@ export NUGET_HTTP_CACHE_PATH=${NUGET_HTTP_CACHE_PATH-~/.local/share/NuGet/v3-cac

 HOME=$TMPDIR/home
 mkdir "$HOME"
+touch "$HOME/.netrc"

 cd "$TMPDIR"

This seems to be the minimal diff to force it to work afaict

23:29:47
@gggkiller:matrix.orgGGGinteresting, however considering something23:31:37
@gggkiller:matrix.orgGGG this still breaks the use case for people using .netrc files 23:31:44
@gggkiller:matrix.orgGGGthe temp home dir23:31:51
@whovian9369:matrix.orgWhovian9369Willing to please elaborate?23:32:52
@gggkiller:matrix.orgGGGoh no, this is a whole separate issue, don't even worry about it23:33:05
@gggkiller:matrix.orgGGG it's just that some people use .netrc files to connect to private nuget repos, and since we change $HOME in fetch-deps, that entirely breaks that use-case 23:33:28
@gggkiller:matrix.orgGGGbut it's not related to your fix at all, it's a problem that already was in there to begin with23:33:49
@whovian9369:matrix.orgWhovian9369Ah okay, thanks!23:33:56

Show newer messages


Back to Room ListRoom Version: 9