Skip to content

Commit c005f81

Browse files
authored
chown -R faster (rapidsai#321)
* use find and xargs to mimic a faster parallel chown -R, ignore permissions errors * update kvikio path * fix typo
1 parent ffe52f4 commit c005f81

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

features/src/rapids-build-utils/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "NVIDIA RAPIDS devcontainer build utilities",
33
"id": "rapids-build-utils",
4-
"version": "24.8.3",
4+
"version": "24.8.4",
55
"description": "A feature to install the RAPIDS devcontainer build utilities",
66
"containerEnv": {
77
"BASH_ENV": "/etc/bash.bash_env"

features/src/rapids-build-utils/opt/rapids-build-utils/manifest.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ repos:
4545
depends: [rmm]
4646
python:
4747
- name: kvikio
48-
sub_dir: python
48+
sub_dir: python/kvikio
4949
depends: [KvikIO]
5050
args: {cmake: -DFIND_KVIKIO_CPP=ON}
5151

features/src/utils/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "devcontainer-utils",
33
"id": "utils",
4-
"version": "24.8.2",
4+
"version": "24.8.3",
55
"description": "A feature to install RAPIDS devcontainer utility scripts",
66
"containerEnv": {
77
"BASH_ENV": "/etc/bash.bash_env"

features/src/utils/opt/devcontainer/bin/post-start-command.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#! /usr/bin/env bash
22

33
if test -z "${SKIP_DEVCONTAINER_UTILS_POST_START_COMMAND:-}"; then
4-
find ~/ -maxdepth 1 -exec bash -c '\
5-
[ $(stat -c "%u:%g" "$0") != "$1" ] && \
6-
sudo chown -R "$1" "$0"' {} "$(id -u):$(id -g)" \;
4+
# Fast parallel `chown -R`
5+
find ~/ -not -user coder -print0 2>/dev/null \
6+
| sudo xargs -0 -r -n1 -P"$(nproc --all)" chown "$(id -u):$(id -g)" 2>/dev/null \
7+
|| true;
78

89
# shellcheck disable=SC1091
910
. devcontainer-utils-init-git;

0 commit comments

Comments
 (0)