From 092032c776b58288ef209460b42b39f7a740474a Mon Sep 17 00:00:00 2001 From: Chuck Lantz Date: Fri, 13 Aug 2021 16:07:53 +0000 Subject: [PATCH] Bump to 0.191.0 --- .devcontainer/Dockerfile | 7 +++---- .devcontainer/devcontainer.json | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index f8c001d..776ee8f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,11 +1,10 @@ -# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.185.0/containers/go/.devcontainer/base.Dockerfile +# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.191.0/containers/go/.devcontainer/base.Dockerfile ARG VARIANT="1" FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT} -# [Optional] Install a version of Node.js using nvm for front end dev -ARG INSTALL_NODE="true" +# [Choice] Node.js version: lts/*, 16, 14, 12, 10 ARG NODE_VERSION="lts/*" -RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi +RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c ". /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi # [Optional] Uncomment this section to install additional OS packages. # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 27fccb5..6d7ea70 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ // For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at: -// https://github.com/microsoft/vscode-dev-containers/tree/v0.185.0/containers/go +// https://github.com/microsoft/vscode-dev-containers/tree/v0.191.0/containers/go { "name": "Go", "build": { @@ -8,7 +8,6 @@ // Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.15 "VARIANT": "1.16", // Options - "INSTALL_NODE": "false", "NODE_VERSION": "lts/*" } }, @@ -17,8 +16,9 @@ // Set *default* container specific settings.json values on container create. "settings": { "go.toolsManagement.checkForUpdates": "local", + "go.useLanguageServer": true, "go.gopath": "/go", - "go.useLanguageServer": true + "go.goroot": "/usr/local/go" }, // Add the IDs of extensions you want installed when the container is created.