!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

121 Members
24 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
17 Mar 2025
@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

Show newer messages


Back to Room ListRoom Version: 9