Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit d7172a8

Browse files
authored
Work around dart-lang/sdk#47093
1 parent 6fb9982 commit d7172a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

containers/dart/.devcontainer/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ RUN if ! cat /etc/group | grep -e "^pub-cache:" > /dev/null 2>&1; then groupadd
2323
&& umask 0002 \
2424
&& mkdir -p ${PUB_CACHE} \
2525
&& chown :pub-cache ${PUB_CACHE} \
26-
&& sed -i -e "s/export PATH=/export PATH=\/usr\/local\/share\/pub-cache:/" /etc/profile.d/00-restore-env.sh
26+
&& sed -i -e "s/export PATH=/export PATH=\/usr\/local\/share\/pub-cache:/" /etc/profile.d/00-restore-env.sh \
27+
#
28+
# Fix incorrect privs if present on directories - https://github.com/dart-lang/dart-docker/issues/62, https://github.com/dart-lang/sdk/issues/47093
29+
&& chmod 755 "$DART_SDK" "$DART_SDK/bin"
2730

2831
# [Optional] Uncomment this section to install additional OS packages.
2932
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \

0 commit comments

Comments
 (0)