Re: [go-nuts] Re: gwenn/gosqlite, go1.8, runtime error: cgo argument has Go pointer to Go pointer

2017-03-08 Thread Basile Starynkevitch
On Wednesday, March 8, 2017 at 9:40:05 PM UTC+1, Ian Lance Taylor wrote: > > On Wed, Mar 8, 2017 at 11:34 AM, Basile Starynkevitch > > wrote: > > > > On Wednesday, March 8, 2017 at 8:24:26 PM UTC+1, Ian Lance Taylor wrote: > >> > >> On Wed, Mar 8, 2017 at 7:54 AM, Basile Starynkevitch > >>

Re: [go-nuts] Re: gwenn/gosqlite, go1.8, runtime error: cgo argument has Go pointer to Go pointer

2017-03-08 Thread Ian Lance Taylor
On Wed, Mar 8, 2017 at 11:34 AM, Basile Starynkevitch wrote: > > On Wednesday, March 8, 2017 at 8:24:26 PM UTC+1, Ian Lance Taylor wrote: >> >> On Wed, Mar 8, 2017 at 7:54 AM, Basile Starynkevitch >> wrote: >> I don't have any particular recommendations but I believe that >> github.com/mattn/go-s

Re: [go-nuts] Re: gwenn/gosqlite, go1.8, runtime error: cgo argument has Go pointer to Go pointer

2017-03-08 Thread Basile Starynkevitch
On Wednesday, March 8, 2017 at 8:24:26 PM UTC+1, Ian Lance Taylor wrote: > > On Wed, Mar 8, 2017 at 7:54 AM, Basile Starynkevitch > > wrote: > I don't have any particular recommendations but I believe that > github.com/mattn/go-sqlite3 works correctly with cgo. I know that > because I sent i

Re: [go-nuts] Re: gwenn/gosqlite, go1.8, runtime error: cgo argument has Go pointer to Go pointer

2017-03-08 Thread Ian Lance Taylor
On Wed, Mar 8, 2017 at 7:54 AM, Basile Starynkevitch wrote: > > On Wednesday, March 8, 2017 at 2:23:12 PM UTC+1, Tamás Gulácsi wrote: >> >> It's quite straightforward: gwenn/gosqlite has an error, by passing a Go >> pointer to the C side. This check is in effect since Go1.6. >> >> You should try t

Re: [go-nuts] Re: gwenn/gosqlite, go1.8, runtime error: cgo argument has Go pointer to Go pointer

2017-03-08 Thread Konstantin Khomoutov
On Wed, 8 Mar 2017 08:17:30 -0800 (PST) Basile Starynkevitch wrote: > > So if you're not really tied to SQLite as such (and picked it > > merely because you're familiar with it or because it's a sane go-to > > choice for single-file structured data persistence solution) other > > pure-Go solution

Re: [go-nuts] Re: gwenn/gosqlite, go1.8, runtime error: cgo argument has Go pointer to Go pointer

2017-03-08 Thread Basile Starynkevitch
On Wednesday, March 8, 2017 at 5:09:06 PM UTC+1, Konstantin Khomoutov wrote: > > So if you're not really tied to SQLite as such (and picked it merely > because you're familiar with it or because it's a sane go-to choice for > single-file structured data persistence solution) other pure-Go > s

Re: [go-nuts] Re: gwenn/gosqlite, go1.8, runtime error: cgo argument has Go pointer to Go pointer

2017-03-08 Thread Konstantin Khomoutov
On Wed, 8 Mar 2017 07:54:14 -0800 (PST) Basile Starynkevitch wrote: > > It's quite straightforward: gwenn/gosqlite has an error, by passing > > a Go pointer to the C side. This check is in effect since Go1.6. > > > > You should try to refresh your gosqlite library, or find a better > > maintaine

[go-nuts] Re: gwenn/gosqlite, go1.8, runtime error: cgo argument has Go pointer to Go pointer

2017-03-08 Thread James Bardin
That package documents the behavior on all the relevant methods: > Cannot be used with Go >= 1.6 and cgocheck enabled. If you trust the author to have written something that is correct despite the checks done by cgo, you can disable cgocheck to use those methods. On Wednesday, March 8, 2017 a

[go-nuts] Re: gwenn/gosqlite, go1.8, runtime error: cgo argument has Go pointer to Go pointer

2017-03-08 Thread Basile Starynkevitch
On Wednesday, March 8, 2017 at 2:23:12 PM UTC+1, Tamás Gulácsi wrote: > > It's quite straightforward: gwenn/gosqlite has an error, by passing a Go > pointer to the C side. This check is in effect since Go1.6. > > You should try to refresh your gosqlite library, or find a better > maintained one