Skip to content

Instantly share code, notes, and snippets.

@polds
Created August 19, 2015 22:43
Show Gist options
  • Select an option

  • Save polds/3691bf937e1df56b036e to your computer and use it in GitHub Desktop.

Select an option

Save polds/3691bf937e1df56b036e to your computer and use it in GitHub Desktop.
Unrecognized Import Path
docker run --rm -it \
-v "$(pwd)":/app \
-e "GOPATH=/gopath" \
-w /app \
golang:1.4.2 \
sh -c "go get -u -d ./... && go build -o example"
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello, World")
}
@polds
Copy link
Author

polds commented Aug 19, 2015

Outputs:

 package _/app: unrecognized import path "_/app"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment