mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04: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
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 \
|
frozendict \
|
||||||
jaeger-client \
|
jaeger-client \
|
||||||
opentracing \
|
opentracing \
|
||||||
prometheus-client \
|
# Match the version constraints of Synapse
|
||||||
|
"prometheus_client>=0.4.0,<0.9.0" \
|
||||||
psycopg2 \
|
psycopg2 \
|
||||||
pycparser \
|
pycparser \
|
||||||
pyrsistent \
|
pyrsistent \
|
||||||
|
@ -72,6 +72,10 @@ REQUIREMENTS = [
|
|||||||
# prom-client has a history of breaking backwards compatibility between
|
# prom-client has a history of breaking backwards compatibility between
|
||||||
# minor versions (https://github.com/prometheus/client_python/issues/317),
|
# minor versions (https://github.com/prometheus/client_python/issues/317),
|
||||||
# so we also pin the minor version.
|
# 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",
|
"prometheus_client>=0.4.0,<0.9.0",
|
||||||
# we use attr.validators.deep_iterable, which arrived in 19.1.0 (Note:
|
# 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
|
# Fedora 31 only has 19.1, so if we want to upgrade we should wait until 33
|
||||||
|
Loading…
Reference in New Issue
Block a user