forked from mirror/ledisdb
move some pkgs to vendor
godep can not handle some pkgs which have build tags So we put these into vendor explicitly
This commit is contained in:
parent
dddbd5f146
commit
b36d4aba37
|
@ -74,10 +74,6 @@
|
||||||
"ImportPath": "github.com/syndtr/gosnappy/snappy",
|
"ImportPath": "github.com/syndtr/gosnappy/snappy",
|
||||||
"Rev": "ce8acff4829e0c2458a67ead32390ac0a381c862"
|
"Rev": "ce8acff4829e0c2458a67ead32390ac0a381c862"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"ImportPath": "github.com/szferi/gomdb",
|
|
||||||
"Rev": "6bcb5a8059f9655a259774650dbe0cad422767a3"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/ugorji/go/codec",
|
"ImportPath": "github.com/ugorji/go/codec",
|
||||||
"Rev": "71c2886f5a673a35f909803f38ece5810165097b"
|
"Rev": "71c2886f5a673a35f909803f38ece5810165097b"
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
|
||||||
*.o
|
|
||||||
*.a
|
|
||||||
*.so
|
|
||||||
|
|
||||||
# Folders
|
|
||||||
_obj
|
|
||||||
_test
|
|
||||||
|
|
||||||
# Architecture specific extensions/prefixes
|
|
||||||
*.[568vq]
|
|
||||||
[568vq].out
|
|
||||||
|
|
||||||
*.cgo1.go
|
|
||||||
*.cgo2.c
|
|
||||||
_cgo_defun.c
|
|
||||||
_cgo_gotypes.go
|
|
||||||
_cgo_export.*
|
|
||||||
|
|
||||||
_testmain.go
|
|
||||||
|
|
||||||
*.exe
|
|
4
Makefile
4
Makefile
|
@ -16,13 +16,13 @@ all: build
|
||||||
build:
|
build:
|
||||||
$(GO) install -tags 'linenoise $(GO_BUILD_TAGS)' ./...
|
$(GO) install -tags 'linenoise $(GO_BUILD_TAGS)' ./...
|
||||||
|
|
||||||
build_use_lmdb:
|
build_lmdb:
|
||||||
$(GO) install -tags 'linenoise $(GO_BUILD_TAGS) lmdb' ./...
|
$(GO) install -tags 'linenoise $(GO_BUILD_TAGS) lmdb' ./...
|
||||||
|
|
||||||
test:
|
test:
|
||||||
$(GO) test --race -tags '$(GO_BUILD_TAGS)' ./...
|
$(GO) test --race -tags '$(GO_BUILD_TAGS)' ./...
|
||||||
|
|
||||||
test_use_lmdb:
|
test_lmdb:
|
||||||
$(GO) test --race -tags '$(GO_BUILD_TAGS) lmdb' ./...
|
$(GO) test --race -tags '$(GO_BUILD_TAGS) lmdb' ./...
|
||||||
|
|
||||||
test_ledis:
|
test_ledis:
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/siddontang/go/hack"
|
"github.com/siddontang/go/hack"
|
||||||
|
|
||||||
"github.com/siddontang/ledisdb/lua"
|
"github.com/siddontang/ledisdb/vendor/lua"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"github.com/siddontang/go/hack"
|
"github.com/siddontang/go/hack"
|
||||||
"github.com/siddontang/go/num"
|
"github.com/siddontang/go/num"
|
||||||
"github.com/siddontang/ledisdb/ledis"
|
"github.com/siddontang/ledisdb/ledis"
|
||||||
"github.com/siddontang/ledisdb/lua"
|
"github.com/siddontang/ledisdb/vendor/lua"
|
||||||
"io"
|
"io"
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,7 @@ package server
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/siddontang/ledisdb/config"
|
"github.com/siddontang/ledisdb/config"
|
||||||
"github.com/siddontang/ledisdb/lua"
|
"github.com/siddontang/ledisdb/vendor/lua"
|
||||||
|
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,7 @@ package mdb
|
||||||
import (
|
import (
|
||||||
"github.com/siddontang/ledisdb/config"
|
"github.com/siddontang/ledisdb/config"
|
||||||
"github.com/siddontang/ledisdb/store/driver"
|
"github.com/siddontang/ledisdb/store/driver"
|
||||||
mdb "github.com/szferi/gomdb"
|
mdb "github.com/siddontang/ledisdb/vendor/gomdb"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ package mdb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/siddontang/ledisdb/store/driver"
|
"github.com/siddontang/ledisdb/store/driver"
|
||||||
mdb "github.com/szferi/gomdb"
|
mdb "github.com/siddontang/ledisdb/vendor/gomdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Snapshot struct {
|
type Snapshot struct {
|
||||||
|
|
|
@ -4,7 +4,7 @@ package mdb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/siddontang/ledisdb/store/driver"
|
"github.com/siddontang/ledisdb/store/driver"
|
||||||
mdb "github.com/szferi/gomdb"
|
mdb "github.com/siddontang/ledisdb/vendor/gomdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Tx struct {
|
type Tx struct {
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[godep](https://github.com/tools/godep) can not save packages which have build tags.
|
||||||
|
|
||||||
|
So we put these packages here explicitly.
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
package mdb
|
package mdb
|
||||||
|
|
||||||
import (
|
import (
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
package mdb
|
package mdb
|
||||||
|
|
||||||
/*
|
/*
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
package mdb
|
package mdb
|
||||||
|
|
||||||
/*
|
/*
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
package mdb
|
package mdb
|
||||||
|
|
||||||
import (
|
import (
|
|
@ -1,8 +1,10 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
package mdb
|
package mdb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
|
||||||
"syscall"
|
"syscall"
|
||||||
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestErrno(t *testing.T) {
|
func TestErrno(t *testing.T) {
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
package mdb
|
package mdb
|
||||||
|
|
||||||
import (
|
import (
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
/** @file lmdb.h
|
/** @file lmdb.h
|
||||||
* @brief Lightning memory-mapped database library
|
* @brief Lightning memory-mapped database library
|
||||||
*
|
*
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
/** @file mdb.c
|
/** @file mdb.c
|
||||||
* @brief Lightning memory-mapped database library
|
* @brief Lightning memory-mapped database library
|
||||||
*
|
*
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
/*
|
/*
|
||||||
A thin wrapper for the lmdb C library. These are low-level bindings for the C
|
A thin wrapper for the lmdb C library. These are low-level bindings for the C
|
||||||
API. The C documentation should be used as a reference while developing
|
API. The C documentation should be used as a reference while developing
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
package mdb
|
package mdb
|
||||||
|
|
||||||
import (
|
import (
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
/** @file midl.c
|
/** @file midl.c
|
||||||
* @brief ldap bdb back-end ID List functions */
|
* @brief ldap bdb back-end ID List functions */
|
||||||
/* $OpenLDAP$ */
|
/* $OpenLDAP$ */
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
/** @file midl.h
|
/** @file midl.h
|
||||||
* @brief LMDB ID List header file.
|
* @brief LMDB ID List header file.
|
||||||
*
|
*
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
package mdb
|
package mdb
|
||||||
|
|
||||||
/*
|
/*
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
package mdb
|
package mdb
|
||||||
|
|
||||||
/*
|
/*
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build lmdb
|
||||||
|
|
||||||
package mdb
|
package mdb
|
||||||
|
|
||||||
import (
|
import (
|
|
@ -0,0 +1,22 @@
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2015 siddontang
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
Loading…
Reference in New Issue