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

Issue related to private repositories #49

Open
ennozdd opened this issue Aug 21, 2023 · 2 comments
Open

Issue related to private repositories #49

ennozdd opened this issue Aug 21, 2023 · 2 comments

Comments

@ennozdd
Copy link

ennozdd commented Aug 21, 2023

https://github.com/demisto/vscode-extension/blob/42356da2683088ad1e2cd601f6d36f13c128ffa2/src/tools.ts#L31C4-L31C4

My pack resides in a private repository and content name check here prevents me from executing any commands "Please run this from Content repository".

@masq
Copy link

masq commented Aug 29, 2023

Having this exact same issue. Keep trying to do any commands to install an environment and just getting that error... I even made a mirror of the Demisto content repo and tried using that, but still get that same message. I'm using the right-click -> "install XSOAR local development environment" method

@masq
Copy link

masq commented Aug 29, 2023

I was able to figure this out.

I had a directory structure like...

xsoar/
..content/
.... ...
..dockerfiles/
.... ...
..xsoar.code-workspace

and my workspace file had a workspace folder path of ".".

Looking at this extension's code though, you must actually have a code-workspace with a folder that either has content in it somewhere in that path, or the current working directory of the code-workspace has to have content in it. Even if I was right-clicking on something within the content folder, it wouldn't work because the code-workspace wasn't in the content directory.

Making a new workspace within content/ and then using the same right-click method I was using before worked just fine.

Maybe this will help you out @ennozdd? Additionally, the documentation should really be a bit more clear on the requirements to install this... spent way too much time figuring this out 😬.

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

No branches or pull requests

2 participants