{"action":"created","issue":{"url":"https://api.github.com/repos/wercker/wercker/issues/87","repository_url":"https://api.github.com/repos/wercker/wercker","labels_url":"https://api.github.com/repos/wercker/wercker/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/wercker/wercker/issues/87/comments","events_url":"https://api.github.com/repos/wercker/wercker/issues/87/events","html_url":"https://github.com/wercker/wercker/issues/87","id":135894882,"number":87,"title":"wercker build --commit doesn't work","user":{"login":"F21","id":2263040,"avatar_url":"https://avatars.githubusercontent.com/u/2263040?v=3","gravatar_id":"","url":"https://api.github.com/users/F21","html_url":"https://github.com/F21","followers_url":"https://api.github.com/users/F21/followers","following_url":"https://api.github.com/users/F21/following{/other_user}","gists_url":"https://api.github.com/users/F21/gists{/gist_id}","starred_url":"https://api.github.com/users/F21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/F21/subscriptions","organizations_url":"https://api.github.com/users/F21/orgs","repos_url":"https://api.github.com/users/F21/repos","events_url":"https://api.github.com/users/F21/events{/privacy}","received_events_url":"https://api.github.com/users/F21/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-23T23:07:45Z","updated_at":"2016-02-26T10:29:53Z","closed_at":"2016-02-26T10:09:00Z","body":"```\r\n$ wercker build\r\n--> No Docker host specified, checking: unix:///var/run/docker.sock\r\n--> Executing pipeline\r\n--> Running step: setup environment\r\nPulling from library/golang: latest\r\nAlready exists: 7268d8f794c4\r\nAlready exists: a3ed95caeb02\r\nAlready exists: d9a49bc2b1b0\r\nAlready exists: b965864d2d45\r\nAlready exists: bad3f2daf720\r\nAlready exists: a3ed95caeb02\r\nAlready exists: a3ed95caeb02\r\nAlready exists: a3ed95caeb02\r\nAlready exists: 3c0458acec93\r\nAlready exists: a3ed95caeb02\r\nAlready exists: a3ed95caeb02\r\nAlready exists: 312d8dc0bff1\r\nAlready exists: a3ed95caeb02\r\nAlready exists: 9d76f8609ef9\r\nDigest: sha256:0325944f1c19cacc2d039cc8933d7cd4ed4651466a0765a23a127c6866a660da\r\nStatus: Image is up to date for golang:latest\r\n--> Running step: wercker-init\r\n--> Running step: golint\r\nmain.go:9:1: exported function CityHandler should have comment or be unexported\r\n--> Running step: go build\r\n--> Running step: go test\r\nok  \t_/pipeline/source\t0.003s\r\n--> Steps passed: 10.02s\r\n--> Pipeline finished: 11.02s\r\n\r\n$ wercker build --commit\r\nIncorrect Usage.\r\n\r\nNAME:\r\n   build - build a project\r\n\r\nUSAGE:\r\n   command build [command options] [arguments...]\r\n...\r\n```\r\n\r\nWork around is to use `wercker build --commit .`, but that also produces an error of its own:\r\n\r\n```\r\n$ wercker build --commit .\r\n--> No Docker host specified, checking: unix:///var/run/docker.sock\r\n--> Executing pipeline\r\n--> Running step: setup environment\r\nPulling from library/golang: latest\r\nAlready exists: 7268d8f794c4\r\nAlready exists: a3ed95caeb02\r\nAlready exists: d9a49bc2b1b0\r\nAlready exists: b965864d2d45\r\nAlready exists: bad3f2daf720\r\nAlready exists: a3ed95caeb02\r\nAlready exists: a3ed95caeb02\r\nAlready exists: a3ed95caeb02\r\nAlready exists: 3c0458acec93\r\nAlready exists: a3ed95caeb02\r\nAlready exists: a3ed95caeb02\r\nAlready exists: 312d8dc0bff1\r\nAlready exists: a3ed95caeb02\r\nAlready exists: 9d76f8609ef9\r\nDigest: sha256:0325944f1c19cacc2d039cc8933d7cd4ed4651466a0765a23a127c6866a660da\r\nStatus: Image is up to date for golang:latest\r\n--> Running step: wercker-init\r\n--> Running step: golint\r\nmain.go:9:1: exported function CityHandler should have comment or be unexported\r\n--> Running step: go build\r\n--> Running step: go test\r\nok  \t_/pipeline/source\t0.004s\r\nERROR Failed to commit: API error (500): invalid reference format\r\n\r\n```\r\n\r\nDocker version:\r\n```\r\nClient:\r\n Version:      1.10.2\r\n API version:  1.22\r\n Go version:   go1.5.3\r\n Git commit:   c3959b1\r\n Built:        Mon Feb 22 21:40:35 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.10.2\r\n API version:  1.22\r\n Go version:   go1.5.3\r\n Git commit:   c3959b1\r\n Built:        Mon Feb 22 21:40:35 2016\r\n OS/Arch:      linux/amd64\r\n```"},"comment":{"url":"https://api.github.com/repos/wercker/wercker/issues/comments/189209151","html_url":"https://github.com/wercker/wercker/issues/87#issuecomment-189209151","issue_url":"https://api.github.com/repos/wercker/wercker/issues/87","id":189209151,"user":{"login":"hatchan","id":202981,"avatar_url":"https://avatars.githubusercontent.com/u/202981?v=3","gravatar_id":"","url":"https://api.github.com/users/hatchan","html_url":"https://github.com/hatchan","followers_url":"https://api.github.com/users/hatchan/followers","following_url":"https://api.github.com/users/hatchan/following{/other_user}","gists_url":"https://api.github.com/users/hatchan/gists{/gist_id}","starred_url":"https://api.github.com/users/hatchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hatchan/subscriptions","organizations_url":"https://api.github.com/users/hatchan/orgs","repos_url":"https://api.github.com/users/hatchan/repos","events_url":"https://api.github.com/users/hatchan/events{/privacy}","received_events_url":"https://api.github.com/users/hatchan/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T10:29:53Z","updated_at":"2016-02-26T10:29:53Z","body":"@F21 The `--commit` flag requires a repository as the second argument. You used the `.` in your example, this however is a invalid docker repository name. So if you change it to something else, like `wercker build --commit test` it will work."}}