Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-2478

Airgapped: Go LS tools unable to install by default

    XMLWordPrintable

Details

    • False
    • False
    • See KI in CRW-1521
    • Not Required
      • Start a Go workspace
      • Open main.go
      • CTRL+Space on any method
      • Notification pops up, click install-all

    Description

      Currently when you try to install LS tools for Go devfile, it fails on the airgapped environment:

      Unable to find source-code formatter for language: no_language. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yamlTools environment: GOPATH=/projects/.che/gopath:/projects
      Installing 3 tools at /projects/.che/gopath/bin:/projects/bin in module mode.
        godoctor
        gocode-gomod
        golangci-lint
      
      Installing github.com/godoctor/godoctor FAILED
      Installing github.com/godoctor/godoctor FAILED
      Installing github.com/stamblerre/gocode FAILED
      Installing github.com/stamblerre/gocode FAILED
      Installing github.com/golangci/golangci-lint/cmd/golangci-lint FAILED
      
      3 tools failed to install.
      
      godoctor: failed to install [object Object]: Error: Command failed: /usr/bin/go get -v github.com/godoctor/godoctor
      go get github.com/godoctor/godoctor: module github.com/godoctor/godoctor: Get "https://proxy.golang.org/github.com/godoctor/godoctor/@v/list": Forbidden
       undefined  
      gocode-gomod: failed to install [object Object]: Error: Command failed: /usr/bin/go get -v -d github.com/stamblerre/gocode
      go get github.com/stamblerre/gocode: module github.com/stamblerre/gocode: Get "https://proxy.golang.org/github.com/stamblerre/gocode/@v/list": Forbidden
       undefined  
      golangci-lint: failed to install [object Object]: Error: Command failed: /usr/bin/go get -v github.com/golangci/golangci-lint/cmd/golangci-lint
      go get github.com/golangci/golangci-lint/cmd/golangci-lint: module github.com/golangci/golangci-lint/cmd/golangci-lint: Get "https://proxy.golang.org/github.com/golangci/golangci-lint/cmd/golangci-lint/@v/list": Forbidden
       undefined  
      Installing github.com/golangci/golangci-lint/cmd/golangci-lint FAILED
      
      3 tools failed to install.
      
      godoctor: failed to install [object Object]: Error: Command failed: /usr/bin/go get -v github.com/godoctor/godoctor
      go get github.com/godoctor/godoctor: module github.com/godoctor/godoctor: Get "https://proxy.golang.org/github.com/godoctor/godoctor/@v/list": Forbidden
       undefined  
      gocode-gomod: failed to install [object Object]: Error: Command failed: /usr/bin/go get -v -d github.com/stamblerre/gocode
      go get github.com/stamblerre/gocode: module github.com/stamblerre/gocode: Get "https://proxy.golang.org/github.com/stamblerre/gocode/@v/list": Forbidden
       undefined  
      golangci-lint: failed to install [object Object]: Error: Command failed: /usr/bin/go get -v github.com/golangci/golangci-lint/cmd/golangci-lint
      go get github.com/golangci/golangci-lint/cmd/golangci-lint: module github.com/golangci/golangci-lint/cmd/golangci-lint: Get "https://proxy.golang.org/github.com/golangci/golangci-lint/cmd/golangci-lint/@v/list": Forbidden
       undefined  
      

      There is a workaround though:

      go get -u <package_name> e.g. go get -u github.com/godoctor/godoctor

      Attachments

        Issue Links

          Activity

            People

              nickboldt Nick Boldt
              tdancs Tibor Dancs (Inactive)
              Max Leonov Max Leonov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: