-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing private packages hosted on bitbucket.org #56
Comments
@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 |
This is the URL for a raw file hosted in a private bitbucket repository:
Is this what you were asking for? |
Hi, @jwerle, @michelezamuner I was able to get the file doing the following steps:
I had to previously generate the key and secret in bitbucket. From the request above I got the access token which I used in the following request:
Is somehow similar to github, as @jwerle said it would be nice to support the private repositories from bitbucket. |
@michelezamuner You may try GH-94, but I have not got bitbucket tested yet. |
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:And issuing this install command:
Unlinke 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 innercurl
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:bitbucket doesn't support
/raw/master
URLs, so I think that this link is responding 404. Anyway, with that configuration I getremote unreachable
.I've also tried using
as remote, using the temporary access token, but I'm still getting the
remote unreachable
error.Any suggestion on what should I do to connect to bitbucket, or is it not possible altogether? Thanks!
The text was updated successfully, but these errors were encountered: