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

Update matching platform check 🚀 #3797

Merged
merged 1 commit into from
Feb 17, 2020
Merged

Conversation

Krzysztof-Cieslak
Copy link
Member

os:mono and os:windows are behaving wrongly for .Net Core version of the Paket. This is caused by the fact the check depends on isMonoRuntime function which on .Net Core always return false which caused os:mono to never be matched, and os:windows be matched on all platforms.

The workaround for the problem is to use os:win, os:linux and os:osx - but it's breaking change for anyone already using those checks who just wanted to modernize build infrastructure (👋).

Fix makes old syntax works correctly also on .Net Core by using the same checks as for os:win, os:osx and os:linux.
os:windows will behave just like os:win and os:mono will be os:osx || os:linux

`os:mono` and `os:windows` are behaving wrongly for .Net Core version of the Paket. This is caused by the fact the check depends on `isMonoRuntime` function which on .Net Core always return `false` which caused `os:mono` to never be matched, and `os:windows` be matched on all platforms.

The workaround for the problem is to use `os:win`, `os:linux` and `os:osx` - but it's breaking change for anyone already using those checks who just wanted to modernize build infrastructure (👋). 

Fix makes old syntax works correctly also on .Net Core by using the same checks as for `os:win`, `os:osx` and `os:linux`. 
`os:windows` will behave just like `os:win` and `os:mono` will be `os:osx || os:linux`
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.

None yet

2 participants