Skip to content

Fix for #2361 - #2364

Merged
matthid merged 1 commit into
fsprojects:release/nextfrom
seanamosw:fix-findpaket-win
Aug 25, 2019
Merged

matthid merged 1 commit into
fsprojects:release/nextfrom
seanamosw:fix-findpaket-win

Conversation

@seanamosw

Copy link
Copy Markdown
Contributor

Description

Fixes #2361 by inverting the original logic.
The code used to first search for paket. On Windows when using the paket dotnet tool installed with -toolpath, this would find a paket subfolder of the dotnet tool.
It would never reach the code to search forpaket.exe.

I've changed this to first search for paket.exe, if not found, then it will search for paket.

@matthid

matthid commented Aug 1, 2019

Copy link
Copy Markdown
Member

Thanks for taking care of this. I guess this does fix #2242 as well?

@matthid

matthid commented Aug 1, 2019

Copy link
Copy Markdown
Member

Should we add a test for this?

@matthid matthid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks reasonable.

@seanamosw

Copy link
Copy Markdown
Contributor Author

Thanks for taking care of this. I guess this does fix #2242 as well?

Yes, it looks to be exactly the same issue.

Should we add a test for this?

I could see it being useful to catch potential future regressions here.

@seanamosw

Copy link
Copy Markdown
Contributor Author

@matthid Is there anything more you need done for this? We have some windows devs/windows builds that are blocked by this.

@matthid

matthid commented Aug 7, 2019

Copy link
Copy Markdown
Member

I assumed/hoped you would add the test :)

builds that are blocked by this.

Couldn't you just 'dotnet pack' this module and add it to your internal feed to unblock yourself temporarily?

@seanamosw

seanamosw commented Aug 7, 2019 •

Copy link
Copy Markdown
Contributor Author

We use paket.template files, obviously don't want to rework that.
Edit: I misunderstood. Yes, we could do that.

I'll see if I can get a test added for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-tests This PR needs tests in order to be accepted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

findPaketExecutable finds incorrect path on Windows when using Paket dotnet cli tool

2 participants