diff --git a/go/.devcontainer/Dockerfile b/go/.devcontainer/Dockerfile index 72b1aa7..2a2a766 100644 --- a/go/.devcontainer/Dockerfile +++ b/go/.devcontainer/Dockerfile @@ -1,10 +1,10 @@ FROM golang:1.26-bookworm RUN apt-get update \ - && apt-get install -y build-essential \ + && apt-get install -y build-essential ripgrep \ && rm -rf /var/lib/apt/lists/* ARG USERNAME=developer ARG USER_UID=1000 ARG USER_GID=$USER_UID -RUN groupadd --gid $USER_GID $USERNAME && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME +RUN groupadd --gid $USER_GID $USERNAME && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ No newline at end of file diff --git a/go/.devcontainer/devcontainer.json b/go/.devcontainer/devcontainer.json index 933cbe5..8441e28 100644 --- a/go/.devcontainer/devcontainer.json +++ b/go/.devcontainer/devcontainer.json @@ -5,12 +5,17 @@ }, "postCreateCommand": "go install github.com/go-delve/delve/cmd/dlv@latest && go install github.com/cweill/gotests/gotests@v1.9.0 && go install golang.org/x/tools/gopls@latest && go install golang.org/x/tools/cmd/goimports@latest && go install honnef.co/go/tools/cmd/staticcheck@latest", "customizations": { - "vscode": { "extensions": [ - "golang.go", - "gruntfuggly.todo-tree", - "-github.copilot" - ]} + "vscode": { + "extensions": [ + "golang.go", + "gruntfuggly.todo-tree", + "-github.copilot" + ], + "settings": { + "todo-tree.ripgrep.ripgrep": "/usr/bin/rg" + } + } }, "remoteUser": "developer", "updateRemoteUserUID": true -} +} \ No newline at end of file