kanso/kanso — Issue #371: kanso fails to find version available in repo?
Author: mandric
Created: 2012-02-27 20:41:12+00:00
State: open

tried downgrading a package but kanso says it is not available in the repo, yet the website says it is?

```
$ cat kanso.json
{
"name": "example-test",
"version": "0.0.1",
"description": "The simplest possible app",
"attachments": ["index.html","static"],
"dependencies": {
"attachments": null,
"less-precompiler": null
}
}

mandric in ~/tmp/test
$ touch index.html

mandric in ~/tmp/test
$ mkdir static

mandric in ~/tmp/test
$ kanso install
installing from directory .
Building version tree...
checking attachments
checking less-precompiler
downloading http://kan.so/repository/less-precompiler/less-precompiler-1.2.1-kanso.5.tar.gz
downloading http://kan.so/repository/attachments/attachments-0.0.10.tar.gz
extracting attachments-0.0.10.tar.gz
installing attachments@0.0.10
extracting less-precompiler-1.2.1-kanso.5.tar.gz
installing less-precompiler@1.2.1-kanso.5
OK

mandric in ~/tmp/test
$ ls packages/
attachments less-precompiler

mandric in ~/tmp/test
$ vi kanso.json #change less-precompiler version
$ cat kanso.json
$ cat kanso.json
{
"name": "example-test",
"version": "0.0.1",
"description": "The simplest possible app",
"attachments": ["index.html","static"],
"dependencies": {
"attachments": null,
"less-precompiler": "1.1.6"
}
}

mandric in ~/tmp/test
$ kanso update
Building local version tree...
Error: No matching version for 'less-precompiler'

Available versions:
1.2.1-kanso.5

Requirements:
example-test requires 1.1.6

at Object.dependencyError (/Users/mandric/local/node/lib/node_modules/kanso/lib/tree.js:217:12)
at Object.updateDep (/Users/mandric/local/node/lib/node_modules/kanso/lib/tree.js:176:33)
at Object.addDependency (/Users/mandric/local/node/lib/node_modules/kanso/lib/tree.js:123:28)
at /Users/mandric/local/node/lib/node_modules/kanso/lib/tree.js:129:32
at /Users/mandric/local/node/lib/node_modules/kanso/lib/tree.js:172:20
at /Users/mandric/local/node/lib/node_modules/kanso/lib/packages.js:466:9
at /Users/mandric/local/node/lib/node_modules/kanso/node_modules/async/lib/async.js:105:25
at /Users/mandric/local/node/lib/node_modules/kanso/lib/packages.js:457:21
at /Users/mandric/local/node/lib/node_modules/kanso/node_modules/async/lib/async.js:675:28
at /Users/mandric/local/node/lib/node_modules/kanso/lib/settings.js:19:9
Failed

mandric in ~/tmp/test
$ kanso -v
0.2.0

mandric in ~/tmp/test
$ rm -rf packages/less-precompiler/

mandric in ~/tmp/test
$ kanso install
installing from directory .
Building version tree...
checking less-precompiler
downloading http://kan.so/repository/less-precompiler/less-precompiler-1.1.6.tar.gz
extracting less-precompiler-1.1.6.tar.gz
installing less-precompiler@1.1.6
OK

```