| 17 Mar 2025 |
Whovian9369 | 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 |
GGG | Most likely yes | 23:19:12 |
Whovian9369 | That's a little frustrating, damn. Thanks! | 23:19:37 |
GGG | could probably temporarily solve it by doing touch ~/.netrc | 23:19:56 |
Corngood | That'll work if you call `nuget-to-json` directly, but not for `fetch-deps` | 23:20:34 |
GGG | oh? | 23:20:40 |
Whovian9369 | Oh it depends on the local $HOME/.netrc (or is it the one in $TMPDIR/home)? | 23:21:42 |
Corngood | Yeah, it creates a temporary $HOME I'm pretty sure. | 23:21:59 |
Corngood | Cherry picking the fix is probably easiest for fetch-deps
https://github.com/NixOS/nixpkgs/pull/389338/commits/7a36c0ef0b08e07afec4f5300956941db2945efa | 23:22:42 |
Whovian9369 | 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 | 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 | 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 |