{"action":"opened","issue":{"url":"https://api.github.com/repos/docker-library/golang/issues/90","repository_url":"https://api.github.com/repos/docker-library/golang","labels_url":"https://api.github.com/repos/docker-library/golang/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/golang/issues/90/comments","events_url":"https://api.github.com/repos/docker-library/golang/issues/90/events","html_url":"https://github.com/docker-library/golang/issues/90","id":142910466,"number":90,"title":"Failed to build using golang:1.6-onbuild","user":{"login":"shayts7","id":3765399,"avatar_url":"https://avatars.githubusercontent.com/u/3765399?v=3","gravatar_id":"","url":"https://api.github.com/users/shayts7","html_url":"https://github.com/shayts7","followers_url":"https://api.github.com/users/shayts7/followers","following_url":"https://api.github.com/users/shayts7/following{/other_user}","gists_url":"https://api.github.com/users/shayts7/gists{/gist_id}","starred_url":"https://api.github.com/users/shayts7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shayts7/subscriptions","organizations_url":"https://api.github.com/users/shayts7/orgs","repos_url":"https://api.github.com/users/shayts7/repos","events_url":"https://api.github.com/users/shayts7/events{/privacy}","received_events_url":"https://api.github.com/users/shayts7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-23T09:38:07Z","updated_at":"2016-03-23T09:38:07Z","closed_at":null,"body":"Hi,\r\n\r\nMaybe I miss here something, but I cannot use golang:1.6-onbuild to build my go project.\r\n\r\nThis is the error message I'm getting from running the build:\r\n```\r\nDeploying '<unknown>  Dockerfile: Dockerfile'...\r\nBuilding image...\r\nStep 1 : FROM golang:1.6-onbuild\r\n\r\n\u001B[91m# Executing 3 build triggers...\r\n\u001B[0m\r\nStep 1 : COPY . /go/src/app\r\n\r\nStep 1 : RUN go-wrapper download\r\n\r\n ---> Running in 1b0f1d10c79a\r\n\r\n\u001B[91m+ exec go get -v -d\r\n\u001B[0m\r\n\u001B[91mgithub.com/gaia-adm/pre-store-enricher (download)\r\n\u001B[0m\r\n\u001B[91mgithub.com/streadway/amqp (download)\r\n\u001B[0m\r\nStep 1 : RUN go-wrapper install\r\n\r\n ---> Running in 7d3fa4d1abc7\r\n\r\n\u001B[91m+ exec go install -v\r\n\u001B[0m\r\n\u001B[91mgithub.com/gaia-adm/pre-store-enricher/vendor/github.com/Sirupsen/logrus\r\n\u001B[0m\r\n\u001B[91mgithub.com/gaia-adm/pre-store-enricher/log\r\n\u001B[0m\r\n\u001B[91mgithub.com/gaia-adm/pre-store-enricher/vendor/github.com/streadway/amqp\r\n\u001B[0m\r\n\u001B[91mgithub.com/gaia-adm/pre-store-enricher/amqpconnector\r\n\u001B[0m\r\n\u001B[91mgithub.com/streadway/amqp\r\n\u001B[0m\r\n\u001B[91mapp\r\n\u001B[0m\r\n\u001B[91m# app\r\n./main.go:35: cannot use connectedToRabbit (type chan *\"github.com/streadway/amqp\".Connection) as type chan<- *\"github.com/gaia-adm/pre-store-enricher/vendor/github.com/streadway/amqp\".Connection in argument to amqpconnector.InitRabbitConn\r\n\u001B[0m\r\nError: ResponseItem.ErrorDetail[code=0,message=The command '/bin/sh -c go-wrapper install' returned a non-zero code: 2]\r\nFailed to deploy '<unknown>  Dockerfile: Dockerfile': The command '/bin/sh -c go-wrapper install' returned a non-zero code: 2\r\n```\r\n\r\nfor some reason it looks for the vendor directory in my project although I did not vendor the 3rd party packages \r\n\r\nI tried to run it with vendoring amqp and without - the same result.\r\nI also tried to use golang:1.6 - the same result.\r\n\r\nWhen I'm running \"go install\" not via docker everything works fine (I'm using Go 1.6 SDK on Windows).\r\n\r\nThe code that cause it:\r\n\r\nFrom main.go I have this code:\r\n```\r\nimport (\r\n\t\"os\"\r\n\t\"os/signal\"\r\n\t\"syscall\"\r\n\t\"github.com/streadway/amqp\"\r\n\t\"github.com/gaia-adm/pre-store-enricher/log\"\r\n\t\"github.com/gaia-adm/pre-store-enricher/amqpconnector\"\r\n)\r\n\r\n...\r\n...\r\n\r\nconnectedToRabbit := make(chan *amqp.Connection)\r\ngo amqpconnector.InitRabbitConn(connectedToRabbit)\r\n```\r\n\r\nand in amqpconnector package I have this code:\r\n```\r\nimport (\r\n\t\"os\"\r\n\t\"time\"\r\n\t\"github.com/gaia-adm/pre-store-enricher/log\"\r\n\t\"github.com/streadway/amqp\"\r\n)\r\n\r\n...\r\n...\r\n\r\nfunc InitRabbitConn(connected chan<- *amqp.Connection) {\r\n\tticker := time.NewTicker(5 * time.Second)\r\n\tdefer ticker.Stop()\r\n\tfor ; ; <-ticker.C {\r\n\t\tconn, err := amqp.Dial(pseAmqpUrl)\r\n\t\tif err != nil {\r\n\t\t\tlog.Log.Warn(\"failed to connect to rabbit (\", pseAmqpUrl, \"): \", err)\r\n\t\t\tlog.Log.Warn(\"trying to reconnect to rabbit in 5 seconds...\")\r\n\t\t\tcontinue\r\n\t\t} else {\r\n\t\t\tlog.Log.Info(\"successfully connected to rabbit (\", pseAmqpUrl, \")\")\r\n\t\t}\r\n\t\tconnected <- conn\r\n\t\treturn\r\n\t}\r\n}\r\n```\r\n\r\nfor now my workaround is to use golang:1.5.3-onbuild instead (I do not enable vendoring in this case)\r\n\r\nThanks,\r\nShay"}}