vercel / turborepo

Build system optimized for JavaScript and TypeScript, written in Rust
https://turbo.build/repo/docs
MIT License
26.39k stars 1.84k forks source link

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

Open MiniSuperDev opened 1 year ago

MiniSuperDev commented 1 year ago

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

tknickman commented 1 year ago

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

versecafe commented 1 year ago

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 commented 12 months ago

Is there an update for this issue?