1
0
Fork 0

Bring go mod import path into compliance

master
Philip O'Toole 9 months ago
parent dbb6dda957
commit ad916270d2

@ -5,8 +5,8 @@ import (
"io"
"os"
"github.com/rqlite/rqlite/auto"
"github.com/rqlite/rqlite/aws"
"github.com/rqlite/rqlite/v8/auto"
"github.com/rqlite/rqlite/v8/aws"
)
// Config is the config file format for the upload service

@ -9,8 +9,8 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/auto"
"github.com/rqlite/rqlite/aws"
"github.com/rqlite/rqlite/v8/auto"
"github.com/rqlite/rqlite/v8/aws"
)
func Test_ReadConfigFile(t *testing.T) {

@ -10,7 +10,7 @@ import (
"os"
"time"
"github.com/rqlite/rqlite/progress"
"github.com/rqlite/rqlite/v8/progress"
)
// StorageClient is an interface for uploading data to a storage service.

@ -6,8 +6,8 @@ import (
"os"
"time"
"github.com/rqlite/rqlite/auto"
"github.com/rqlite/rqlite/aws"
"github.com/rqlite/rqlite/v8/auto"
"github.com/rqlite/rqlite/v8/aws"
)
// Config is the config file format for the upload service

@ -9,8 +9,8 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/auto"
"github.com/rqlite/rqlite/aws"
"github.com/rqlite/rqlite/v8/auto"
"github.com/rqlite/rqlite/v8/aws"
)
func Test_ReadConfigFile(t *testing.T) {

@ -8,8 +8,8 @@ import (
"sync"
"time"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/random"
"github.com/rqlite/rqlite/v8/command"
"github.com/rqlite/rqlite/v8/random"
)
var (

@ -8,8 +8,8 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/cluster/servicetest"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/cluster/servicetest"
"github.com/rqlite/rqlite/v8/command"
"google.golang.org/protobuf/proto"
)

@ -11,8 +11,8 @@ import (
"sync"
"time"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/tcp/pool"
"github.com/rqlite/rqlite/v8/command"
"github.com/rqlite/rqlite/v8/tcp/pool"
"google.golang.org/protobuf/proto"
)

@ -8,8 +8,8 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/cluster/servicetest"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/cluster/servicetest"
"github.com/rqlite/rqlite/v8/command"
"google.golang.org/protobuf/proto"
)

@ -6,7 +6,7 @@ import (
"os"
"time"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/command"
)
var (

@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/cluster/servicetest"
"github.com/rqlite/rqlite/v8/cluster/servicetest"
"google.golang.org/protobuf/proto"
)

@ -7,7 +7,7 @@
package cluster
import (
command "github.com/rqlite/rqlite/command"
command "github.com/rqlite/rqlite/v8/command"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"

@ -3,7 +3,7 @@ package cluster;
import "command/command.proto";
option go_package = "github.com/rqlite/rqlite/cluster";
option go_package = "github.com/rqlite/rqlite/v8/cluster";
message Credentials {
string username = 1;

@ -5,7 +5,7 @@ import (
"os"
"time"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/command"
)
const (

@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/cluster/servicetest"
"github.com/rqlite/rqlite/v8/cluster/servicetest"
"google.golang.org/protobuf/proto"
)

@ -14,8 +14,8 @@ import (
"sync"
"time"
"github.com/rqlite/rqlite/auth"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/auth"
"github.com/rqlite/rqlite/v8/command"
"google.golang.org/protobuf/proto"
)

@ -10,8 +10,8 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/command/encoding"
"github.com/rqlite/rqlite/v8/command"
"github.com/rqlite/rqlite/v8/command/encoding"
)
const shortWait = 1 * time.Second

@ -8,9 +8,9 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/rtls"
"github.com/rqlite/rqlite/tcp"
"github.com/rqlite/rqlite/testdata/x509"
"github.com/rqlite/rqlite/v8/rtls"
"github.com/rqlite/rqlite/v8/tcp"
"github.com/rqlite/rqlite/v8/testdata/x509"
)
func Test_NewServiceSetGetNodeAPIAddrMuxed(t *testing.T) {

@ -10,8 +10,8 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/testdata/x509"
"github.com/rqlite/rqlite/v8/command"
"github.com/rqlite/rqlite/v8/testdata/x509"
)
func Test_NewServiceOpenClose(t *testing.T) {

@ -8,7 +8,7 @@ import (
"strings"
"github.com/mkideal/cli"
cl "github.com/rqlite/rqlite/cmd/rqlite/http"
cl "github.com/rqlite/rqlite/v8/cmd/rqlite/http"
)
// Result represents execute result

@ -18,10 +18,10 @@ import (
"github.com/Bowery/prompt"
"github.com/mkideal/cli"
clix "github.com/mkideal/cli/ext"
"github.com/rqlite/rqlite/cmd"
"github.com/rqlite/rqlite/cmd/rqlite/history"
httpcl "github.com/rqlite/rqlite/cmd/rqlite/http"
"github.com/rqlite/rqlite/rtls"
"github.com/rqlite/rqlite/v8/cmd"
"github.com/rqlite/rqlite/v8/cmd/rqlite/history"
httpcl "github.com/rqlite/rqlite/v8/cmd/rqlite/http"
"github.com/rqlite/rqlite/v8/rtls"
)
const maxRedirect = 21

@ -8,7 +8,7 @@ import (
"github.com/mkideal/cli"
"github.com/mkideal/pkg/textutil"
cl "github.com/rqlite/rqlite/cmd/rqlite/http"
cl "github.com/rqlite/rqlite/v8/cmd/rqlite/http"
)
// Rows represents query result

@ -18,19 +18,19 @@ import (
"github.com/rqlite/rqlite-disco-clients/dns"
"github.com/rqlite/rqlite-disco-clients/dnssrv"
etcd "github.com/rqlite/rqlite-disco-clients/etcd"
"github.com/rqlite/rqlite/auth"
"github.com/rqlite/rqlite/auto/backup"
"github.com/rqlite/rqlite/auto/restore"
"github.com/rqlite/rqlite/aws"
"github.com/rqlite/rqlite/cluster"
"github.com/rqlite/rqlite/cmd"
"github.com/rqlite/rqlite/db"
"github.com/rqlite/rqlite/disco"
"github.com/rqlite/rqlite/http"
httpd "github.com/rqlite/rqlite/http"
"github.com/rqlite/rqlite/rtls"
"github.com/rqlite/rqlite/store"
"github.com/rqlite/rqlite/tcp"
"github.com/rqlite/rqlite/v8/auth"
"github.com/rqlite/rqlite/v8/auto/backup"
"github.com/rqlite/rqlite/v8/auto/restore"
"github.com/rqlite/rqlite/v8/aws"
"github.com/rqlite/rqlite/v8/cluster"
"github.com/rqlite/rqlite/v8/cmd"
"github.com/rqlite/rqlite/v8/db"
"github.com/rqlite/rqlite/v8/disco"
"github.com/rqlite/rqlite/v8/http"
httpd "github.com/rqlite/rqlite/v8/http"
"github.com/rqlite/rqlite/v8/rtls"
"github.com/rqlite/rqlite/v8/store"
"github.com/rqlite/rqlite/v8/tcp"
)
const logo = `

@ -9,7 +9,7 @@ import (
"io"
"sync"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/command"
)
const (

@ -8,7 +8,7 @@ import (
"os"
"sync"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/command"
)
// Dechunker is a writer that writes chunks to a file and returns the file path when

@ -10,7 +10,7 @@ import (
"strings"
"testing"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/command"
)
func Test_SingleChunk(t *testing.T) {

@ -1,7 +1,7 @@
syntax = "proto3";
package command;
option go_package = "github.com/rqlite/rqlite/command";
option go_package = "github.com/rqlite/rqlite/v8/command";
message Parameter {
oneof value {

@ -6,7 +6,7 @@ import (
"errors"
"fmt"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/command"
)
var (

@ -3,7 +3,7 @@ package encoding
import (
"testing"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/command"
)
func Test_JSONNoEscaping(t *testing.T) {

@ -18,7 +18,7 @@ import (
"time"
"github.com/rqlite/go-sqlite3"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/command"
)
const (

@ -7,8 +7,8 @@ import (
"strings"
"testing"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/testdata/chinook"
"github.com/rqlite/rqlite/v8/command"
"github.com/rqlite/rqlite/v8/testdata/chinook"
)
func testCompileOptions(t *testing.T, db *DB) {

@ -10,8 +10,8 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/command/encoding"
"github.com/rqlite/rqlite/v8/command"
"github.com/rqlite/rqlite/v8/command/encoding"
)
// Test_OpenNonExistentDatabase tests that opening a non-existent database

@ -6,7 +6,7 @@ import (
"io"
"os"
"github.com/rqlite/rqlite/db/wal"
"github.com/rqlite/rqlite/v8/db/wal"
)
const name = `walr`

@ -9,7 +9,7 @@ import (
"testing"
_ "github.com/rqlite/go-sqlite3"
"github.com/rqlite/rqlite/random"
"github.com/rqlite/rqlite/v8/random"
)
func Test_Writer_FullScanner(t *testing.T) {

@ -7,7 +7,7 @@ import (
"sync"
"time"
"github.com/rqlite/rqlite/random"
"github.com/rqlite/rqlite/v8/random"
)
const (

@ -1,4 +1,4 @@
module github.com/rqlite/rqlite
module github.com/rqlite/rqlite/v8
go 1.21

@ -8,7 +8,7 @@ import (
"sync"
"time"
"github.com/rqlite/rqlite/store"
"github.com/rqlite/rqlite/v8/store"
)
// Node represents a single node in the cluster and can include

@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/store"
"github.com/rqlite/rqlite/v8/store"
)
func Test_NewNodeFromServer(t *testing.T) {

@ -9,7 +9,7 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/rtls"
"github.com/rqlite/rqlite/v8/rtls"
)
// Test_IsServingHTTP_HTTPServerOnly tests only HTTP server running.

@ -7,7 +7,7 @@ import (
"strings"
"time"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/command"
)
// QueryParams represents the query parameters passed in an HTTP request.

@ -6,7 +6,7 @@ import (
"errors"
"fmt"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/command"
)
var (

@ -20,14 +20,14 @@ import (
"sync"
"time"
"github.com/rqlite/rqlite/auth"
"github.com/rqlite/rqlite/cluster"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/command/encoding"
"github.com/rqlite/rqlite/db"
"github.com/rqlite/rqlite/queue"
"github.com/rqlite/rqlite/rtls"
"github.com/rqlite/rqlite/store"
"github.com/rqlite/rqlite/v8/auth"
"github.com/rqlite/rqlite/v8/cluster"
"github.com/rqlite/rqlite/v8/command"
"github.com/rqlite/rqlite/v8/command/encoding"
"github.com/rqlite/rqlite/v8/db"
"github.com/rqlite/rqlite/v8/queue"
"github.com/rqlite/rqlite/v8/rtls"
"github.com/rqlite/rqlite/v8/store"
)
var (

@ -13,9 +13,9 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/cluster"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/store"
"github.com/rqlite/rqlite/v8/cluster"
"github.com/rqlite/rqlite/v8/command"
"github.com/rqlite/rqlite/v8/store"
)
func Test_ResponseJSONMarshal(t *testing.T) {

@ -12,7 +12,7 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/rtls"
"github.com/rqlite/rqlite/v8/rtls"
"golang.org/x/net/http2"
)

@ -6,7 +6,7 @@ import (
"sync"
"time"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/command"
)
// stats captures stats for the Queue.

@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/command"
)
var (

@ -6,7 +6,7 @@ import (
"path/filepath"
"github.com/hashicorp/raft"
"github.com/rqlite/rqlite/db"
"github.com/rqlite/rqlite/v8/db"
)
// Sink is a sink for writing snapshot data to a Snapshot store.

@ -9,8 +9,8 @@ import (
"testing"
"github.com/hashicorp/raft"
"github.com/rqlite/rqlite/command/encoding"
"github.com/rqlite/rqlite/db"
"github.com/rqlite/rqlite/v8/command/encoding"
"github.com/rqlite/rqlite/v8/db"
)
func Test_NewSinkCancel(t *testing.T) {

@ -7,7 +7,7 @@ import (
"time"
"github.com/hashicorp/raft"
"github.com/rqlite/rqlite/progress"
"github.com/rqlite/rqlite/v8/progress"
)
// Snapshot represents a snapshot of the database state.

@ -15,7 +15,7 @@ import (
"time"
"github.com/hashicorp/raft"
"github.com/rqlite/rqlite/db"
"github.com/rqlite/rqlite/v8/db"
)
const (

@ -11,7 +11,7 @@ import (
"sort"
"github.com/hashicorp/raft"
"github.com/rqlite/rqlite/db"
"github.com/rqlite/rqlite/v8/db"
)
const (

@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/command"
)
// Test_SingleNodeProvide tests that the Store correctly implements

@ -20,13 +20,13 @@ import (
"time"
"github.com/hashicorp/raft"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/command/chunking"
sql "github.com/rqlite/rqlite/db"
wal "github.com/rqlite/rqlite/db/wal"
rlog "github.com/rqlite/rqlite/log"
"github.com/rqlite/rqlite/progress"
"github.com/rqlite/rqlite/snapshot"
"github.com/rqlite/rqlite/v8/command"
"github.com/rqlite/rqlite/v8/command/chunking"
sql "github.com/rqlite/rqlite/v8/db"
wal "github.com/rqlite/rqlite/v8/db/wal"
rlog "github.com/rqlite/rqlite/v8/log"
"github.com/rqlite/rqlite/v8/progress"
"github.com/rqlite/rqlite/v8/snapshot"
)
var (

@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/v8/command"
)
func test_OpenStoreCloseStartup(t *testing.T, s *Store) {

@ -13,11 +13,11 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/command/encoding"
"github.com/rqlite/rqlite/db"
"github.com/rqlite/rqlite/random"
"github.com/rqlite/rqlite/testdata/chinook"
"github.com/rqlite/rqlite/v8/command"
"github.com/rqlite/rqlite/v8/command/encoding"
"github.com/rqlite/rqlite/v8/db"
"github.com/rqlite/rqlite/v8/random"
"github.com/rqlite/rqlite/v8/testdata/chinook"
)
// Test_StoreSingleNode tests that a single node basically operates.

@ -6,7 +6,7 @@ import (
"time"
"github.com/hashicorp/raft"
"github.com/rqlite/rqlite/store/gzip"
"github.com/rqlite/rqlite/v8/store/gzip"
)
// Listener is the interface expected by the Store for Transports.

@ -7,12 +7,12 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/cluster"
"github.com/rqlite/rqlite/db"
"github.com/rqlite/rqlite/http"
"github.com/rqlite/rqlite/queue"
"github.com/rqlite/rqlite/store"
"github.com/rqlite/rqlite/tcp"
"github.com/rqlite/rqlite/v8/cluster"
"github.com/rqlite/rqlite/v8/db"
"github.com/rqlite/rqlite/v8/http"
"github.com/rqlite/rqlite/v8/queue"
"github.com/rqlite/rqlite/v8/store"
"github.com/rqlite/rqlite/v8/tcp"
)
// Test_JoinLeaderNode tests a join operation between a leader and a new node.

@ -18,13 +18,13 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/cluster"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/command/encoding"
httpd "github.com/rqlite/rqlite/http"
"github.com/rqlite/rqlite/store"
"github.com/rqlite/rqlite/tcp"
rX509 "github.com/rqlite/rqlite/testdata/x509"
"github.com/rqlite/rqlite/v8/cluster"
"github.com/rqlite/rqlite/v8/command"
"github.com/rqlite/rqlite/v8/command/encoding"
httpd "github.com/rqlite/rqlite/v8/http"
"github.com/rqlite/rqlite/v8/store"
"github.com/rqlite/rqlite/v8/tcp"
rX509 "github.com/rqlite/rqlite/v8/testdata/x509"
)
const (

@ -6,10 +6,10 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/cluster"
"github.com/rqlite/rqlite/command"
"github.com/rqlite/rqlite/rtls"
"github.com/rqlite/rqlite/tcp"
"github.com/rqlite/rqlite/v8/cluster"
"github.com/rqlite/rqlite/v8/command"
"github.com/rqlite/rqlite/v8/rtls"
"github.com/rqlite/rqlite/v8/tcp"
)
const (

@ -12,10 +12,10 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/cluster"
httpd "github.com/rqlite/rqlite/http"
"github.com/rqlite/rqlite/store"
"github.com/rqlite/rqlite/tcp"
"github.com/rqlite/rqlite/v8/cluster"
httpd "github.com/rqlite/rqlite/v8/http"
"github.com/rqlite/rqlite/v8/store"
"github.com/rqlite/rqlite/v8/tcp"
)
func Test_SingleNodeBasicEndpoint(t *testing.T) {

@ -9,8 +9,8 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/rtls"
"github.com/rqlite/rqlite/testdata/x509"
"github.com/rqlite/rqlite/v8/rtls"
"github.com/rqlite/rqlite/v8/testdata/x509"
)
func Test_NewDialer(t *testing.T) {

@ -12,7 +12,7 @@ import (
"sync"
"time"
"github.com/rqlite/rqlite/rtls"
"github.com/rqlite/rqlite/v8/rtls"
)
const (

@ -13,7 +13,7 @@ import (
"testing/quick"
"time"
"github.com/rqlite/rqlite/testdata/x509"
"github.com/rqlite/rqlite/v8/testdata/x509"
)
// Ensure the muxer can split a listener's connections across multiple listeners.

@ -7,7 +7,7 @@ import (
"testing"
"time"
"github.com/rqlite/rqlite/random"
"github.com/rqlite/rqlite/v8/random"
)
var (

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save