{"action":"created","issue":{"url":"https://api.github.com/repos/luvit/lit/issues/132","labels_url":"https://api.github.com/repos/luvit/lit/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/luvit/lit/issues/132/comments","events_url":"https://api.github.com/repos/luvit/lit/issues/132/events","html_url":"https://github.com/luvit/lit/issues/132","id":114419409,"number":132,"title":"How to update a package to a newer version with lit","user":{"login":"cyrilis","id":1834189,"avatar_url":"https://avatars.githubusercontent.com/u/1834189?v=3","gravatar_id":"","url":"https://api.github.com/users/cyrilis","html_url":"https://github.com/cyrilis","followers_url":"https://api.github.com/users/cyrilis/followers","following_url":"https://api.github.com/users/cyrilis/following{/other_user}","gists_url":"https://api.github.com/users/cyrilis/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrilis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrilis/subscriptions","organizations_url":"https://api.github.com/users/cyrilis/orgs","repos_url":"https://api.github.com/users/cyrilis/repos","events_url":"https://api.github.com/users/cyrilis/events{/privacy}","received_events_url":"https://api.github.com/users/cyrilis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-31T16:23:44Z","updated_at":"2015-11-04T04:05:23Z","closed_at":"2015-11-04T02:43:14Z","body":"Hi there,\r\n\r\nI want to update my dependency packages to newer versions,  so I edited the package.lua from:\r\n```lua\r\ndependencies = {\r\n    \"cyrilis/luvit-mongodb@0.0.3\",\r\n    -- ...\r\n}\r\n```\r\nto: \r\n```lua\r\ndependencies = {\r\n    \"cyrilis/luvit-mongodb@0.0.4\",\r\n    -- ...\r\n}\r\n```\r\nThen I run `lit install` under project directory, it outputs:\r\n```\r\nlit version: 2.2.13\r\nluvi version: v2.3.5\r\ncommand: install\r\nload config: /Users/Cyril/.litconfig\r\nversion conflict: luvit-mongodb 0.0.3 ~= 0.0.4\r\nincluding dependency: luvit-mongodb (/Users/Cyril/Code/hurricane/deps/luvit-mongodb/)\r\nincluding dependency: mooncake (/Users/Cyril/Code/hurricane/deps/mooncake/)\r\ndone: success\r\n```\r\nAnd it seems not installed version 0.0.4.\r\n\r\nSo, how should I update package with lit, I have to remove `deps/<packageName>` manually before `lit install` ?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/luvit/lit/issues/comments/153565976","html_url":"https://github.com/luvit/lit/issues/132#issuecomment-153565976","issue_url":"https://api.github.com/repos/luvit/lit/issues/132","id":153565976,"user":{"login":"creationix","id":89353,"avatar_url":"https://avatars.githubusercontent.com/u/89353?v=3","gravatar_id":"","url":"https://api.github.com/users/creationix","html_url":"https://github.com/creationix","followers_url":"https://api.github.com/users/creationix/followers","following_url":"https://api.github.com/users/creationix/following{/other_user}","gists_url":"https://api.github.com/users/creationix/gists{/gist_id}","starred_url":"https://api.github.com/users/creationix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creationix/subscriptions","organizations_url":"https://api.github.com/users/creationix/orgs","repos_url":"https://api.github.com/users/creationix/repos","events_url":"https://api.github.com/users/creationix/events{/privacy}","received_events_url":"https://api.github.com/users/creationix/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T04:05:23Z","updated_at":"2015-11-04T04:05:23Z","body":"That said, it's really not that hard to `rm -rf deps` when you want to update, we could even add a new command that does this for you.  I just remembered that moving the modules out of deps in lit and luvit would break their workflows since they assume the packages are in the place that lit installs them. (insert joke about breaking obscure workflows)"}}