Skip to content

Conversation

@Numpsy
Copy link
Contributor

@Numpsy Numpsy commented Jul 4, 2025

An attempt at getting the Fornax docs build to work without Paket (it expects various dlls to be in certain places, where they used to be put by Paket)

Borrows the approach from #680 of using PackageDownload to get the packages, but isn't quite working in the CI yet with a failure i'm not clear on (I haven't used Fornax before)

]
for (label, dll) in dlls do
let output = MetadataFormat.Generate(dll, markDownComments = true, publicOnly = true, libDirs = libs)
let output = MetadataFormat.Generate(dllFile = dll, markDownComments = true, publicOnly = true, libDirs = libs, parameters = [("project-name", label)])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a go at fixing the 'no project name specified' error at https://github.com/Numpsy/FSharpLint/actions/runs/16079166194/job/45380884425#step:7:58

@Numpsy
Copy link
Contributor Author

Numpsy commented Jul 4, 2025

The CI needs #732 before it gets far enough to test this - this works locally for me on Windows at least

@Numpsy
Copy link
Contributor Author

Numpsy commented Jul 4, 2025

Will conflict with #723

@Numpsy Numpsy changed the title WIP: Try to get the docs building with NuGet instead of Paket Try to get the docs building with NuGet instead of Paket Jul 4, 2025
@Numpsy
Copy link
Contributor Author

Numpsy commented Jul 4, 2025

The 'deployReleaseBinaries' CI step seems to be running the unit tests 3 times - is that needed?

The CI has worked now at least though :-)

@Numpsy Numpsy marked this pull request as ready for review July 4, 2025 21:34
@xperiandri
Copy link
Collaborator

I don't see it running 3 times in YAML definition. Could you show me where you have seen that?

@Numpsy
Copy link
Contributor Author

Numpsy commented Jul 6, 2025

The build logs for the 'deplyReleseBinaries' step in https://github.com/fsprojects/FSharpLint/actions/runs/16099807422/job/45427611835 the logs make it look like the 'Build', 'Pack' and 'Upload binaries to 'NuGet' steps are each running the unit tests

@Numpsy
Copy link
Contributor Author

Numpsy commented Jul 6, 2025

Not sure what happened with the CI - the previous build at https://github.com/fsprojects/FSharpLint/actions/runs/16097394981/job/45422360643 worked

@Numpsy
Copy link
Contributor Author

Numpsy commented Jul 6, 2025

It's currently using an old version of Fornax that was built against .NET Core 3.1 - maybe it doesn't support the string interpolation changes?

@xperiandri
Copy link
Collaborator

Pretty much possible

@xperiandri
Copy link
Collaborator

Won't it build with a higher version of SDK? Or 3.1+9?

@Numpsy
Copy link
Contributor Author

Numpsy commented Jul 7, 2025

Won't it build with a higher version of SDK? Or 3.1+9?

I was thinking that there could be issues due to the versions of Fornax and FSharp.Formatting that it uses having a quite old version of FSharp.Compiler.Service built in to it, which can't handle the newer language syntax (just an assumption though).

The other PR to use the newer Fornax seems a better idea ging forwards though (don't really want to be depending on .NET Core 3.1 tool at this point)

@knocte
Copy link
Collaborator

knocte commented Jul 7, 2025

Hey @Numpsy sorry, seems I'm out of the loop but if Paket was removed in 457344c , what does this PR do?

@knocte
Copy link
Collaborator

knocte commented Jul 7, 2025

Hey @Numpsy sorry, seems I'm out of the loop but if Paket was removed...

Ah nevermind, I had only glimpsed only at the title and missed the word "docs". Ok, so this is also about Fornax.

@Numpsy
Copy link
Contributor Author

Numpsy commented Jul 10, 2025

superceeded by #736

@Numpsy Numpsy closed this Jul 10, 2025
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.

4 participants