{"action":"created","issue":{"url":"https://api.github.com/repos/bpkg/bpkg/issues/56","labels_url":"https://api.github.com/repos/bpkg/bpkg/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/bpkg/bpkg/issues/56/comments","events_url":"https://api.github.com/repos/bpkg/bpkg/issues/56/events","html_url":"https://github.com/bpkg/bpkg/issues/56","id":123449274,"number":56,"title":"Installing private packages hosted on bitbucket.org","user":{"login":"michelezamuner","id":13472063,"avatar_url":"https://avatars.githubusercontent.com/u/13472063?v=3","gravatar_id":"","url":"https://api.github.com/users/michelezamuner","html_url":"https://github.com/michelezamuner","followers_url":"https://api.github.com/users/michelezamuner/followers","following_url":"https://api.github.com/users/michelezamuner/following{/other_user}","gists_url":"https://api.github.com/users/michelezamuner/gists{/gist_id}","starred_url":"https://api.github.com/users/michelezamuner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelezamuner/subscriptions","organizations_url":"https://api.github.com/users/michelezamuner/orgs","repos_url":"https://api.github.com/users/michelezamuner/repos","events_url":"https://api.github.com/users/michelezamuner/events{/privacy}","received_events_url":"https://api.github.com/users/michelezamuner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-22T09:48:55Z","updated_at":"2015-12-22T13:37:12Z","closed_at":null,"body":"I've been trying to get `bpkg` to install a private package hosted on my bitbucket.org account, but so far I couldn't manage to make it work. I added a `${HOME}/.bpkgrc` file with these contents:\r\n\r\n    #BPKG_REMOTES=(\"https://raw.githubusercontent.com\")\r\n    BPKG_REMOTES+=(\"raw-oauth| michelezamuner https://bitbucket.org\")\r\n    \r\n    #BPKG_GIT_REMOTES=(\"https://github.com\")\r\n    BPKG_GIT_REMOTES+=(\"https://bitbucket.org\")\r\n\r\nAnd issuing this install command:\r\n\r\n    $ bpkg install michelezamuner/bpkg-test\r\n\r\nUnlinke github, bitbucket doesn't allow you to have a permanent oauth2 token, you can only have one that expires after some time. However, I've seen that that `BPKG_REMOTE` syntax triggers the inner `curl` command to ask me for my password. However I can see a problem with the URL where it's trying to download the package from:\r\n\r\n    `Install /michelezamuner/bpkg-test/raw/master from remote  [https:// michelezamuner https://bitbucket.org:x-oauth-basic@bitbucket.org]`\r\n\r\nbitbucket doesn't support `/raw/master` URLs, so I think that this link is responding 404. Anyway, with that configuration I get `remote unreachable`.\r\n\r\nI've also tried using\r\n\r\n    https://x-token-auth:{access_token}@bitbucket.org\r\n\r\nas remote, using the temporary access token, but I'm still getting the `remote unreachable` error.\r\n\r\nAny suggestion on what should I do to connect to bitbucket, or is it not possible altogether? Thanks!"},"comment":{"url":"https://api.github.com/repos/bpkg/bpkg/issues/comments/166620477","html_url":"https://github.com/bpkg/bpkg/issues/56#issuecomment-166620477","issue_url":"https://api.github.com/repos/bpkg/bpkg/issues/56","id":166620477,"user":{"login":"jwerle","id":1462973,"avatar_url":"https://avatars.githubusercontent.com/u/1462973?v=3","gravatar_id":"","url":"https://api.github.com/users/jwerle","html_url":"https://github.com/jwerle","followers_url":"https://api.github.com/users/jwerle/followers","following_url":"https://api.github.com/users/jwerle/following{/other_user}","gists_url":"https://api.github.com/users/jwerle/gists{/gist_id}","starred_url":"https://api.github.com/users/jwerle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwerle/subscriptions","organizations_url":"https://api.github.com/users/jwerle/orgs","repos_url":"https://api.github.com/users/jwerle/repos","events_url":"https://api.github.com/users/jwerle/events{/privacy}","received_events_url":"https://api.github.com/users/jwerle/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T13:37:12Z","updated_at":"2015-12-22T13:37:12Z","body":"@michelezamuner I think it would be valuable to allow for installation of packages from bitbucket. Can you describe the URL pattern? We would have to modify the following lines https://github.com/bpkg/bpkg/blob/master/lib/install/install.sh#L217-L234 "}}