mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-21 17:15:38 +03:00
Cap the version of prometheus_client to <v0.9.0 in the dockerfile (#8767)
Short-term fix for https://github.com/matrix-org/synapse/issues/8766.
This commit is contained in:
parent
34226ec761
commit
c087f68053
3 changed files with 7 additions and 1 deletions
1
changelog.d/8767.bugfix
Normal file
1
changelog.d/8767.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix a dependency versioning bug in the Dockerfile that prevented Synapse from starting.
|
|
@ -36,7 +36,8 @@ RUN pip install --prefix="/install" --no-warn-script-location \
|
|||
frozendict \
|
||||
jaeger-client \
|
||||
opentracing \
|
||||
prometheus-client \
|
||||
# Match the version constraints of Synapse
|
||||
"prometheus_client>=0.4.0,<0.9.0" \
|
||||
psycopg2 \
|
||||
pycparser \
|
||||
pyrsistent \
|
||||
|
|
|
@ -72,6 +72,10 @@ REQUIREMENTS = [
|
|||
# prom-client has a history of breaking backwards compatibility between
|
||||
# minor versions (https://github.com/prometheus/client_python/issues/317),
|
||||
# so we also pin the minor version.
|
||||
#
|
||||
# Note that we replicate these constraints in the Synapse Dockerfile while
|
||||
# pre-installing dependencies. If these constraints are updated here, the
|
||||
# same change should be made in the Dockerfile.
|
||||
"prometheus_client>=0.4.0,<0.9.0",
|
||||
# we use attr.validators.deep_iterable, which arrived in 19.1.0 (Note:
|
||||
# Fedora 31 only has 19.1, so if we want to upgrade we should wait until 33
|
||||
|
|
Loading…
Reference in a new issue