-
Notifications
You must be signed in to change notification settings - Fork 53
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
Cloning skill with ASK CLI - resulting in error #286
Comments
@HeIp ask init for hosted skill should work if run it inside of an empty folder. It seems like you are running the command inside of a folder that already has initialized git repo. |
@kakhaUrigashvili I actually created an empty folder and ran the command in the newly created empty folder and still resulted in the same way(just now). |
@HeIp I was able to reproduce the issue. .ask and .ask-resources.json should be in .gitignore on the master branch. If you dont have them it would cause this issue. https://github.com/alexa/ask-cli/blob/develop/lib/controllers/hosted-skill-controller/index.js#L64 then clones git repo and tries to checkout master branch. If there are conflicts the git checkout fails. I will have to discuss with the team about the solution. |
Thank you for looking into this ! |
Hi, I tried all the above solution but nothing works for me. It just throws me below error message:
Just to mention I am not using git. Still I added .ask and .ask-resources.json file in .gitignore. Besides that I created this skill with ASK CLI V2 and deployed it and everything worked fine. When I try to clone it in another folder then it throws me the above error. Any help? |
Have you tried using the vscode extension ? |
@cbothra would you mind providing detailed steps to help reproduce the issue? |
@HeIp Yes I tried the vscode extension but wasn't very comfortable with it. So switched back to terminal :) @kakhaUrigashvili Here are the detailed steps. Everything works like a charm till here. 6. Now created an empty folder. At step 7. it throws me error Hope this helps. |
I think I got the answer from the migration guide.
Thanks @everyone for the quick reverts. I really appreciate that. |
I'm submitting a...
Expected Behavior
Trying to Code with offline tools on local machine running
ask init --hosted-skill-id amzn1.ask.skill.X-X-X-X-X
Expecting it to clone/copy/download the code on aws to my machine.
Current Behavior
Instead of downloading the code for offline use CLI returns the following:
CLI Snapshot
![image](https://user-images.githubusercontent.com/31706214/90668379-02acd980-e21e-11ea-82e4-39e070ba19f8.png)
Steps to Reproduce (for bugs)
1)run
ask init --hosted-skill-id amzn1.ask.skill.X-X-X-X-X
2)see error as shown in snapshot above
Possible Solution
Work Around:
1)Get VS code and get Alexa Skills KiT (ASK) ToolKit plugin
2) Set up the plugin with aws account/credentials
3) Click Import existing skill
4) Click skill name planning to import
5) Pick folder location
6) Code downloads successfully
Your Environment and Context
The text was updated successfully, but these errors were encountered: