Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14026] CLI: Make sure sdk folder is writable when installing an sdk

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-08-02T23:18:49.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 16, 2013 Sprint 16 Core, Release 3.2.0
ComponentsCLI
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2013-05-30T16:14:03.000+0000
Updated2013-11-18T18:34:30.000+0000

Description

If the mobile sdk folder is not writable, the sdk install command errors. Try to detect and gracefully fail.

Comments

  1. Chris Barber 2013-07-26

    https://github.com/appcelerator/titanium/pull/50 https://github.com/appcelerator/node-appc/pull/50
  2. Chris Barber 2013-07-31

    To test, run the "ti sdk" command to determine the default Titanium SDK install location. For Mac OS X, the default install location is "~/Library/Application Support/Titanium". Next, run:
       sudo chown root:admin ~/Library/Application\ Support/Titanium
       
    Then run "titanium sdk install --branch master" to try to download the latest SDK. The install will fail and the SDK is not downloaded. To restore your folder permissions, run:
       sudo chown YOUR_USER_NAME:staff ~/Library/Application\ Support/Titanium
       
  3. Samuel Dowse 2013-11-18

    Verified fixed on: Mac OSX 10.9 Mavericks Titanium Studio, build: 3.2.0.201311160316 Titanium SDK, build: 3.2.0.v20131117001643 CLI: 3.2.0-alpha Alloy: 1.3.0 Verified using test case provided in comments and SDK successfully installed to writable folder and an error message is displayed for folders that have no write access. Closing.

JSON Source