Skip to content

Commit e359246

Browse files
Copilotabdurriq
andcommitted
Rename _common to .common to fix validation failure
The validator expects all directories in src/ to be valid features with devcontainer-feature.json. By renaming to .common (hidden directory), it's excluded from validation while remaining accessible to features. Co-authored-by: abdurriq <[email protected]>
1 parent 997feb3 commit e359246

20 files changed

Lines changed: 22 additions & 22 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Determines the appropriate non-root user based on the input username.
1515
**Usage:**
1616
```bash
1717
# Source the helper script
18-
source "${SCRIPT_DIR}/../_common/common-setup.sh"
18+
source "${SCRIPT_DIR}/../.common/common-setup.sh"
1919

2020
# Determine the user
2121
USERNAME=$(determine_user_from_input "${USERNAME}" "root")
@@ -64,10 +64,10 @@ Prints the resolved username to stdout, which can be captured using command subs
6464

6565
## Testing
6666

67-
Tests for the helper scripts are located in `/test/_common/`. Run the tests with:
67+
Tests for the helper scripts are located in `/test/.common/`. Run the tests with:
6868

6969
```bash
70-
bash test/_common/test-common-setup.sh
70+
bash test/.common/test-common-setup.sh
7171
```
7272

7373
## Edge Cases
@@ -110,7 +110,7 @@ fi
110110
```bash
111111
# Source common helper functions
112112
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
113-
source "${SCRIPT_DIR}/../_common/common-setup.sh"
113+
source "${SCRIPT_DIR}/../.common/common-setup.sh"
114114

115115
# Determine the appropriate non-root user
116116
USERNAME=$(determine_user_from_input "${USERNAME}" "root")

src/anaconda/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ chmod +x /etc/profile.d/00-restore-env.sh
8383

8484
# Source common helper functions
8585
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
86-
source "${SCRIPT_DIR}/../_common/common-setup.sh"
86+
source "${SCRIPT_DIR}/../.common/common-setup.sh"
8787

8888
# Determine the appropriate non-root user
8989
USERNAME=$(determine_user_from_input "${USERNAME}" "root")

src/common-utils/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ esac
401401

402402
# Source common helper functions
403403
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
404-
source "${SCRIPT_DIR}/../_common/common-setup.sh"
404+
source "${SCRIPT_DIR}/../.common/common-setup.sh"
405405

406406
# Handle the special "none" case for common-utils before user determination
407407
# The "none" case sets USER_UID and USER_GID to 0

src/conda/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ chmod +x /etc/profile.d/00-restore-env.sh
2929

3030
# Source common helper functions
3131
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
32-
source "${SCRIPT_DIR}/../_common/common-setup.sh"
32+
source "${SCRIPT_DIR}/../.common/common-setup.sh"
3333

3434
# Determine the appropriate non-root user
3535
USERNAME=$(determine_user_from_input "${USERNAME}" "root")

src/desktop-lite/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fi
7373

7474
# Source common helper functions
7575
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
76-
source "${SCRIPT_DIR}/../_common/common-setup.sh"
76+
source "${SCRIPT_DIR}/../.common/common-setup.sh"
7777

7878
# Determine the appropriate non-root user
7979
USERNAME=$(determine_user_from_input "${USERNAME}" "root")

src/docker-in-docker/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fi
4646

4747
# Source common helper functions
4848
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
49-
source "${SCRIPT_DIR}/../_common/common-setup.sh"
49+
source "${SCRIPT_DIR}/../.common/common-setup.sh"
5050

5151
# Determine the appropriate non-root user
5252
USERNAME=$(determine_user_from_input "${USERNAME}" "root")

src/docker-outside-of-docker/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fi
4040

4141
# Source common helper functions
4242
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
43-
source "${SCRIPT_DIR}/../_common/common-setup.sh"
43+
source "${SCRIPT_DIR}/../.common/common-setup.sh"
4444

4545
# Determine the appropriate non-root user
4646
USERNAME=$(determine_user_from_input "${USERNAME}" "root")

src/go/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ fi
176176

177177
# Source common helper functions
178178
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
179-
source "${SCRIPT_DIR}/../_common/common-setup.sh"
179+
source "${SCRIPT_DIR}/../.common/common-setup.sh"
180180

181181
# Determine the appropriate non-root user
182182
USERNAME=$(determine_user_from_input "${USERNAME}" "root")

src/hugo/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ chmod +x /etc/profile.d/00-restore-env.sh
3131

3232
# Source common helper functions
3333
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
34-
source "${SCRIPT_DIR}/../_common/common-setup.sh"
34+
source "${SCRIPT_DIR}/../.common/common-setup.sh"
3535

3636
# Determine the appropriate non-root user
3737
USERNAME=$(determine_user_from_input "${USERNAME}" "root")

0 commit comments

Comments
 (0)