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

Set RollForward on FSharpLint.Console to latestMajor #704

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Numpsy
Copy link
Contributor

@Numpsy Numpsy commented Mar 13, 2024

refs #687 , whereby it appears to not be able to process .NET 7 or 8 projects when running on .NET 6, and always using the latest version seems to help.

It looks like the current roll foward behaviour was added for #519 to fix issues where only a newer version than the tool was built with is available, but this change would make it just use the latest all the time (so for example, if you have 6 and 8 installed, then it will use 8 all the time).
I'm not sure if there is any potential to break anything that currently works though.

@knocte
Copy link
Collaborator

knocte commented Mar 13, 2024

Hey @Numpsy thanks for the PR!

refs #687 , whereby it appears to not be able to process .NET 7 or 8 projects when running on .NET 6, and always using the latest version seems to help.

It looks like the current roll foward behaviour was added for #519 to fix issues where only a newer version than the tool was built with is available, but this change would make it just use the latest all the time (so for example, if you have 6 and 8 installed, then it will use 8 all the time).
I'm not sure if there is any potential to break anything that currently works though.

Can you please include all this great info in the commit message please? commit messages can have body, not just a title.

Also, can you bring this to your PR: #687 (comment) This way we know for sure if the bug is fixed or not.

Numpsy and others added 4 commits March 14, 2024 11:42
refs fsprojects#687, whereby it appears to not be able to process .NET 7 or 8 projects when running on .NET 6, and always using the latest version seems to help.

It looks like the current roll foward behaviour was added for fsprojects#519 to fix issues where only a newer version than the tool was built with is available, but this change would make it just use the latest all the time (so for example, if you have 6 and 8 installed, then it will use 8 all the time).
Upload binaries as artifact before pushing to nuget.
Add job that tests release binaries on Windows with .NET8.
@Numpsy
Copy link
Contributor Author

Numpsy commented Mar 14, 2024

I tried pulling in those other commits and the build failed with the error from #687 , but in the logs I saw
image

Which looks like it was downloading the artifact for the test 0.24.3 build, but then installing the 0.24.2 build from NuGet. I've tried to fix that by adding --prerelease to the install command in the test so that it installs the test build

@Numpsy
Copy link
Contributor Author

Numpsy commented Mar 14, 2024

Failure now looks like the testReleaseBinariesInWindows8 step needs to do a paket restore before running the tool?

@Numpsy
Copy link
Contributor Author

Numpsy commented Mar 14, 2024

Ok, so it now seems to be running the tool ok, but failing the build due to an error exit code, which is something i suppose:

image

@knocte
Copy link
Collaborator

knocte commented Mar 14, 2024

Good progress Richard! But why would it throw this error here and not throw it in our SelfCheck CI step?

@Numpsy
Copy link
Contributor Author

Numpsy commented Mar 14, 2024

A bit of testing locally suggests that there is some difference in behavior depending on if the FSharplint.Core project has been built before linting than if it hasn't (and the additional test step here isn't doing a build, just a restore as it stands).

Possibly also related to the observation at #637 (comment) about different results when linting a single .fs file vs. doing the solution - If i run the 0.24.2 release against single files then I get the same warnings as the last CI build here got, whereas linting the built FSharplint.Core project has no warnings.

@Numpsy Numpsy changed the title Try setting RollForward on FSharpLint.Console to latestMajor Set RollForward on FSharpLint.Console to latestMajor Mar 15, 2024
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.

3 participants