{"action":"created","issue":{"url":"https://api.github.com/repos/golang/dep/issues/939","repository_url":"https://api.github.com/repos/golang/dep","labels_url":"https://api.github.com/repos/golang/dep/issues/939/labels{/name}","comments_url":"https://api.github.com/repos/golang/dep/issues/939/comments","events_url":"https://api.github.com/repos/golang/dep/issues/939/events","html_url":"https://github.com/golang/dep/issues/939","id":247800938,"number":939,"title":"Why did dep not used my imported version?","user":{"login":"carolynvs","id":1368985,"avatar_url":"https://avatars1.githubusercontent.com/u/1368985?v=4","gravatar_id":"","url":"https://api.github.com/users/carolynvs","html_url":"https://github.com/carolynvs","followers_url":"https://api.github.com/users/carolynvs/followers","following_url":"https://api.github.com/users/carolynvs/following{/other_user}","gists_url":"https://api.github.com/users/carolynvs/gists{/gist_id}","starred_url":"https://api.github.com/users/carolynvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carolynvs/subscriptions","organizations_url":"https://api.github.com/users/carolynvs/orgs","repos_url":"https://api.github.com/users/carolynvs/repos","events_url":"https://api.github.com/users/carolynvs/events{/privacy}","received_events_url":"https://api.github.com/users/carolynvs/received_events","type":"User","site_admin":false},"labels":[{"id":456574661,"url":"https://api.github.com/repos/golang/dep/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-03T18:49:23Z","updated_at":"2017-08-03T23:48:58Z","closed_at":null,"body":"Warning: I am testing dep out on Kuberentes, and am using a few fixes to the godep config file to get this far.\r\n\r\ngo version: go version go1.8.3 darwin/amd64\r\ndep version: v0.2.1-1-ga085554 ( PR #938 )\r\n\r\nThe dependency on `cloud.google.com/go` was for `0.1.0-115-g3b1ae45`, specifically the untagged revision `3b1ae45`. After running dep init and importing the config from godep, that preferred/imported revision was ignored during solve. Or at least that's the way it looks.\r\n\r\n```\r\ndep init -v\r\nImporting configuration from godep. These are only initial constraints, and are further refined during the solve process.\r\nDetected godep configuration files...\r\n  Loading /Users/carolynvs/go/src/k8s.io/kubernetes/Godeps/Godeps.json\r\nConverting from Godeps.json ...\r\n  ... TRUNCATED\r\n  Using ^0.1.0-115-g3b1ae45 as initial constraint for imported dep cloud.google.com/go\r\n  Trying * (3b1ae45) as initial lock for imported dep cloud.google.com/go\r\n  ... TRUNCATED\r\nRoot project is \"k8s.io/kubernetes\"\r\n 1506 transitively valid internal packages\r\n 439 external packages imported from 112 projects\r\n(0)   ✓ select (root)\r\n   ... TRUNCATED\r\n(3)\t? attempt cloud.google.com/go with 1 pkgs; 15 versions to try\r\n(3)\t    try cloud.google.com/go@v0.11.0\r\n(4)\t✗   cloud.google.com/go@v0.11.0 not allowed by constraint ^0.1.0-115-g3b1ae45:\r\n(4)\t    ^0.1.0-115-g3b1ae45 from (root)\r\n(3)\t    try cloud.google.com/go@v0.10.0\r\n(4)\t✗   cloud.google.com/go@v0.10.0 not allowed by constraint ^0.1.0-115-g3b1ae45:\r\n(4)\t    ^0.1.0-115-g3b1ae45 from (root)\r\n(3)\t    try cloud.google.com/go@v0.9.0\r\n(4)\t✗   cloud.google.com/go@v0.9.0 not allowed by constraint ^0.1.0-115-g3b1ae45:\r\n(4)\t    ^0.1.0-115-g3b1ae45 from (root)\r\n(3)\t    try cloud.google.com/go@v0.8.0\r\n(4)\t✗   cloud.google.com/go@v0.8.0 not allowed by constraint ^0.1.0-115-g3b1ae45:\r\n(4)\t    ^0.1.0-115-g3b1ae45 from (root)\r\n(3)\t    try cloud.google.com/go@v0.7.0\r\n(4)\t✗   cloud.google.com/go@v0.7.0 not allowed by constraint ^0.1.0-115-g3b1ae45:\r\n(4)\t    ^0.1.0-115-g3b1ae45 from (root)\r\n(3)\t    try cloud.google.com/go@v0.6.0\r\n(4)\t✗   cloud.google.com/go@v0.6.0 not allowed by constraint ^0.1.0-115-g3b1ae45:\r\n(4)\t    ^0.1.0-115-g3b1ae45 from (root)\r\n(3)\t    try cloud.google.com/go@v0.5.0\r\n(4)\t✗   cloud.google.com/go@v0.5.0 not allowed by constraint ^0.1.0-115-g3b1ae45:\r\n(4)\t    ^0.1.0-115-g3b1ae45 from (root)\r\n(3)\t    try cloud.google.com/go@v0.4.0\r\n(4)\t✗   cloud.google.com/go@v0.4.0 not allowed by constraint ^0.1.0-115-g3b1ae45:\r\n(4)\t    ^0.1.0-115-g3b1ae45 from (root)\r\n(3)\t    try cloud.google.com/go@v0.3.0\r\n(4)\t✗   cloud.google.com/go@v0.3.0 not allowed by constraint ^0.1.0-115-g3b1ae45:\r\n(4)\t    ^0.1.0-115-g3b1ae45 from (root)\r\n(3)\t    try cloud.google.com/go@v0.2.0\r\n(4)\t✗   cloud.google.com/go@v0.2.0 not allowed by constraint ^0.1.0-115-g3b1ae45:\r\n(4)\t    ^0.1.0-115-g3b1ae45 from (root)\r\n(3)\t    try cloud.google.com/go@v0.1.0\r\n(3)\t✓ select cloud.google.com/go@v0.1.0 w/2 pkgs\r\n```\r\n\r\nI was expecting to see a line like this instead:\r\n\r\n```\r\n  try cloud.google.com/go@3b1ae45\r\n```\r\n\r\nIt's not clear from the output why the revision wasn't considered before those other versions? Is it because the constraint is for a version and not a branch?"},"comment":{"url":"https://api.github.com/repos/golang/dep/issues/comments/320119386","html_url":"https://github.com/golang/dep/issues/939#issuecomment-320119386","issue_url":"https://api.github.com/repos/golang/dep/issues/939","id":320119386,"user":{"login":"sdboyer","id":21599,"avatar_url":"https://avatars0.githubusercontent.com/u/21599?v=4","gravatar_id":"","url":"https://api.github.com/users/sdboyer","html_url":"https://github.com/sdboyer","followers_url":"https://api.github.com/users/sdboyer/followers","following_url":"https://api.github.com/users/sdboyer/following{/other_user}","gists_url":"https://api.github.com/users/sdboyer/gists{/gist_id}","starred_url":"https://api.github.com/users/sdboyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdboyer/subscriptions","organizations_url":"https://api.github.com/users/sdboyer/orgs","repos_url":"https://api.github.com/users/sdboyer/repos","events_url":"https://api.github.com/users/sdboyer/events{/privacy}","received_events_url":"https://api.github.com/users/sdboyer/received_events","type":"User","site_admin":false},"created_at":"2017-08-03T23:48:58Z","updated_at":"2017-08-03T23:48:58Z","body":"that is indeed odd - i would've expected to see it up at the top. the first thing i'd check is that it is, indeed, actually making it into the `Lock` that's passed to the solver. after that, i'd start debugging in `solver.findValidVersion()` to see what the queue that's actually built for `cloud.google.com/go` looks like."}}
{"actor":{"display_login":"sdboyer"}}