Paket icon indicating copy to clipboard operation
Paket copied to clipboard

Re-add Changes Lost From #4272

Open 1eyewonder opened this issue 1 year ago • 11 comments

This PR is re-adding some code that was lost from #4272 when code was getting bumped for various v9 things. If this code was purposefully removed, feel free to close this PR but I didn't see anything obvious as to why it may have been removed. I figured I would keep it at net8 for now since that was previously approved. We can then work on doing any net9 updates desired in later PRs

1eyewonder avatar Jan 28 '25 17:01 1eyewonder

Paket Lock Diff Report

This report was generated via Paket Lock Diff

Additions - (0)

Removals - (5)

Version Upgrades - (2)

Version Downgrades - (0)

1eyewonder avatar Jan 28 '25 17:01 1eyewonder

I believe these changes should be good to go. The failing tests seemed normal as mentioned in the discussion on #4272. Let me know if I can update anything else 😄

1eyewonder avatar Jan 28 '25 21:01 1eyewonder

@1eyewonder, could you check those:

  • keeping at least the target list formatted as it was in build.fsx
  • setting framework restrictions framework: >= net461, >= net8.0 in the paket.dependencies in case it removes some bloat in the .lock file
  • seeing if we should remove the other redirects: force (I assume it is pointless given executables are ilmerged)

Thanks for the updates.

smoothdeveloper avatar Jan 29 '25 01:01 smoothdeveloper

@smoothdeveloper Sorry, I had VSCode set to format on save! Made all the necessary changes. Good call on the framework restrictions 😎

1eyewonder avatar Jan 29 '25 03:01 1eyewonder

Actually spoke too soon. Looking into some errors

1eyewonder avatar Jan 29 '25 03:01 1eyewonder

Sorry, framework restrictions work without :

framework >= net461, >= net80

smoothdeveloper avatar Jan 29 '25 12:01 smoothdeveloper

Paket Lock Diff Report

This report was generated via Paket Lock Diff

Additions - (0)

Removals - (46)

Version Upgrades - (3)

Version Downgrades - (0)

1eyewonder avatar Jan 29 '25 18:01 1eyewonder

@smoothdeveloper It appears adding the framework restrictions and removing the Newtonsoft redirect is causing build issues on the build server. Have any ideas as to what the errors could mean? I'm interpreting this as a FAKE build issue but I could be wrong

1eyewonder avatar Jan 29 '25 18:01 1eyewonder

@smoothdeveloper It appears adding the framework restrictions and removing the Newtonsoft redirect is causing build issues on the build server. Have any ideas as to what the errors could mean? I'm interpreting this as a FAKE build issue but I could be wrong

Does it work to set a framework restriction of >= net461, >= net80 when Paket.Core is built as .NET Standard 2.0? (I mean, does it need to include netstandard2.0 in the restriction as well?)

Numpsy avatar Feb 10 '25 19:02 Numpsy

@Numpsy, AFAIU, it is about the package resolution that relies only on package metadata; not reliant on the runtime paket executable is running.

I need to look at the branch again and see if the tweaks I suggested are worth anything / what is causing the issue with CI.

smoothdeveloper avatar Feb 10 '25 20:02 smoothdeveloper

I'm not sure, but if I build this branch locally I get the same error and then the netstandard2.0 paket file here is empty: image

and Rider shows the .NET Standard build of Paket.Core as having no NuGet dependencies.

If I add netstandard2.0 to the framework list, then it seems to work.

Numpsy avatar Feb 12 '25 18:02 Numpsy

I ended up reverting the changes involving the framework restrictions in the paket.dependencies since they were causing issues in the CI at the moment. I'd say we try to tackle the issue in another PR since this gets the code back in which appeared to be accidentally removed. I think this should be good to go, but let me know if people think otherwise.

1eyewonder avatar Jun 25 '25 03:06 1eyewonder

Here is the paket.lock diff after reverting the changes

Paket Lock Diff Report

This report was generated via Paket Lock Diff

Additions - (0)

Removals - (5)

Version Upgrades - (2)

Version Downgrades - (0)

1eyewonder avatar Jun 25 '25 03:06 1eyewonder

Has the CI stopped running for pull requests?

Numpsy avatar Jun 25 '25 10:06 Numpsy

thanks! let's try this with 10.0.0-alpha005

forki avatar Nov 11 '25 17:11 forki