Skip to content

Commit a9bfe80

Browse files
committed
Change module name to github.com/apache/cassandra-gocql-driver/v2
In preparation for the 2.0.0 release we need to change the module name to add the v2 suffix and we take this chance to update the module name according to the new repo location after the ASF donation. Patch by João Reis; reviewed by James Hartig for CASSGO-70 # Conflicts: # CHANGELOG.md
1 parent c7e5a24 commit a9bfe80

36 files changed

+65
-40
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ formatters:
1212
local-prefixes:
1313
- github.com/gocql/gocql
1414
- github.com/apache/cassandra-gocql-driver
15+
- github.com/apache/cassandra-gocql-driver/v2
1516
golines:
1617
max-len: 120
1718

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2929
### Changed
3030

3131
- Moved the Snappy compressor into its own separate package (CASSGO-33)
32-
3332
- Move lz4 compressor to lz4 package within the gocql module (CASSGO-32)
3433
- Don't restrict server authenticator unless PasswordAuthentictor.AllowedAuthenticators is provided (CASSGO-19)
3534
- Detailed description for NumConns (CASSGO-3)
@@ -51,6 +50,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5150
- Changes to Query and Batch to make them safely reusable (CASSGO-22)
5251
- Change logger interface so it supports structured logging and log levels (CASSGO-9)
5352
- Bump go version in go.mod to 1.19 (CASSGO-34)
53+
- Change module name to github.com/apache/cassandra-gocql-driver/v2 (CASSGO-70)
5454

5555
### Fixed
5656

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ Apache Cassandra GoCQL Driver
33

44
[!Join the chat at https://the-asf.slack.com/archives/C05LPRVNZV1](https://the-asf.slack.com/archives/C05LPRVNZV1)
55
![go build](https://github.com/apache/cassandra-gocql-driver/actions/workflows/main.yml/badge.svg)
6-
[![GoDoc](https://godoc.org/github.com/gocql/gocql?status.svg)](https://godoc.org/github.com/gocql/gocql)
6+
[![GoDoc](https://pkg.go.dev/github.com/apache/cassandra-gocql-driver/v2?status.svg)](https://pkg.go.dev/github.com/apache/cassandra-gocql-driver/v2)
77

88
Package gocql implements a fast and robust Cassandra client for the
99
Go programming language.
1010

1111
Project Website: https://cassandra.apache.org<br>
12-
API documentation: https://godoc.org/github.com/gocql/gocql<br>
12+
API documentation: https://pkg.go.dev/github.com/apache/cassandra-gocql-driver/v2<br>
1313
Discussions: https://cassandra.apache.org/_/community.html#discussions
1414

1515
Supported Versions
1616
------------------
1717

1818
The following matrix shows the versions of Go and Cassandra that are tested with the integration test suite as part of the CI build:
1919

20-
| Go/Cassandra | 4.0.x | 4.1.x |
20+
| Go/Cassandra | 4.1.x | 5.0.x |
2121
|--------------|-------|-------|
2222
| 1.22 | yes | yes |
2323
| 1.23 | yes | yes |
@@ -33,7 +33,7 @@ In general, the Cassandra community will focus on supporting the current and pre
3333
Installation
3434
------------
3535

36-
go get github.com/gocql/gocql
36+
go get github.com/apache/cassandra-gocql-driver/v2
3737

3838

3939
Features
@@ -115,7 +115,7 @@ statement.
115115
Example
116116
-------
117117

118-
See [package documentation](https://pkg.go.dev/github.com/gocql/gocql#pkg-examples).
118+
See [package documentation](https://pkg.go.dev/github.com/apache/cassandra-gocql-driver/v2#pkg-examples).
119119

120120
Data Binding
121121
------------

common_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ import (
3939
"testing"
4040
"time"
4141

42-
"github.com/gocql/gocql/lz4"
43-
"github.com/gocql/gocql/snappy"
42+
"github.com/apache/cassandra-gocql-driver/v2/lz4"
43+
"github.com/apache/cassandra-gocql-driver/v2/snappy"
4444
)
4545

4646
var (

conn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ import (
4040
"sync/atomic"
4141
"time"
4242

43-
"github.com/gocql/gocql/internal/lru"
44-
"github.com/gocql/gocql/internal/streams"
43+
"github.com/apache/cassandra-gocql-driver/v2/internal/lru"
44+
"github.com/apache/cassandra-gocql-driver/v2/internal/streams"
4545
)
4646

4747
// approve the authenticator with the list of allowed authenticators. If the provided list is empty,

conn_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import (
5050

5151
"github.com/stretchr/testify/require"
5252

53-
"github.com/gocql/gocql/internal/streams"
53+
"github.com/apache/cassandra-gocql-driver/v2/internal/streams"
5454
)
5555

5656
const (

control_ccm_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
"testing"
3434
"time"
3535

36-
"github.com/gocql/gocql/internal/ccm"
36+
"github.com/apache/cassandra-gocql-driver/v2/internal/ccm"
3737
)
3838

3939
type TestHostFilter struct {

doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,4 +387,4 @@
387387
// system_traces.events tables. NewTraceWriter returns an implementation of Tracer that writes the events to a writer.
388388
// Gathering trace information might be essential for debugging and optimizing queries, but writing traces has overhead,
389389
// so this feature should not be used on production systems with very high load unless you know what you are doing.
390-
package gocql // import "github.com/gocql/gocql"
390+
package gocql // import "github.com/apache/cassandra-gocql-driver/v2"

events_ccm_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
"testing"
3333
"time"
3434

35-
"github.com/gocql/gocql/internal/ccm"
35+
"github.com/apache/cassandra-gocql-driver/v2/internal/ccm"
3636
)
3737

3838
func TestEventDiscovery(t *testing.T) {

example_batch_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"fmt"
3030
"log"
3131

32-
"github.com/gocql/gocql"
32+
gocql "github.com/apache/cassandra-gocql-driver/v2"
3333
)
3434

3535
// Example_batch demonstrates how to execute a batch of statements.

0 commit comments

Comments
 (0)