{"action":"created","issue":{"url":"https://api.github.com/repos/golang/dep/issues/2068","repository_url":"https://api.github.com/repos/golang/dep","labels_url":"https://api.github.com/repos/golang/dep/issues/2068/labels{/name}","comments_url":"https://api.github.com/repos/golang/dep/issues/2068/comments","events_url":"https://api.github.com/repos/golang/dep/issues/2068/events","html_url":"https://github.com/golang/dep/issues/2068","id":390825256,"node_id":"MDU6SXNzdWUzOTA4MjUyNTY=","number":2068,"title":"Using addlog as constraint for direct dep github.com/prometheus/common","user":{"login":"greenpau","id":3826416,"node_id":"MDQ6VXNlcjM4MjY0MTY=","avatar_url":"https://avatars1.githubusercontent.com/u/3826416?v=4","gravatar_id":"","url":"https://api.github.com/users/greenpau","html_url":"https://github.com/greenpau","followers_url":"https://api.github.com/users/greenpau/followers","following_url":"https://api.github.com/users/greenpau/following{/other_user}","gists_url":"https://api.github.com/users/greenpau/gists{/gist_id}","starred_url":"https://api.github.com/users/greenpau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenpau/subscriptions","organizations_url":"https://api.github.com/users/greenpau/orgs","repos_url":"https://api.github.com/users/greenpau/repos","events_url":"https://api.github.com/users/greenpau/events{/privacy}","received_events_url":"https://api.github.com/users/greenpau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-13T19:28:52Z","updated_at":"2018-12-19T15:08:19Z","closed_at":null,"author_association":"NONE","body":"When adding `github.com/prometheus/common` as a dependency, `dep` tool chooses `addlog` branch as opposed to `master` branch when initializing `dep`.\r\n\r\n```\r\n$ dep init\r\n...\r\n  Using addlog as constraint for direct dep github.com/prometheus/common\r\n  Locking in addlog (89d8028) for direct dep github.com/prometheus/common\r\n```\r\n\r\nThe attempt to change from `addlog` to `master` branch via `Gopkg.toml` fails:\r\n\r\n```\r\n[[constraint]]\r\n  branch = \"master\"\r\n  name = \"github.com/prometheus/common\"\r\n```\r\n\r\nThe `dep ensure` errors are:\r\n\r\n```\r\n$ dep ensure\r\nSolving failure: No versions of github.com/prometheus/common met constraints:\r\n\taddlog: Could not introduce github.com/prometheus/common@addlog, as it is not allowed by constraint master from project github.com/ovnworks/ovs_exporter.\r\n\tmaster: unable to update checked out version: fatal: reference is not a tree: 4724e9255275ce38f7179b2478abeae4e28c904f\r\n: command failed: [git checkout 4724e9255275ce38f7179b2478abeae4e28c904f]: exit status 128\r\n\tchange-maintainer-to-brian: Could not introduce github.com/prometheus/common@change-maintainer-to-brian, as it is not allowed by constraint master from project github.com/ovnworks/ovs_exporter.\r\n\tfish-http-config-expose-keepalive: Could not introduce github.com/prometheus/common@fish-http-config-expose-keepalive, as it is not allowed by constraint master from project github.com/ovnworks/ovs_exporter.\r\n\tom-float: Could not introduce github.com/prometheus/common@om-float, as it is not allowed by constraint master from project github.com/ovnworks/ovs_exporter.\r\n```\r\n\r\nReference: https://github.com/prometheus/common/issues/163"},"comment":{"url":"https://api.github.com/repos/golang/dep/issues/comments/448627914","html_url":"https://github.com/golang/dep/issues/2068#issuecomment-448627914","issue_url":"https://api.github.com/repos/golang/dep/issues/2068","id":448627914,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODYyNzkxNA==","user":{"login":"kevinburke","id":234019,"node_id":"MDQ6VXNlcjIzNDAxOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/234019?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinburke","html_url":"https://github.com/kevinburke","followers_url":"https://api.github.com/users/kevinburke/followers","following_url":"https://api.github.com/users/kevinburke/following{/other_user}","gists_url":"https://api.github.com/users/kevinburke/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinburke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinburke/subscriptions","organizations_url":"https://api.github.com/users/kevinburke/orgs","repos_url":"https://api.github.com/users/kevinburke/repos","events_url":"https://api.github.com/users/kevinburke/events{/privacy}","received_events_url":"https://api.github.com/users/kevinburke/received_events","type":"User","site_admin":false},"created_at":"2018-12-19T15:08:19Z","updated_at":"2018-12-19T15:08:19Z","author_association":"NONE","body":"I can't reproduce. I added the main.go here: https://github.com/kevinburke/dep-tests/tree/master/issue-2068 and ran \"dep init\" with the latest dep and got the master branch.\r\n\r\nDo you have any idea how I can reproduce this issue? "}}
{"actor":{"display_login":"kevinburke"}}