chore: update devcontainer to go1.20

This commit is contained in:
Jan De Dobbeleer 2023-03-11 09:38:27 +01:00 committed by Jan De Dobbeleer
parent 1b83c35ca6
commit 7ee3a496f8

View file

@ -8,10 +8,9 @@
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17 // Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17
// Append -bullseye or -buster to pin to an OS version. // Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local arm64/Apple Silicon. // Use -bullseye variants on local arm64/Apple Silicon.
"VARIANT": "1.19-bullseye", "VARIANT": "1.20-bullseye",
// Options: // Options:
"POSH_THEME": "/workspaces/oh-my-posh/themes/jandedobbeleer.omp.json", "POSH_THEME": "/workspaces/oh-my-posh/themes/jandedobbeleer.omp.json",
// Override me with your own timezone: // Override me with your own timezone:
@ -26,7 +25,8 @@
}, },
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"], "runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
// Set *default* container specific settings.json values on container create. "customizations": {
"vscode": {
"settings": { "settings": {
"go.toolsManagement.checkForUpdates": "local", "go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true, "go.useLanguageServer": true,
@ -56,8 +56,6 @@
"terminal.integrated.defaultProfile.osx": "pwsh", "terminal.integrated.defaultProfile.osx": "pwsh",
"tasks.statusbar.default.hide": true "tasks.statusbar.default.hide": true
}, },
// Add the IDs of extensions you want installed when the container is created.
"extensions": [ "extensions": [
"actboy168.tasks", "actboy168.tasks",
"eamodio.gitlens", "eamodio.gitlens",
@ -71,14 +69,9 @@
"redhat.vscode-yaml", "redhat.vscode-yaml",
"yzhang.markdown-all-in-one", "yzhang.markdown-all-in-one",
"ms-azuretools.vscode-azurefunctions" "ms-azuretools.vscode-azurefunctions"
], ]
}
// Use 'forwardPorts' to make a list of ports inside the container available locally. },
// "forwardPorts": [3000],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "go version",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode" "remoteUser": "vscode"
} }