codesandbox / codesandbox-importers

All importers & exporters for CodeSandbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Github Import bringing folders out of the path into files

lcschy opened this issue · comments

I opened this issue on the client but maybe I should do it here as well:

Description of the problem

When trying to create a sandbox from a Github repo, and in a specific path, instead of only bringing files from the path, it's randomly bringing a folder that is on a directory above the specified path.

The folder marked below should not have been imported (It's in the upper directory):
image

How has this issue affected you? What are you trying to accomplish?

I'm trying to embed a working example in our guides but the sandbox will not work because of this additional unwanted folder.

To Reproduce

Create a new sandbox using Github import from this path:
https://github.com/Basis-Theory/basis-theory-js-examples/tree/master/collect-cards-with-individual-elements

Link to sandbox: link (optional)

Your Environment

Software Name/Version
Сodesandbox Web
Browser Brave/1.39.111
Operating System MacOS 12.4

Closing this one in favor of codesandbox/codesandbox-client#6730. I believe the issue lies with the "new" importer not found in this repository. 🙂