-
Notifications
You must be signed in to change notification settings - Fork 28
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
Pin munki-facts to munkipython and remove all pre 3.6 deprecated code #17
Conversation
Ping on this @gregneagle |
So we need to communicate widely that this change will break any munki-facts you happen to deploy that are not Python-3 compatible. |
Are all the included facts Python 3-ready? |
Good call. I just tested them and 3 had issues. They are now fixed.
The catalina and mojave scripts are out of date, but I don't think it's relevant to fix them for this PR. |
@gregneagle any thoughts here? |
The shebang line will need to change for Munki 5.1, so let’s make that change now and then merge this after Munki 5.1 ships. |
Done. |
🏓 |
As I mentioned before, I'll merge this after the Munki 5.1 release. |
Disregard, I forgot. 🤣 I saw an internal PR and pinged this as a result. |
Let it be known that this internal PR stated this very fact about 5.1. |
Let it be known I don't read your comments 🤣 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5.1 Munki path changed back.
@@ -1,13 +1,13 @@ | |||
#!/usr/bin/python | |||
#!/usr/local/munki/munki-python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be #!/usr/local/munki/python
now I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely not that!
(and we're back to /usr/local/munki/munki-python
...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make up our minds! 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As stated, DISREGARD THIS :D It's fine again.
@gregneagle what do I need to do here to get this merged? |
I've reworked all of the munki-facts code to stop supporting deprecated modules
This will mean that munki-facts will only support python 3.6 and higher, but this will also use munki 4.0's built in python, which uses python 3.7. I think given the upcoming changes to macOS, it would be prudent to make this breaking change now and give people a migration path.