Skip to content
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

[turborepo] Can't generate a workspace by copy a private repository #5945

Open
MiniSuperDev opened this issue Sep 13, 2023 · 3 comments
Open

Comments

@MiniSuperDev
Copy link

What version of Turborepo are you using?

1.10.13

What package manager are you using / does the bug impact?

pnpm

What operating system are you using?

Windows

Describe the Bug

When I try to generate a workspace from a private repository, I got an error.

Expected Behavior

Generate the workspace.

I have github/gitlab SSH configured to work in the directory, maybe the turborepo can clone it and use this.

To Reproduce

turbo gen workspace --copy https://github.com/private-user/repo/tree/main/examples/with-tailwind/

I got this error:

Could not locate the repository for "https://github.com/private-user/repo/tree/main/examples/with-tailwind/". Please check that the repository exists and try again.

Reproduction Repo

No response

@MiniSuperDev MiniSuperDev added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo labels Sep 13, 2023
@tknickman tknickman self-assigned this Sep 13, 2023
@tknickman tknickman added pkg: turbo-gen and removed kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage labels Sep 13, 2023
@tknickman
Copy link
Member

Thanks for the report @MiniSuperDev, we're have some work ongoing to support Github enterprise as well which should capture this functionality.

@versecafe
Copy link

I would like to update this as the error message has changed, and it would be great if this feature could gain some priority since it monorepos tend to be more common in business where repos aren't often public & it makes migrating projects into a turbo repo much easier.

turbo gen workspace --copy https://github.com/user/private_repo

>>> Copy a remote workspace from https://github.com/user/private_repo

? What type of workspace should be added? app
? What is the name of the app? private_repo_name
? Where should "psychometrica_webapp" be added? apps/private_repo_name
? Add workspace dependencies to "psychometrica_webapp"? No

>>> Some manual modifications may be required.
This app may require local dependencies or a different package manager than what is available in this repo
>>> Unable to fetch repository information from: "https://github.com/user/private_repo". Please fix the URL and try again.

OS: Ubuntu 22.04
Package Manager: pnpm
Turborepo Version 10.10.16

@maulanaadil
Copy link

Is there an update for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants