Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Workaround for private BitBucket repositories #2073

Closed
mdhender opened this issue Dec 22, 2018 · 4 comments
Closed

Workaround for private BitBucket repositories #2073

mdhender opened this issue Dec 22, 2018 · 4 comments

Comments

@mdhender
Copy link

I ran into issues with dep and a private bitbucket instance. Dep generated errors along the lines of

unable to deduce repository and source type

I found a similar incident. #1551 (closed and linked to #860) had a comment from Sam ("bitbucket doesn't implement go-get metadata correctly") that led me to a workaround.

We set up a vanity server that returns the expected format for bitbucket repos. After updating our import statements (which was easy because they all pointed to that private instance), Dep's working as expected.

@RobvH
Copy link

RobvH commented Feb 14, 2019

"that returns the expected format for bitbucket repo"

Do you mind share specifically what you did to your vanity repo to accomplish this?

@mdhender
Copy link
Author

Our Bitbucket server was prefixing the metadata with /scm/and not adding .git as a suffix. The vanity hack sets them before redirecting to Bitbucket.

You can find the server at https://github.com/mdhender/vango. It's just a light wrapper around Kare Nuorteva's vanity package. The only significant change was adding a response to remind our developers to update their .gitconfig and .ssh. The .ssh change is needed only if the Bitbucket repo's not public (most of our internal repos are private and require an SSH key).

@kevinburke
Copy link
Collaborator

Thanks for this! Be sure to try out tip which I think may offer more help here - @theckman added custom Bitbucket logic to try to distinguish these cases.

@mvdan
Copy link
Member

mvdan commented Sep 4, 2020

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!

@mvdan mvdan closed this as completed Sep 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants