{ "id": "104906", "key": "TIMOB-11753", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14624", "description": "2012 Sprint 24 JS", "name": "2012 Sprint 24", "archived": true, "released": true, "releaseDate": "2012-12-03" }, { "id": "14627", "description": "2012 Sprint 24 JS", "name": "2012 Sprint 24 JS", "archived": true, "released": true, "releaseDate": "2012-12-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-12T21:02:28.000+0000", "created": "2012-11-13T22:18:12.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "cli", "qe-cli", "qe-manualtest" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "22948", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "104924", "key": "TISTUD-2776", "fields": { "summary": "Titanium CLI: Pass in Titanium SDK directory to CLI", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "22812", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "104998", "key": "TIMOB-11776", "fields": { "summary": "CLI: Could not find all required Titanium Modules: ti.cloud if Titanium SDK not in default location", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-08-12T21:02:59.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "When 'titanium config paths.sdks /blah' is called, the config.json file concatenates a new path to the property: paths.sdks. It should update the path completely.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run 'titanium config paths.sdks /blah'.\r\n2. Run 'titanium config paths.sdks /blah2'.\r\n\r\nActual Result:\r\n\r\n.titanium/config.json changes paths.sdks to:\r\n\r\n{code}\r\n\t\"paths\": {\r\n\t\t\"commands\": [],\r\n\t\t\"hooks\": [],\r\n\t\t\"modules\": [],\r\n\t\t\"plugins\": [],\r\n\t\t\"sdks\": [\r\n\t\t\t\"/blah\",\r\n\t\t\t\"/blah2\"\r\n\t\t]\r\n\t},\r\n{code}\r\n\r\nExpected Result:\r\n\r\nOnly one path value:\r\n\r\n{code}\r\n\t\"paths\": {\r\n\t\t\"commands\": [],\r\n\t\t\"hooks\": [],\r\n\t\t\"modules\": [],\r\n\t\t\"plugins\": [],\r\n\t\t\"sdks\": [\r\n\t\t\t\"/blah2\"\r\n\t\t]\r\n\t},\r\n{code}", "attachment": [], "flagged": false, "summary": "CLI: titanium config paths.sdks arg0 is additive, should replace entire path", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium CLI: 3.0.16\r\nOS: Mountain Lion 10.8.2", "comment": { "comments": [ { "id": "227207", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This behavior is by design because it would be a major pain to have to type a long list of SDKs every time you want to just add the latest.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-13T23:16:42.000+0000", "updated": "2012-11-13T23:16:42.000+0000" }, { "id": "227223", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Note: the ticket was re-opened because of several compelling use cases, but a more elegant solution than what is described in this ticket will be implemented (something where you can add, remove, or update individual sdk paths)", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-14T00:03:23.000+0000", "updated": "2012-11-14T00:03:23.000+0000" }, { "id": "235059", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Executed successfully, titanium config paths.sdks 'value' overwrite the previous value in .titanium/config.json\r\n\r\nVerified on : \r\nSDK version: 3.0.1.v20130111165328 , 3.1.0.v20130111163212\r\nCLI version : 3.0.22\r\nOS : MAC OSX 10.8.2\r\nXCode : 4.5.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-01-21T02:58:29.000+0000", "updated": "2013-01-21T02:58:29.000+0000" }, { "id": "318289", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "reopened to correct labels", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-12T21:01:18.000+0000", "updated": "2014-08-12T21:01:18.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }