Compatibility with weekly release

21 views
Skip to first unread message

Gustavo Niemeyer

unread,
Jul 14, 2011, 3:57:55 PM7/14/11
to mgo-...@googlegroups.com
Greetings,

Just a quick note in case you're wondering: mgo is still not
compatible with the latest weekly, due to the modifications that
happened in the tag handling. I have a change in progress to address
this, and there will likely be incompatibilities to be addressed when
released. I'm in a sprint right now, so this should happen early next
week, if not earlier.

The current plan is to introduce tags like this:

type T struct {
V int `bson:"name,c"
}

Where today we'd have

type T struct {
V int "name/c"
}

While it's a little bit heavier, it will follow standard practices
being introduced in Go itself, and also makes it compatible with other
packages that need to use the tag information, so I think this is
worth it.

In terms of releases, in the near future, mgo will start to track the
stable release instead of the weeklies, since that's much more
reasonable to be using in production and is also the practice that is
being/will be followed in other places (Ubuntu, App Engine, etc).

If you have any interest/ideas on any of these topics, please let me
know as there's still time to adapt what we do.

--
Gustavo Niemeyer
http://niemeyer.net
http://niemeyer.net/plus
http://niemeyer.net/twitter
http://niemeyer.net/blog

-- I never filed a patent.

Travis Reeder

unread,
Jul 14, 2011, 4:30:28 PM7/14/11
to mgo-...@googlegroups.com
Just curious, does the non weekly package ('golang') from the ppa:gophers/go ppa include the same stuff like goinstall and gorun?

Gustavo Niemeyer

unread,
Jul 14, 2011, 4:34:47 PM7/14/11
to mgo-...@googlegroups.com
Hi Travis,

> Just curious, does the non weekly package ('golang') from the ppa:gophers/go
> ppa include the same stuff like goinstall and gorun?

All of them (golang, golang-weekly, golang-tip) include it indeed.

Travis Reeder

unread,
Jul 14, 2011, 4:35:58 PM7/14/11
to mgo-...@googlegroups.com
Awesome! Just tried it myself and all good. Will stick to non-weekly going forward, thanks!

Ruslan Mezentsev

unread,
Jul 26, 2011, 12:25:34 AM7/26/11
to mgo-users
Hello, mgo is install to weekly version now?

Gustavo Niemeyer

unread,
Jul 26, 2011, 6:47:32 AM7/26/11
to mgo-...@googlegroups.com
Hi Rusian,

> Hello, mgo is install to weekly version now?

No, mgo will remain compatible with the stable release of Go, since
that's what most people will want to use it with (that's what App
Engine supports, what will be available in Ubuntu, etc).

I plan to maintain the development tip compatible with the weekly
release or tip, though, and also plan to enable goinstall to
understand how to deal with these properly, but _right now_ the
easiest way is to use the stable release of Go.

Reply all
Reply to author
Forward
0 new messages