Commit da44885f authored by Kirill Smelkov's avatar Kirill Smelkov

X stop using local imports -> lab.nexedi.com/kirr/neo/go/*

parent bbbf9091
...@@ -22,9 +22,9 @@ import ( ...@@ -22,9 +22,9 @@ import (
"context" "context"
"net/url" "net/url"
"../../neo" "lab.nexedi.com/kirr/neo/go/neo"
"../../zodb" "lab.nexedi.com/kirr/neo/go/zodb"
"../../xcommon/xnet" "lab.nexedi.com/kirr/neo/go/xcommon/xnet"
) )
// Client talks to NEO cluster and exposes access it via ZODB interfaces // Client talks to NEO cluster and exposes access it via ZODB interfaces
......
...@@ -23,7 +23,7 @@ import ( ...@@ -23,7 +23,7 @@ import (
"fmt" "fmt"
"os" "os"
"../../../neo/neotools" "lab.nexedi.com/kirr/neo/go/neo/neotools"
) )
func usage() { func usage() {
......
...@@ -29,7 +29,7 @@ import ( ...@@ -29,7 +29,7 @@ import (
"sync" "sync"
"sync/atomic" "sync/atomic"
"../xcommon/xnet" "lab.nexedi.com/kirr/neo/go/xcommon/xnet"
) )
// NodeLink is a node-node link in NEO // NodeLink is a node-node link in NEO
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
package neo package neo
import ( import (
"../zodb" "lab.nexedi.com/kirr/neo/go/zodb"
) )
const ( const (
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
package neotools package neotools
// registry of all commands & help topics // registry of all commands & help topics
import "../../zodb/zodbtools" import "lab.nexedi.com/kirr/neo/go/zodb/zodbtools"
var Commands = zodbtools.CommandRegistry{ var Commands = zodbtools.CommandRegistry{
{"master", masterSummary, masterUsage, masterMain}, {"master", masterSummary, masterUsage, masterMain},
......
...@@ -26,8 +26,8 @@ import ( ...@@ -26,8 +26,8 @@ import (
"io" "io"
"os" "os"
"../../neo/server" "lab.nexedi.com/kirr/neo/go/neo/server"
"../../xcommon/xnet" "lab.nexedi.com/kirr/neo/go/xcommon/xnet"
) )
const masterSummary = "run master node" const masterSummary = "run master node"
......
...@@ -27,9 +27,9 @@ import ( ...@@ -27,9 +27,9 @@ import (
"os" "os"
"strings" "strings"
"../../neo/server" "lab.nexedi.com/kirr/neo/go/neo/server"
"../../zodb/storage/fs1" "lab.nexedi.com/kirr/neo/go/zodb/storage/fs1"
"../../xcommon/xnet" "lab.nexedi.com/kirr/neo/go/xcommon/xnet"
) )
const storageSummary = "run storage node" const storageSummary = "run storage node"
......
...@@ -166,7 +166,7 @@ import ( ...@@ -166,7 +166,7 @@ import (
"reflect" "reflect"
"sort" "sort"
"../zodb" "lab.nexedi.com/kirr/neo/go/zodb"
)`) )`)
msgTypeRegistry := map[int]string{} // msgCode -> typename msgTypeRegistry := map[int]string{} // msgCode -> typename
......
...@@ -26,9 +26,9 @@ import ( ...@@ -26,9 +26,9 @@ import (
"math" "math"
"sync" "sync"
"../../neo" "lab.nexedi.com/kirr/neo/go/neo"
"../../zodb" "lab.nexedi.com/kirr/neo/go/zodb"
"../../xcommon/xnet" "lab.nexedi.com/kirr/neo/go/xcommon/xnet"
"lab.nexedi.com/kirr/go123/xerr" "lab.nexedi.com/kirr/go123/xerr"
) )
......
...@@ -23,7 +23,7 @@ import ( ...@@ -23,7 +23,7 @@ import (
"fmt" "fmt"
"net" "net"
"../../neo" "lab.nexedi.com/kirr/neo/go/neo"
"lab.nexedi.com/kirr/go123/xerr" "lab.nexedi.com/kirr/go123/xerr"
) )
......
...@@ -24,9 +24,9 @@ import ( ...@@ -24,9 +24,9 @@ import (
"sync" "sync"
"time" "time"
"../../neo" "lab.nexedi.com/kirr/neo/go/neo"
"../../zodb" "lab.nexedi.com/kirr/neo/go/zodb"
"../../xcommon/xnet" "lab.nexedi.com/kirr/neo/go/xcommon/xnet"
) )
// XXX fmt -> log // XXX fmt -> log
......
...@@ -19,8 +19,8 @@ package server ...@@ -19,8 +19,8 @@ package server
// tracepoints // tracepoints
import ( import (
"../../neo" "lab.nexedi.com/kirr/neo/go/neo"
"../../xcommon/tracing" "lab.nexedi.com/kirr/neo/go/xcommon/tracing"
_ "unsafe" _ "unsafe"
) )
......
...@@ -21,7 +21,7 @@ package neo ...@@ -21,7 +21,7 @@ package neo
import ( import (
"unsafe" "unsafe"
"../xcommon/tracing" "lab.nexedi.com/kirr/neo/go/xcommon/tracing"
) )
// XXX put under 'build +tracedef' // XXX put under 'build +tracedef'
......
...@@ -22,7 +22,7 @@ import ( ...@@ -22,7 +22,7 @@ import (
"bufio" "bufio"
"io" "io"
"../xio" "lab.nexedi.com/kirr/neo/go/xcommon/xio"
) )
// Reader is a bufio.Reader + bell & whistles // Reader is a bufio.Reader + bell & whistles
......
...@@ -43,7 +43,7 @@ import ( ...@@ -43,7 +43,7 @@ import (
"strconv" "strconv"
"sync" "sync"
"../../../xcommon/xnet" "lab.nexedi.com/kirr/neo/go/xcommon/xnet"
) )
const NetPrefix = "pipe" // pipenet package creates only "pipe*" networks const NetPrefix = "pipe" // pipenet package creates only "pipe*" networks
......
...@@ -23,9 +23,9 @@ import ( ...@@ -23,9 +23,9 @@ import (
"fmt" "fmt"
"os" "os"
"../../../zodb/zodbtools" "lab.nexedi.com/kirr/neo/go/zodb/zodbtools"
_ "../../../zodb/wks" _ "lab.nexedi.com/kirr/neo/go/zodb/wks"
) )
func usage() { func usage() {
......
...@@ -34,9 +34,9 @@ import ( ...@@ -34,9 +34,9 @@ import (
"log" "log"
"os" "os"
"../../../../../zodb/storage/fs1" "lab.nexedi.com/kirr/neo/go/zodb/storage/fs1"
"../../../../../xcommon/xbufio" "lab.nexedi.com/kirr/neo/go/xcommon/xbufio"
"lab.nexedi.com/kirr/go123/xbytes" "lab.nexedi.com/kirr/go123/xbytes"
"lab.nexedi.com/kirr/go123/xfmt" "lab.nexedi.com/kirr/go123/xfmt"
......
...@@ -28,8 +28,8 @@ import ( ...@@ -28,8 +28,8 @@ import (
"io" "io"
"os" "os"
"../../../zodb" "lab.nexedi.com/kirr/neo/go/zodb"
"../../../xcommon/xbufio" "lab.nexedi.com/kirr/neo/go/xcommon/xbufio"
"lab.nexedi.com/kirr/go123/xbytes" "lab.nexedi.com/kirr/go123/xbytes"
) )
......
...@@ -4,7 +4,7 @@ package fsb ...@@ -4,7 +4,7 @@ package fsb
//go:generate ./gen-fsbtree //go:generate ./gen-fsbtree
import "../../../../zodb" import "lab.nexedi.com/kirr/neo/go/zodb"
// comparison function for fsbTree // comparison function for fsbTree
// kept short & inlineable // kept short & inlineable
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
package fsb package fsb
import "../../../../zodb" import "lab.nexedi.com/kirr/neo/go/zodb"
import ( import (
"fmt" "fmt"
......
...@@ -19,7 +19,7 @@ echo "// KEY=$KEY VALUE=$VALUE" >>$out ...@@ -19,7 +19,7 @@ echo "// KEY=$KEY VALUE=$VALUE" >>$out
echo "// ---- 8< ----" >>$out echo "// ---- 8< ----" >>$out
echo >>$out echo >>$out
make -s -C $Bdir generic |sed \ make -s -C $Bdir generic |sed \
-e '/package b/a \\nimport "../../../../zodb"' \ -e '/package b/a \\nimport "lab.nexedi.com/kirr/neo/go/zodb"' \
-e 's/package b/package fsb/g' \ -e 's/package b/package fsb/g' \
-e "s/KEY/$KEY/g" \ -e "s/KEY/$KEY/g" \
-e "s/VALUE/$VALUE/g" \ -e "s/VALUE/$VALUE/g" \
......
...@@ -30,15 +30,15 @@ import ( ...@@ -30,15 +30,15 @@ import (
"os" "os"
"strconv" "strconv"
"../../../zodb" "lab.nexedi.com/kirr/neo/go/zodb"
"./fsb" "lab.nexedi.com/kirr/neo/go/zodb/storage/fs1/fsb"
pickle "github.com/kisielk/og-rek" pickle "github.com/kisielk/og-rek"
"lab.nexedi.com/kirr/go123/mem" "lab.nexedi.com/kirr/go123/mem"
"../../../xcommon/xbufio" "lab.nexedi.com/kirr/neo/go/xcommon/xbufio"
"../../../xcommon/xio" "lab.nexedi.com/kirr/neo/go/xcommon/xio"
) )
// fsIndex is Oid -> Data record position mapping used to associate Oid with // fsIndex is Oid -> Data record position mapping used to associate Oid with
......
...@@ -22,7 +22,7 @@ import ( ...@@ -22,7 +22,7 @@ import (
"context" "context"
"net/url" "net/url"
"../../../zodb" "lab.nexedi.com/kirr/neo/go/zodb"
) )
// TODO read-only support // TODO read-only support
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
package wks package wks
import ( import (
_ "../../zodb/storage/mem" _ "lab.nexedi.com/kirr/neo/go/zodb/storage/mem"
_ "../../zodb/storage/fs1" _ "lab.nexedi.com/kirr/neo/go/zodb/storage/fs1"
_ "../../neo/client" _ "lab.nexedi.com/kirr/neo/go/neo/client"
) )
...@@ -26,7 +26,7 @@ import ( ...@@ -26,7 +26,7 @@ import (
"log" "log"
"os" "os"
"../../zodb" "lab.nexedi.com/kirr/neo/go/zodb"
) )
......
...@@ -47,7 +47,7 @@ import ( ...@@ -47,7 +47,7 @@ import (
"lab.nexedi.com/kirr/go123/xfmt" "lab.nexedi.com/kirr/go123/xfmt"
"../../zodb" "lab.nexedi.com/kirr/neo/go/zodb"
) )
......
...@@ -27,7 +27,7 @@ import ( ...@@ -27,7 +27,7 @@ import (
"log" "log"
"os" "os"
"../../zodb" "lab.nexedi.com/kirr/neo/go/zodb"
) )
// paramFunc is a function to retrieve 1 storage parameter // paramFunc is a function to retrieve 1 storage parameter
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment