GoogleCloudPlatform / cloud-run-button

Let anyone deploy your GitHub repos to Google Cloud Run with a single click
https://cloud.run
Apache License 2.0
525 stars 91 forks source link

The Cloud Shell Editor Does Not Open #210

Closed jamesward closed 3 years ago

jamesward commented 3 years ago

Because we override cloudshell_open a message is never sent to Cloud Shell to tell it the git repo has been cloned. This causes the editor to hang if a user tries to open it. image

To fix this we need to send a tcp message that tells Cloud Shell the git repo has been cloned (in bash form):

echo -e "42\n[null,null,null,[null,null,null,null,[1]]]\n" > /dev/tcp/localhost/8998

Replace the 1 above with 0 if the clone failed. 42 is the length.