Skip to content

Commit f71664a

Browse files
fix: address best-practice deviations and inconsistencies across features (#123)
* fix: address best-practice deviations and inconsistencies across features Agent-Logs-Url: https://github.com/georglauterbach/dev-container-features/sessions/eda26b99-e515-4676-998c-d52485b321a1 Co-authored-by: georglauterbach <44545919+georglauterbach@users.noreply.github.com> * chore: bump versions of `lang-rust` and `lang-sh` Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> --------- Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: georglauterbach <44545919+georglauterbach@users.noreply.github.com>
1 parent c898fd1 commit f71664a

8 files changed

Lines changed: 8 additions & 10 deletions

File tree

src/hermes/install.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#! /bin/sh
22

3-
# shellcheck disable=SC2154
4-
53
set -e -u
64

75
mkdir -p /usr/local/bin/

src/lang-rust/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To enable pretty printing in the debugger, add the setting
3838

3939
```jsonc
4040
"lldb.launch.preRunCommands": [
41-
"command script import ${containerEnv:DCF_LANG_RUST_LLDB_PRETTIFIER}"
41+
"command script import ${containerEnv:DCF_LANG_RUST_DIR}/lldb_prettifier.py"
4242
]
4343
```
4444

src/lang-rust/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "lang-rust",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"name": "Programming Language | Rust",
55
"documentationURL": "https://github.com/georglauterbach/dev-container-features/tree/main/src/lang-rust",
66
"description": "This Feature provides language support for Rust.",

src/lang-rust/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ rustup_adjustments() {
3333

3434
copy_lldb_prettifiers() {
3535
cp "scripts/lldb_prettifier.py.txt" "${DCF_LANG_RUST_DIR}/lldb_prettifier.py"
36-
chmod 777 "${DCF_LANG_RUST_DIR}/lldb_prettifier.py"
36+
chmod 644 "${DCF_LANG_RUST_DIR}/lldb_prettifier.py"
3737
}
3838

3939
main() {

src/lang-sh/devcontainer-feature.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// cSpell: ignore timonwong
22
{
33
"id": "lang-sh",
4-
"version": "0.5.0",
4+
"version": "0.6.0",
55
"name": "Programming Language | Shell",
66
"documentationURL": "https://github.com/georglauterbach/dev-container-features/tree/main/src/lang-sh",
77
"description": "This Feature provides language support for Shell.",
88
"containerEnv": {
99
// can be used to easily source 'libbash' by running
1010
// 'source "${DCF_LANG_SH_DIR}/libbash" [<LIBBASH ARGUMENTS>...]'
11-
"DCF_LANG_SH_DIR": "/usr/local/share/dev_containers/features/ghcr.io/georglauterbach/lang_sh"
11+
"DCF_LANG_SH_DIR": "/usr/local/share/dev_containers/features/ghcr_io/georglauterbach/lang_sh"
1212
},
1313
"customizations": {
1414
"vscode": {

src/lang-sh/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e -u
44

5-
readonly DCF_LANG_SH_DIR=/usr/local/share/dev_containers/features/ghcr.io/georglauterbach/lang_sh
5+
readonly DCF_LANG_SH_DIR=/usr/local/share/dev_containers/features/ghcr_io/georglauterbach/lang_sh
66

77
mkdir -p "${DCF_LANG_SH_DIR}"
88
cp configuration/shellcheck.conf "${DCF_LANG_SH_DIR}"

src/vscode-cache-extensions/README.md

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

22
# VS Code | Cache Extensions (vscode-cache-extensions)
33

4-
This Fearure prevents superfluous (re-)installations of VS Code extensions upon container restarts.
4+
This Feature prevents superfluous (re-)installations of VS Code extensions upon container restarts.
55

66
## Example Usage
77

src/vscode-cache-extensions/install.sh

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

1414
# We create the mount point and temporary directories here with the
1515
# correct permissions. This is imperative for the mount point as
16-
# the volume mount will cary over the _permissions_ of an existing
16+
# the volume mount will carry over the _permissions_ of an existing
1717
# directory. We _cannot_ use `chown` here because of
1818
# `updateRemoteUserUID: true` in some cases, which would result in
1919
# a UID mismatch; hence, we need `777` as the permissions.

0 commit comments

Comments
 (0)