aboutsummaryrefslogblamecommitdiff
path: root/src/go/devcontainer-feature.json
blob: 307ab217b39326543311a8de9d450ea2807f49a7 (plain) (tree)
1
2
3
4
5
6
7
8
9

               
                       
                 
                                                                                     
                                                                                                                        


                             


                          

                       
              

                                                                    




                                                                


                 






                           
                     


                                                   
      




                            


                                                     

     
{
    "id": "go",
    "version": "1.2.2",
    "name": "Go",
    "documentationURL": "https://github.com/devcontainers/features/tree/main/src/go",
    "description": "Installs Go and common Go utilities. Auto-detects latest version and installs needed dependencies.",
    "options": {
        "version": {
            "type": "string",
            "proposals": [
                "latest",
                "none",
                "1.21",
                "1.20"
            ],
            "default": "latest",
            "description": "Select or enter a Go version to install"
        },
        "golangciLintVersion": {
            "type": "string",
            "default": "latest",
            "description": "Version of golangci-lint to install"
        }
    },
    "init": true,
    "customizations": {
        "vscode": {
            "extensions": [
                "golang.Go"
            ]
        }
    },
    "containerEnv": {
        "GOROOT": "/usr/local/go",
        "GOPATH": "/go",
        "PATH": "/usr/local/go/bin:/go/bin:${PATH}"
    },
    "capAdd": [
        "SYS_PTRACE"
    ],
    "securityOpt": [
        "seccomp=unconfined"
    ],
    "installsAfter": [
        "ghcr.io/devcontainers/features/common-utils"
    ]
}