Problem with vendor install in 0.5.2

12 views
Skip to first unread message

Jörg Richter

unread,
Dec 18, 2009, 6:48:18 PM12/18/09
to CouchApp, bche...@gmail.com
Dear Benoit,

in CouchApp 0.5.2 the behavoir of the vendor install command has
apparently changed.
I get an error:

$ couchapp vendor install git://github.com/jri/dm3-time.git
[CRITICAL] Invalid vendor, medata not found.

This error didn't occur in CouchApp 0.4

What I tried already: adding a file "metadata.json" to /vendor/dm3-
time of the git repository (next to _attachments and views). Didn't
help, same error.

Can you help?

Cheers,
Jörg


PS: apparently GoogleGroups has some problems. Sorry for possible
double posting.

Jörg Richter

unread,
Dec 18, 2009, 6:57:11 PM12/18/09
to CouchApp

Addendum:
the content of the metadata.json file I tried:

{"scm": "git", "update_url": "git://github.com/jri/dm3-time.git"}

Benoit Chesneau

unread,
Dec 19, 2009, 5:01:27 AM12/19/09
to couc...@googlegroups.com
> --

Sorry I should have documented that in changelog. Fs layout has
changed a little. Now you put a vendor folder whatever is its name on
top of your git project and in metdata you tell what is its name. You
also don't have to tell what is the uri now. It is saved when you
install the vendor the first time. See the couchapp example :

http://github.com/couchapp/couchapp/tree/master/vendor/

and the metadata file :

http://github.com/couchapp/couchapp/blob/master/vendor/metadata.json

- benoît

Jörg Richter

unread,
Dec 19, 2009, 1:45:42 PM12/19/09
to CouchApp

Thank you for the info!
Now I got things working again.

To sum up (if I got it right) the current CouchApp 0.4 README could
replace ...

> Within your repository, your vendor app should be in a vendor folder:
> vendor/appname

... with ...

> Within the repository of your vendor project create a "vendor" folder containing
> 1) your vendor project's files & folders (_attachments etc.)
> 2) a file "metadata.json" which tells CouchApp the name of your vendor project.
> Later on, the "couchapp vendor install" command will install your vendor project under that name.
> That is, CouchApp creates a folder of that name (within CouchDBs vendor folder) and puts the vendor project's files & folders into it.
> If no name is specified "vendor" is used.

in short: the former "appname" is not a folder anymore but appears in
the metadata file, reducing the file hierarchy by one level.
Right?

- Jörg

Jörg Richter

unread,
Dec 19, 2009, 1:56:35 PM12/19/09
to CouchApp

On Dec 19, 7:45 pm, Jörg Richter <j...@deepamehta.de> wrote:
> > ... (within CouchDBs vendor folder) ...

Correction: this should be
>> ... (within the "vendor" folder of your CouchDB application) ...

Jörg Richter

unread,
Dec 17, 2009, 7:58:17 PM12/17/09
to couc...@googlegroups.com

Dear Benoit,

in CouchApp 0.5.2 the behavoir of the vendor install command has
apparently changed.
I get an error:

> $ couchapp vendor install git://github.com/jri/dm3-time.git
> [CRITICAL] Invalid vendor, medata not found.

This error didn't occur in CouchApp 0.4

Can you help?

Cheers,
Jörg

Reply all
Reply to author
Forward
0 new messages