Skip to content

Commit 213a24a

Browse files
committed
Change sed command to update the file inplace.
pipe-ing to the file was causing an empty file.
1 parent d9d1e25 commit 213a24a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Dockerfile.tmpl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,9 @@ RUN pip uninstall -y pyarrow && \
114114
mamba install -y cudf cuml && \
115115
/tmp/clean-layer.sh
116116

117-
# TODO(neshdev): Resolve pandas dependency another way
118-
RUN cat /opt/conda/lib/python3.10/site-packages/cudf/api/types.py \
119-
| sed 's/^is_extension_type/# is_extension_type/g' \
120-
| sed 's/^is_categorical/# is_categorical/g' \
121-
> /opt/conda/lib/python3.10/site-packages/cudf/api/types.py
117+
# TODO: b/296444923 - Resolve pandas dependency another way
118+
RUN sed -i 's/^is_extension_type/# is_extension_type/g' /opt/conda/lib/python3.10/site-packages/cudf/api/types.py \
119+
&& sed -i 's/^is_categorical/# is_categorical/g' /opt/conda/lib/python3.10/site-packages/cudf/api/types.py
122120
{{ end }}
123121

124122
# Install PyTorch

0 commit comments

Comments
 (0)