-
Notifications
You must be signed in to change notification settings - Fork 152
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
install_bitbucket from private host: hardcoded directory "repositories" in URL #584
Comments
Same issue with me.. When I override with my private bitbucket server, the hardcoding of See: #429 |
Also having this issue! |
@andreagrioni and/or @aprijol : Have either of you found a good work around for this? |
What is the correct URL on a private server? |
Our Bitbucket Server can be addressed with the Bitbucket Server REST API, but I am not able to identify the right requests to change the |
Well, I don't have access to any private BitBucket repos, but if you can create a PR, I'll be happy to review it. |
@gaborcsardi , I'm sorry to say that I'm not sure.. I don't know if this example helps or not: The remote is this: In a browser, I can directly access the repos like this.. I have an auth token and thought I would be able to install the package like this: auth_token = <my token>
remotes::install_bitbucket(
repo = "repos/pmapUtilities",
ref="main",
host="code.jh.edu/projects/psq/",
upgrade="never",
auth_token = auth_token
) output:
I notice the hard coding of the term "repositories" as also experienced by @andreagrioni . I may be doing a number of other things incorrectly -- any insight you can provide would be much appreciated... or any workaround! |
Private servers can have a number of things in that node. Our organization has the org abbreviation there. I just went in and removed "repositories" from the build_url calls. I added the node I needed to username (e.g., orgabbrev/username). I still had issues further down the line with authentication and ended up having to put this effort on hold. But, just taking out "repositories" worked for this issue. |
I also have this problem. Is there any way we can specify the whole URL? This would be a great feature as the current hard coding of "repositories" does not work for me |
Any potential workarounds to this? I am having the same issue |
You could try the |
I have a R package on a private BitBucket server.
The cmd
remotes::install_bitbucket(repo="user/repo.git", host="bitbucket.NAME.net/")
exited with error message:Error: Failed to install 'unknown package' from Bitbucket: cannot open URL 'https://bitbucket.NAME.net//repositories/user/repo.git/src/HEAD/DESCRIPTION'
Note that the directory
repositories
is not provided in the arguments but it is hardcoded by theinstall_bitbucket
function.The text was updated successfully, but these errors were encountered: