Skip to content

cmd/go: "go get: unzip: malformed file path: double dot" #27299

@sirkon

Description

@sirkon
  • go version

    go version go1.11 linux/amd64
    

    downloaded yesterday (27 august)

  • $ go env
    GOARCH="amd64"
    GOBIN=""
    GOCACHE="/home/emacs/.cache/go-build"
    GOEXE=""
    GOFLAGS=""
    GOHOSTARCH="amd64"
    GOHOSTOS="linux"
    GOOS="linux"
    GOPATH="/home/emacs/go"
    GOPROXY=""
    GORACE=""
    GOROOT="/usr/local/go"
    GOTMPDIR=""
    GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
    GCCGO="gccgo"
    CC="gcc"
    CXX="g++"
    CGO_ENABLED="1"
    GOMOD="/home/emacs/Desktop/main/go.mod"
    CGO_CFLAGS="-g -O2"
    CGO_CPPFLAGS=""
    CGO_CXXFLAGS="-g -O2"
    CGO_FFLAGS="-g -O2"
    CGO_LDFLAGS="-g -O2"
    PKG_CONFIG="pkg-config"
    GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build252846370=/tmp/go-build -gno-record-gcc-switches"
    
  • I am trying to use ANTLR4 runtime support via go modules, steps to reproduce:

    1. Choose some directory
    2. Create new Go package/module:
      mkdir newpack
      cd newpack
      go mod init main
      
    3. Try to get ANTLR4 runtime support module
      go get github.com/antlr/antlr4/runtime/Go/antlr
      
    4. Obviously, successful download was expected, got an error message instead:
      go: finding github.com/antlr/antlr4/runtime/Go/antlr latest
      go: finding github.com/antlr/antlr4/runtime/Go latest
      go: finding github.com/antlr/antlr4/runtime latest
      go: finding github.com/antlr/antlr4 latest
      go: extracting github.com/antlr/antlr4 v0.0.0-20180728001836-7d0787e29ca8
      -> unzip /home/emacs/go/pkg/mod/cache/download/github.com/antlr/antlr4/@v/v0.0.0-20180728001836-7d0787e29ca8.zip: malformed file path "runtime/Cpp/demo/Windows/antlr4-cpp-demo/antlr4-cpp-demo-vs2015.vcxproj..filters": double dot
      go get github.com/antlr/antlr4/runtime/Go/antlr: unzip /home/emacs/go/pkg/mod/cache/download/github.com/antlr/antlr4/@v/v0.0.0-20180728001836-7d0787e29ca8.zip: malformed file path "runtime/Cpp/demo/Windows/antlr4-cpp-demo/antlr4-cpp-demo-vs2015.vcxproj..filters": double dot
      

    I guess double dots in some unrelated file is hardly a reason to diagnose a error

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.early-in-cycleA change that should be done early in the 3 month dev cycle.modules

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions