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

Problems with SystemVersion #20

Closed
GregOriol opened this issue Jun 3, 2021 · 1 comment · Fixed by #21
Closed

Problems with SystemVersion #20

GregOriol opened this issue Jun 3, 2021 · 1 comment · Fixed by #21

Comments

@GregOriol
Copy link
Contributor

Hi @andrealufino,

I have 2 issues with the SystemVersion struct:
1/ it seems that major, minor and path values are currently all set to the "first" component

            major = Int(components.first!)!
            minor = Int(components.first!)!
            patch = Int(components.first!)!

which doesn't seem correct?

2/ there doesn't seem to be any way to retrieve any of the values, either major/minor/patch or the full string value as everything is private, which makes it mostly useless?

@andrealufino
Copy link
Owner

The pull request @GregOriol made should fix the problem. Thanks @GregOriol 👍🏻

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 a pull request may close this issue.

2 participants