| 2 Nov 2025 |
Emma [it/its] | hm, i wonder what the best way would be to use nix to publish nuget packages | 19:53:00 |
Emma [it/its] | since packNupkg emits multiple nupkg files, im not sure how ot best deal with thta | 19:53:31 |
Emma [it/its] | ┏━ Dependency Graph with 6 roots:
┃ ✔ ArcaneLibs.Blazor.Components-v1-1 ⏱ 12s
┃ ✔ ArcaneLibs.Logging-v1-1 ⏱ 12s
┃ ✔ ArcaneLibs.Timings-v1-1 ⏱ 12s
┃ ✔ ArcaneLibs-v1-1 ⏱ 12s
┃ ✔ ArcaneLibs.StringNormalisation-v1-1 ⏱ 12s
┃ ✔ ArcaneLibs.Legacy-v1-1 ⏱ 12s
┣━━━ Builds
┗━ ∑ ⏵ 0 │ ✔ 6 │ ⏸ 0 │ Finished at 20:57:35 after 13s
also wondering how to best handle versioning, since my current ci setup uses current time for that | 19:58:31 |
Emma [it/its] | rm -rf *.nupkg
export DATE=`date -u '+%Y%m%d-%H%M%S'`
export REV=`git rev-parse --short HEAD`
dotnet pack --nologo --version-suffix preview.$DATE+$REV -o . ArcaneLibs
dotnet pack --nologo --version-suffix preview.$DATE+$REV -o . ArcaneLibs.Logging
dotnet pack --nologo --version-suffix preview.$DATE+$REV -o . ArcaneLibs.Timings
dotnet pack --nologo --version-suffix preview.$DATE+$REV -o . ArcaneLibs.Legacy
dotnet pack --nologo --version-suffix preview.$DATE+$REV -o . ArcaneLibs.StringNormalisation
dotnet pack --nologo --version-suffix preview.$DATE+$REV -o . ArcaneLibs.Blazor.Components
dotnet nuget push $(ls *.nupkg) -k ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
that's my current ci setup, that i'd like to get rid of | 19:59:17 |
| niklaskorz joined the room. | 20:09:36 |
Emma [it/its] | oh... i didnt realise but the nupkg files are empty... lol | 21:17:21 |
| 3 Nov 2025 |
Manuel Bärenz | Still trying to package my wonky project. I got a new version of the dll dependencies my partner's nuget server, and a wrapper project that depends on it as source code. I'm puzzled how to set projectFile.
- If I omit it, I get
error NU1101: Unable to find package ... on a package that should be in the dlls.If I set
| 18:03:55 |
Manuel Bärenz | * Still trying to package my wonky project. I got a new version of the dll dependencies my partner's nuget server, and a wrapper project that depends on it as source code. I'm puzzled how to set projectFile.
- If I omit it, I get
error NU1101: Unable to find package ... on a package that should be in the dlls.If I set
EDITING
| 18:04:02 |
Manuel Bärenz | * Still trying to package my wonky project. I got a new version of the dll dependencies my partner's nuget server, and a wrapper project that depends on it as source code. I'm puzzled how to set projectFile.
- If I omit it, I get
error NU1101: Unable to find package ... on a package that should be in the dlls.
- If I set it to the
.sln file, it errors with error MSB3202: The project file "/nix/store/wrapperProject/wrapperProject.csproj" was not found. (yes, without any hashes. probably it misinterprets paths somehow)
- If I set it to the
.csproj file, it eventually OOMs at 40 GB memory in dotnetConfigureHook
| 18:06:10 |
Manuel Bärenz | A basic question. The .nupkg file with the dlls that should do all the heavy lifting: Should I make a proper package out of it with buildDotnetModule, stdenv.mkDerivation or similar, and pass it to my wrapper project as buildInputs? Or is that not necessary because the dlls are on the nupkg server and should be autodetected through deps.json? | 18:09:42 |
Manuel Bärenz | * Still trying to package my wonky project. I got a new version of the dll dependencies my partner's nuget server, and a wrapper project that depends on it as source code. I'm puzzled how to set projectFile.
- If I omit it, I get
error NU1101: Unable to find package ... on a package that should be in the dlls.
- If I set it to the
.sln file, it errors with error MSB3202: The project file "/nix/store/wrapperProject/wrapperProject.csproj" was not found. (yes, without any hashes. probably it misinterprets paths somehow)
- If I set it to the
.csproj file, it eventually OOMs at 40 GB memory in dotnetConfigureHook
EDIT: Nevermind 2. & 3., it seems that projectFile must be a string and not a path.
| 18:15:30 |
GGG | not necessary, it'll be detected through deps.json | 20:31:40 |
| 4 Nov 2025 |
Emma [it/its] | hm, trying to follow the manual but it doesnt seem im able to include a project reference? | 02:09:28 |
Emma [it/its] | /tmp/fetch-deps-LibMatrix-1.0.0-preview.20251101-191010+9065475-dirty.QB8csD/lfp971jdzq2yfnqnyp3rhxngaj0ff50c-source/LibMatrix/LibMatrix.csproj : error NU1103: Unable to find a stable package ArcaneLibs with version (>= 0.0.0)
/tmp/fetch-deps-LibMatrix-1.0.0-preview.20251101-191010+9065475-dirty.QB8csD/lfp971jdzq2yfnqnyp3rhxngaj0ff50c-source/LibMatrix/LibMatrix.csproj : error NU1103: - Found 89 version(s) in nuget [ Nearest version: 1.0.0-preview9938860405.f09a666 ]
/tmp/fetch-deps-LibMatrix-1.0.0-preview.20251101-191010+9065475-dirty.QB8csD/lfp971jdzq2yfnqnyp3rhxngaj0ff50c-source/LibMatrix/LibMatrix.csproj : error NU1103: - Found 0 version(s) in /nix/store/aj7lxjjn3rl2bazsv9p0dfnv069j6rsq-dotnet-sdk-10.0.100-rc.2.25502.107/share/dotnet/library-packs
/tmp/fetch-deps-LibMatrix-1.0.0-preview.20251101-191010+9065475-dirty.QB8csD/lfp971jdzq2yfnqnyp3rhxngaj0ff50c-source/LibMatrix/LibMatrix.csproj : error NU1103: - Found 0 version(s) in _nix
Failed to restore /tmp/fetch-deps-LibMatrix-1.0.0-preview.20251101-191010+9065475-dirty.QB8csD/lfp971jdzq2yfnqnyp3rhxngaj0ff50c-source/LibMatrix/LibMatrix.csproj (in 1.87 sec).
getting this in the fetch-deps script | 02:10:21 |
Emma [it/its] | fwiw i have <PackageReference Include="ArcaneLibs" Version="*" Condition=" '$(ContinuousIntegrationBuild)'=='true' "/> and projectReferences = [ arcanelibs.packages."${pkgs.stdenv.hostPlatform.system}".ArcaneLibs ]; | 02:11:14 |
Corngood | Does ArcaneLibs have a share/nuget/packages/*.nupkg? | 02:44:32 |
Corngood | * Does ArcaneLibs have a share/nuget/packages/*.nupkg?
Edit: actually it's a bit more complicated than that. It should be $out/share/nuget/packages/name/version/...
If you use buildDotnetModule with packNupkg = true it'll usually do the right thing. | 02:47:45 |
Emma [it/its] | thats what it is yes | 02:49:23 |
Emma [it/its] | https://github.com/TheArcaneBrony/ArcaneLibs/blob/master/flake.nix#L33 | 02:49:44 |
Emma [it/its] | im actually using the output of it to publish to nuget directly (give or take a little usage of the zip package) | 02:50:59 |
Corngood | Can you --keep-failed and see what's in the nuget.config? | 03:24:31 |
Corngood | I can reproduce it. There's something about the package it doesn't work, because if I add avalonia from nixpkgs with a similar sort of reference it does work. Maybe it doesn't like the way the version is written? | 03:50:48 |
Emma [it/its] | hm, no clue, but i know this works fine with the nuget published builds | 04:48:11 |
| Vera Gradient joined the room. | 08:34:28 |
Manuel Bärenz | I got a fixed package from my partner and can now run it with dotnet run. I'd like to package it, but after dotnetConfigureHook I get:
Finished dotnetConfigureHook
jq: parse error: Invalid numeric literal at line 1, column 6
| 14:46:37 |
Corngood | In reply to @manuelbaerenz:matrix.org
I got a fixed package from my partner and can now run it with dotnet run. I'd like to package it, but after dotnetConfigureHook I get:
Finished dotnetConfigureHook
jq: parse error: Invalid numeric literal at line 1, column 6
Could you enable shell tracing and see what it's actually doing? | 15:25:29 |
Manuel Bärenz | I don't know how to do that inside the nix build | 15:25:59 |
Emma [it/its] | add set -x somewhere in your hook | 15:26:23 |
Emma [it/its] | unless thats not what corngood meant | 15:26:45 |
Corngood | Yeah, that's what I meant. Say preConfigure = "set -x";. I just couldn't remember if there was a better way to do it with NIX_DEBUG or something, but it doesn't look like it. | 15:30:17 |