gana2188 / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

install.sh fails - current working directory is inside the Cloud SDK Root #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip
2. Unzip and change directory into google-cloud-sdk
3. Issue ./install.sh (as per instructions on 
https://developers.google.com/cloud/sdk/#What_is_Google_Cloud_SDK)

What is the expected output? What do you see instead?
Expected output would be some confirmation that the install succeeded. Instead, 
the script fails with 

(gcloud.components.update) Your current working directory is inside the Cloud 
SDK install root: /home/alice/down/google-cloud-sdk.  In order to perform this 
update, run the command from outside of this directory.

I can successfully install the SDK by simply starting the installer from the 
SDK's parent directory.

(See attachment for complete log.)

What version of the product are you using? On what operating system?
Arch Linux 64 bit.

Please provide any additional information below.

Original issue reported on code.google.com by al...@pagewoo.com on 3 Dec 2013 at 7:39

Attachments:

GoogleCodeExporter commented 9 years ago
This behavior is expected. Updating the CloudSDK from within google-cloud-sdk 
causes your current working directory to become detached, and can lead to 
confusion. Having this requirement on the installation and updating process 
avoids the issue at the cost of some minor friction.

Original comment by jasm...@google.com on 4 Dec 2013 at 9:12