!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

126 Members
24 Servers

Load older messages


SenderMessageTime
19 Dec 2024
@gggkiller:matrix.orgGGGAt least that's what they claim: > Package content mismatch: If the same package (id and version) is present with different content across repositories, then NuGet cannot ensure the same package (with the same content hash) gets resolved every time. It also does not warn/error out in such cases. Using the lock file will help you in resolving to the same versions always. (from: https://devblogs.microsoft.com/nuget/enable-repeatable-package-restores-using-a-lock-file/)07:40:00
@6pak:matrix.org6pak actually nuget uses contentHash, which ignores the signature 12:01:29
@6pak:matrix.org6pakwhich is why, at least in my case the hash was the same for both sources in packages.lock.json12:01:53
@6pak:matrix.org6pakbut different in fetchNupkg12:01:57
@6pak:matrix.org6pak * but different in fetchNuGet12:02:03
@6pak:matrix.org6pak from the first glance, that's not what the code does 12:03:55
@6pak:matrix.org6pakbut turns out I don't have a test case to check12:04:11
@6pak:matrix.org6pak can we do the same in nix somehow? otherwise we wont be able to reuse any kind of hashes from nuget metadata 12:10:30
@gggkiller:matrix.orgGGG might be possible if we undo the signature in the fetchurl postPatch step 12:12:28
@gggkiller:matrix.orgGGGonly if the hashes match though12:12:38
@6pak:matrix.org6pakimage.png
Download image.png
12:20:18
@6pak:matrix.org6pak;p12:20:22
@gggkiller:matrix.orgGGGowell, guess they lied then12:20:55
@gggkiller:matrix.orgGGGsmh my head12:21:03
@6pak:matrix.org6pakthe same can happen randomly without switching the source order if the first one is slow enough12:21:03
@6pak:matrix.org6pak * the same can happen randomly without switching the source order if the first request is slow enough12:21:10
@6pak:matrix.org6pakthis is so cursed12:21:47
@6pak:matrix.org6pakPackageReference should have a required Source property, change my mind12:23:00
@gggkiller:matrix.orgGGGI don't think it should matter honestly, unless if we're dealing with adversary sources or something12:23:53
@6pak:matrix.org6paknuget.org is an adversary source12:24:27
@6pak:matrix.org6pakanyone can upload there12:24:31
@6pak:matrix.org6pakand if you rely on a internal package thats not on nuget.org12:24:40
@6pak:matrix.org6pakanyone can claim the package id there12:24:46
@6pak:matrix.org6pakand you will just restore that instead if you dont have package source mappings setup12:25:03
@gggkiller:matrix.orgGGGfair12:25:12
@6pak:matrix.org6pakcustom sources without mapping is a big security risk12:25:17
@6pak:matrix.org6pakand shouldn't be allowed imo12:25:20
@6pak:matrix.org6paklike at all12:25:27
@gggkiller:matrix.orgGGGI guess that's the point of having nuget lockfiles12:25:36
@gggkiller:matrix.orgGGGif they didn't suck so much12:25:39

Show newer messages


Back to Room ListRoom Version: 9