-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 the version of meson #859
Pin the version of meson #859
Conversation
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.
Thank you!
@nazar-pc Do you think we need to pin the versions of |
Strange CI error 🤔 |
I don't think so |
Should I publish a new mediasoup release even before this PR lands? |
I think we might need to downgrade Meson, looks like latest version doesn't support Ubuntu 18.04 for some reason unless we are ready to drop support for 18.04, which I don't think we're ready to do just yet. |
Starting from 0.62.0rc1 Meson requires Python 3.7. So, yes we can try to downgrade to |
Yes, let's try that for now, we can bump requirements later, but we need to fix this for current users ASAP |
That is the latest version of Meson supporting Python 2.6 which is default version on Ubuntu 18.04
Will merge and release ASAP |
@@ -74,7 +75,7 @@ ifeq ($(wildcard $(PIP_DIR)),) | |||
echo "Installation failed, likely because PIP is unavailable, if you are on Debian/Ubuntu or derivative please install the python3-pip package" | |||
# Install `meson` and `ninja` using `pip` into custom location, so we don't | |||
# depend on system-wide installation. | |||
$(PYTHON) -m pip install --upgrade --target=$(PIP_DIR) $(PIP_BUILD_BINARIES) meson ninja | |||
$(PYTHON) -m pip install --upgrade --target=$(PIP_DIR) $(PIP_BUILD_BINARIES) meson==$(MESON_VERSION) ninja |
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.
Locking to an exact version means that pip cannot cleverly figure out which ones are compatible with your current system. A far, far, far better idea:
pip install "meson>=0.58,<=0.62.*"
This pins an allowable minimum/maximum range, which supports reasonably new Meson on systems with modern Python, while also handling archaic systems such as Ubuntu 18.04.
That being said, I'm probably duty-bound to say I'm not a fan of pinning versions... you'll need to babysit this to make sure it gets upgraded regularly, and I don't think tools such as dependabot or renovatebot (https://mend.io) can detect version pins as arbitrary lines in a Makefile.
3.10.1 released |
Rust version 0.10.0 released too |
The PR fixates the version of Meson to prevent unexpected built failures like this one in future.