Skip to content

Commit

Permalink
astroid: fix coverage builds (#12558)
Browse files Browse the repository at this point in the history
This is a temporary fix until Python 3.9+ is supported.
  • Loading branch information
correctmost authored Oct 2, 2024
1 parent 341b2fd commit c3df2de
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion projects/astroid/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@ RUN pip3 install --disable-pip-version-check --no-cache-dir pip==24.2

# Pin the astroid version to 3.2.4 until Python 3.9+ is supported on OSS-Fuzz:
# https://github.com/google/oss-fuzz/pull/12027
RUN git clone --depth=1 --branch=v3.2.4 https://github.com/pylint-dev/astroid
RUN git clone --branch=v3.2.4 https://github.com/pylint-dev/astroid

# Apply crash fixes to fix coverage builds:
# https://github.com/pylint-dev/astroid/pull/2596
# https://github.com/pylint-dev/astroid/pull/2597
RUN cd astroid && \
git show dfe1ccce8576fd5854e7eb578985d10f464c1b67 > crash.diff && \
git apply --exclude=ChangeLog crash.diff && \
git show d174ca24bde0bba7df63f024124381efe908330d > crash.diff && \
git apply crash.diff && \
rm crash.diff

COPY *.py *.sh "$SRC/"

Expand Down

0 comments on commit c3df2de

Please sign in to comment.