Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to use Central Package Management #17

Merged
merged 6 commits into from
Nov 16, 2024
Merged

Conversation

lahma
Copy link
Collaborator

@lahma lahma commented Nov 9, 2024

  • all versions in Directory.Packages.props
  • use net472 for executable projects (no nasty value tuple requirements)
  • latest versions of libraries

@lahma lahma force-pushed the cpm branch 4 times, most recently from 735e6b6 to 72cd3a2 Compare November 9, 2024 12:59
* all versions in Directory.Packages.props
* use net472 for executable projects
* latest versions of libraries
@lahma lahma marked this pull request as ready for review November 9, 2024 13:10
Copy link
Owner

@adams85 adams85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this too. 👍 However, this time I have some comments:

samples/Acornima.Cli/Helpers/ConsoleExtensions.cs Outdated Show resolved Hide resolved
samples/JsxTranspiler/JsxTranspiler.csproj Outdated Show resolved Hide resolved
test/Acornima.Tests/Acornima.Tests.csproj Outdated Show resolved Hide resolved
src/Acornima/Acornima.csproj Outdated Show resolved Hide resolved
src/Acornima/Acornima.csproj Outdated Show resolved Hide resolved
Comment on lines 20 to 21
<PackageVersion Include="System.Memory" Version="4.5.5" />
<PackageVersion Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<PackageVersion Include="System.Memory" Version="4.5.5" />
<PackageVersion Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />

@lahma
Copy link
Collaborator Author

lahma commented Nov 16, 2024

I have hopefully addressed review comments in the latest commit.

@lahma
Copy link
Collaborator Author

lahma commented Nov 16, 2024

The test failure on Windows is interesting, it seems that I get it on master too when testing locally.

@@ -21,7 +21,7 @@
<!-- Configure polyfills -->

<PropertyGroup>
<PolySharpIncludeGeneratedTypes Condition="'$(TargetFramework)' == 'net472'">
<PolySharpIncludeGeneratedTypes Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, love this!

Comment on lines 20 to 21
<PackageVersion Include="System.Memory" Version="4.5.5" />
<PackageVersion Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don't think we should list these two packages here (until they're needed somewhere else than the main package).

Suggested change
<PackageVersion Include="System.Memory" Version="4.5.5" />
<PackageVersion Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />

test/Acornima.Tests/Acornima.Tests.csproj Show resolved Hide resolved
@adams85
Copy link
Owner

adams85 commented Nov 16, 2024

The test failure on Windows is interesting, it seems that I get it on master too when testing locally.

Hmm, haven't been able to repro it locally so far.

I suspect it's related to .NET 9. More specifically, to the windows-latest runner images having been updated to .NET 9.

From the logs:

image

Just a wild guess but maybe .NET 9 has brought some regression in our stack space optimization. I need to do some further investigation. As for this PR, let's just ignore the failing tests for now.

@lahma
Copy link
Collaborator Author

lahma commented Nov 16, 2024

The test failure on Windows is interesting, it seems that I get it on master too when testing locally.

Hmm, haven't been able to repro it locally so far.

I suspect it's related to .NET 9. More specifically, to the windows-latest runner images having been updated to .NET 9.

I have NET 9 SDK installed locally too.

From the logs:

image

Added explicit references to Asn1 in build.csproj.

@lahma
Copy link
Collaborator Author

lahma commented Nov 16, 2024

OK battling with legacy framework doesn't feel like something I can contribute the time at the moment, I'll get back to this PR when I have the energy...

@lahma lahma closed this Nov 16, 2024
@adams85 adams85 reopened this Nov 16, 2024
@adams85
Copy link
Owner

adams85 commented Nov 16, 2024

You've already done 99% of the work, so let's not shelve this. I made the necessary changes to push this through the finish line.

I'm not sure though that CPM won't bite us in the ass in the future. Probably we should limit it to src and test projects only. Benchmarks, samples, etc. shouldn't really dictate what versions of dependencies to use in those projects.

But I'm leaving it as is for now and we'll see how it works out.

@adams85
Copy link
Owner

adams85 commented Nov 16, 2024

Thanks for the nice improvements once again!

@adams85 adams85 merged commit 20604c1 into adams85:master Nov 16, 2024
3 checks passed
@lahma lahma deleted the cpm branch November 16, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants