Skip to content

Commit de0753e

Browse files
DEV: update gitpod to give user cache write permissions (fix pre-commit) (pandas-dev#52700)
1 parent 38b56a0 commit de0753e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitpod.yml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ tasks:
1414
git pull --unshallow # need to force this else the prebuild fails
1515
git fetch --tags
1616
python setup.py build_ext -j 4
17-
python -m pip install -e . --no-build-isolation
1817
echo "🛠 Completed rebuilding Pandas!! 🛠 "
1918
echo "✨ Pre-build complete! You can close this terminal ✨ "
2019

gitpod/gitpod.Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ WORKDIR ${WORKSPACE}
3434
# Build pandas to populate the cache used by ccache
3535
RUN git config --global --add safe.directory /workspace/pandas
3636
RUN conda activate ${CONDA_ENV} && \
37+
python -m pip install -e . --no-build-isolation && \
3738
python setup.py build_ext --inplace && \
3839
ccache -s
3940

@@ -43,4 +44,5 @@ RUN rm -rf ${WORKSPACE}
4344

4445
# -----------------------------------------------------------------------------
4546
# Always return to non privileged user
47+
RUN chown -R gitpod:gitpod /home/gitpod/.cache/
4648
USER gitpod

0 commit comments

Comments
 (0)