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

Os type check seems wrong #356

Closed
justixLoL opened this issue May 20, 2022 · 5 comments
Closed

Os type check seems wrong #356

justixLoL opened this issue May 20, 2022 · 5 comments

Comments

@justixLoL
Copy link

Hi Holger,

It seems that comparison of current os should be changed from equals to contains:

Cause on version 4.0.2 I get the error
[kscript] [ERROR] Unsupported OS: darwin21 because 'darwin' in your enum != 'darwin21'
On version 4.0.0 all is good

@holgerbrandl
Copy link
Collaborator

Sorry for inconvenience. Could you submit a PR to the 4.1 branch?

@justixLoL
Copy link
Author

@holgerbrandl Sure

justixLoL pushed a commit to justixLoL/kscript that referenced this issue May 20, 2022
@justixLoL
Copy link
Author

@holgerbrandl #357

aartiPl pushed a commit that referenced this issue May 20, 2022
bugfix: issue #356 - fix ostype comparison

Co-authored-by: holgerbrandl@gmail.com <holgerbrandl@users.noreply.github.com>
Co-authored-by: Aleksandr Kolodiazhnyi <akolodyazhni@Aleksandrs-MBP.localdomain>
@aartiPl
Copy link
Collaborator

aartiPl commented May 20, 2022

I have backported it also to the master branch. In fact, I think that Mac is reporting OSTYPE incorrectly - it should contain only single information about the type of OS, not a specific version or any additional information.

Maybe we can wait a bit if something pops up, and if not - do another bugfix release.

@aartiPl
Copy link
Collaborator

aartiPl commented May 29, 2022

Should be fixed in 4.0.3 - please reopen if the problem persists...

@aartiPl aartiPl closed this as completed May 29, 2022
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

No branches or pull requests

3 participants