!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

130 Members
23 Servers

Load older messages


SenderMessageTime
17 Dec 2024
@6pak:matrix.org6pakI assume you don't want a prerelease version for "Data Preservation Suite"22:31:49
@corngood:corngood.comCorngoodI also don't really understand why it would have built before, but maybe the previous SDK was less strict about checking features or something? 22:32:25
@6pak:matrix.org6paklikely22:32:38
@6pak:matrix.org6pakref safety got a lot of changes recently22:32:48
@6pak:matrix.org6pakbut generally you get new warnings/errors when you switch to a newer langversion, not just the compiler22:33:11
@corngood:corngood.comCorngood So I guess you could either set LangVersion globally or patch the specific csproj 22:33:30
@corngood:corngood.comCorngoodMay end up being a can of worms though22:33:44
@gggkiller:matrix.orgGGG
In reply to @corngood:corngood.com
I also don't really understand why it would have built before, but maybe the previous SDK was less strict about checking features or something?
Could be some changes to overload resolution
22:34:00
@gggkiller:matrix.orgGGGThey do those quite often afaik22:34:18
@whovian9369:matrix.orgWhovian9369 Yeah, that's the lts version while the newer versions are WIP. If you look at my Flake, it's split into three versions - lts, prerelease, and git for experimentation in case people want to use specific versions.
https://github.com/Whovian9369/aaru-nix-flake/blob/main/flake.nix#L14
22:38:48
@corngood:corngood.comCorngood

GGG, 6pak I am interested in the things you were discussing earlier. I'm not sure where to go with it exactly.

Runtime-specific nuget dependencies has been on my mind for a bit, but how do we get there? One way would be to clear $NUGET_PACKAGES between restoring each platform. And then you wouldn't want to bloat the deps file, so you'd also need to group them by runtime somehow.

22:39:12
@corngood:corngood.comCorngood *

GGG, 6pak I am interested in the things you were discussing earlier. I'm not sure where to go with it exactly.

Runtime-specific nuget dependencies has been on my mind for a bit, but how do we get there? One way would be to clear $NUGET_PACKAGES between restoring each platform. And then you wouldn't want to bloat the deps file, so you'd also need to group them by runtime somehow.

... maybe we should make an issue to discuss that specifically, if one doesn't already exist.

22:39:30
@6pak:matrix.org6pakimo step one is fetch-deps not restoring at all22:39:55
@6pak:matrix.org6pak GenerateRestoreGraphFile looked like it had everything we need 22:40:42
@6pak:matrix.org6pakand it's what the dotnet cli uses for the package subcommand22:40:53
@6pak:matrix.org6pakand we have the privilege of dropping ancient dotnet sdk versions, so we can just assume it's there22:41:11
@gggkiller:matrix.orgGGG
In reply to @corngood:corngood.com

GGG, 6pak I am interested in the things you were discussing earlier. I'm not sure where to go with it exactly.

Runtime-specific nuget dependencies has been on my mind for a bit, but how do we get there? One way would be to clear $NUGET_PACKAGES between restoring each platform. And then you wouldn't want to bloat the deps file, so you'd also need to group them by runtime somehow.

... maybe we should make an issue to discuss that specifically, if one doesn't already exist.

I think you could just restore to separate folders and combine the results into one JSON file
22:42:04
@whovian9369:matrix.orgWhovian9369

So I think I've hit a bit of a wall with trying to build my lts output... I may just say that it's "Deprecated" and call it a day unfortunately.

$  ./result/bin/aaru --version
Unhandled exception. System.TypeInitializationException: The type initializer for 'Microsoft.EntityFrameworkCore.Query.Internal.NavigationExpandingExpressionVisitor' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'Microsoft.EntityFrameworkCore.Query.QueryableMethods' threw an exception.
 ---> System.InvalidOperationException: Sequence contains more than one matching element
   at System.Linq.ThrowHelper.ThrowMoreThanOneMatchException()
   at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
   at Microsoft.EntityFrameworkCore.Query.QueryableMethods..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.EntityFrameworkCore.Query.QueryableMethods.get_FirstWithPredicate()
   at Microsoft.EntityFrameworkCore.Query.Internal.NavigationExpandingExpressionVisitor..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.EntityFrameworkCore.Query.Internal.NavigationExpandingExpressionVisitor.Expand(Expression query)
   at Microsoft.EntityFrameworkCore.Query.QueryTranslationPreprocessor.Process(Expression query)
   at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.Storage.Database.CompileQuery[TResult](Expression query, Boolean async)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileQueryCore[TResult](IDatabase database, Expression query, IModel model, Boolean async)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass9_0`1.<Execute>b__0()
   at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQueryCore[TFunc](Object cacheKey, Func`1 compiler)
   at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQuery[TResult](Object cacheKey, Func`1 compiler)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.Execute[TResult](Expression expression)
   at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1.GetEnumerator()
   at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Collections.Generic.IEnumerable<TEntity>.GetEnumerator()
   at System.Linq.Lookup`2.Create(IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)
   at System.Linq.GroupedEnumerable`2.GetEnumerator()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.DistinctIterator`1.MoveNext()
   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
   at Aaru.MainClass.Main(String[] args)
[1]    96898 abort      ./result/bin/aaru --version
22:42:07
@gggkiller:matrix.orgGGGHaving a key to specify which platforms you download that package for and then we filter it based on targetPlatform22:42:26
@gggkiller:matrix.orgGGG
In reply to @6pak:matrix.org
GenerateRestoreGraphFile looked like it had everything we need
Does it have the hashes for the packages in a format we can consume for the lockfile as well? Never heard of that
22:42:52
@6pak:matrix.org6pak

Never heard of that

I don't think it's documented, but nothing in msbuild land ever is ;p

22:43:22
@gggkiller:matrix.orgGGGYeah, fair enough22:43:35
@gggkiller:matrix.orgGGGNixpkgs has been the only reason I've ever looked into these build specific .net internals22:43:54
@6pak:matrix.org6pakit doesn't have hashes annoyingly, even though it could22:43:56
@6pak:matrix.org6pakwe can always grab it from the nuget server though22:44:20
@corngood:corngood.comCorngoodThat would be great, but there are a lot of annoying edge cases to test.22:45:35
@6pak:matrix.org6pakthe big exception are the nuget msbuild sdks which bypass the regular resolving22:47:06
@gggkiller:matrix.orgGGGthere are also some packages which download packages outside of the restore target iirc22:47:39
@corngood:corngood.comCorngoodSorry if I missed the context above, but is the problem just that it's on an EOL SDK? I personally would just allow the insecure dependency and continue to use it as is.22:47:40
@gggkiller:matrix.orgGGG or that don't use PackageReference and instead do something else 22:48:10

Show newer messages


Back to Room ListRoom Version: 9