-
Notifications
You must be signed in to change notification settings - Fork 427
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
Panic in askStaticSite function #5524
Comments
Hey @antonioau !! Thank you very much for bringing this to our attention, and sincere apology for the issue 🙇🏼♀️ ! I've sent out a fix #5530 which will be shipped in the next release! This panic should happen when you satisfy all of the following:
For now, until we ship the fix, can you run Thank you again for opening the issue!! |
I just ran into this same issue. I ran svc init instead. I had a file without read access that made it fail. I removed that and then it prompts for way too many files. It looks like the directories are relative either. If I check this repo out somewhere else the directory might have a different name so it doesn't seem like a good pattern. This is the first time I am using static site feature so I am not sure if this is how it normally behaves but it seems odd. I suppose you can always modify the manifest afterwards? EDIT: after I selected a path it started trying to update another unrelated infrastructure stack so i did a ctrl-c to stop it. I'm not sure what it would have done to my other app. |
Hello @surrealchemist. Sorry for running into this issue. We'll make a patch release fixing this soon.
Yes. This is correct. You can always modify the manifest afterward. You can use
It's expected if it is updating your application infrastructure stack, which is the bootstrap stack Copilot creates for each environment region. |
Hello! The fix is now released in v1.32.1: https://github.com/aws/copilot-cli/releases/tag/v1.32.1 |
Thanks. I get prompted if I want to use an existing app now, which makes sense. I can say no and then it creates its own infrastructure stack. Looking a lot better now. |
Title: Panic in askStaticSite function
Description: I am experiencing a panic in the askStaticSite function of the Copilot CLI tool. The panic is occurring on line 540 of the svc_init.go file. I have tried debugging the function, but I am unable to identify the root cause of the problem.
Steps to reproduce:
Run the copilot init svc command.
Select the "Static site" option.
The panic will occur when the tool prompts you for the static site URL.
The text was updated successfully, but these errors were encountered: