Skip to content

x/tools/cmd/goimports: removes import of gopkg.in/pipe.v2 #26882

@ijt

Description

@ijt

What version of Go are you using (go version)?

go version go1.10.3 darwin/amd64

Does this issue reproduce with the latest release?

It reproduces with the tip version of goimports.

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/issactrotts/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/issactrotts/gopath"
GORACE=""
GOROOT="/Users/issactrotts/homebrew/Cellar/go/1.10.3/libexec"
GOTMPDIR=""
GOTOOLDIR="/Users/issactrotts/homebrew/Cellar/go/1.10.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/9z/3vhqmj_j18v6vsk1q2jr486r001n0v/T/go-build789719517=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

ijt:~/gopath/src/gibug$ go get -u golang.org/x/tools/cmd/goimports
ijt:~/gopath/src/gibug$ cat p.go
package main

import (
        "fmt"
        "gopkg.in/pipe.v2"
)

func main() {
        fmt.Println("vim-go")
        p := pipe.Line()
}
ijt:~/gopath/src/gibug$ goimports p.go

What did you expect to see?

package main

import (
        "fmt"
        "gopkg.in/pipe.v2"
)

func main() {
        fmt.Println("vim-go")
        p := pipe.Line()
}

What did you see instead?

package main

import (
        "fmt"
)

func main() {
        fmt.Println("vim-go")
        p := pipe.Line()
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions