Skip to content

Commit

Permalink
bufbuild->joshcarp
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcarp committed Jan 6, 2023
1 parent 619c370 commit c95ee47
Show file tree
Hide file tree
Showing 29 changed files with 62 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ self-contained test that shows us the bug:
```bash
mkdir tmp && cd ./tmp
go mod init example
go get github.com/bufbuild/connect-go
go get github.com/joshcarp/connect-go
touch example_test.go
```

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ $(BIN)/protoc-gen-connect-go:

$(BIN)/buf: Makefile
@mkdir -p $(@D)
GOBIN=$(abspath $(@D)) $(GO) install github.com/bufbuild/buf/cmd/[email protected]
GOBIN=$(abspath $(@D)) $(GO) install github.com/joshcarp/buf/cmd/[email protected]

$(BIN)/license-header: Makefile
@mkdir -p $(@D)
GOBIN=$(abspath $(@D)) $(GO) install \
github.com/bufbuild/buf/private/pkg/licenseheader/cmd/[email protected]
github.com/joshcarp/buf/private/pkg/licenseheader/cmd/[email protected]

$(BIN)/golangci-lint: Makefile
@mkdir -p $(@D)
Expand Down
8 changes: 4 additions & 4 deletions bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ import (
"compress/gzip"
"context"
"encoding/json"
"github.com/bufbuild/connect-go/ping/v1"
"github.com/bufbuild/connect-go/ping/v1/pingv1connect"
"github.com/joshcarp/connect-go/ping/v1"
"github.com/joshcarp/connect-go/ping/v1/pingv1connect"
"io"
"net/http"
"net/http/httptest"
"strings"
"testing"

"github.com/bufbuild/connect-go"
"github.com/bufbuild/connect-go/internal/assert"
"github.com/joshcarp/connect-go"
"github.com/joshcarp/connect-go/internal/assert"
)

func BenchmarkConnect(b *testing.B) {
Expand Down
2 changes: 1 addition & 1 deletion buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: v1
managed:
enabled: true
go_package_prefix:
default: github.com/bufbuild/connect-go/internal/gen
default: github.com/joshcarp/connect-go/internal/gen
plugins:
- name: go
out: internal/gen
Expand Down
6 changes: 3 additions & 3 deletions client_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ package connect_test

import (
"context"
"github.com/bufbuild/connect-go/ping/v1"
"github.com/bufbuild/connect-go/ping/v1/pingv1connect"
"github.com/joshcarp/connect-go/ping/v1"
"github.com/joshcarp/connect-go/ping/v1/pingv1connect"
"log"
"net/http"
"os"

"github.com/bufbuild/connect-go"
"github.com/joshcarp/connect-go"
)

func Example_client() {
Expand Down
8 changes: 4 additions & 4 deletions client_ext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ package connect_test
import (
"context"
"errors"
"github.com/bufbuild/connect-go/ping/v1"
"github.com/bufbuild/connect-go/ping/v1/pingv1connect"
"github.com/joshcarp/connect-go/ping/v1"
"github.com/joshcarp/connect-go/ping/v1/pingv1connect"
"net/http"
"net/http/httptest"
"testing"

"github.com/bufbuild/connect-go"
"github.com/bufbuild/connect-go/internal/assert"
"github.com/joshcarp/connect-go"
"github.com/joshcarp/connect-go/internal/assert"
)

func TestNewClient_InitFailure(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions client_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ package connect
import (
"errors"
"fmt"
"github.com/bufbuild/connect-go/ping/v1"
"github.com/joshcarp/connect-go/ping/v1"
"net/http"
"testing"

"github.com/bufbuild/connect-go/internal/assert"
"github.com/joshcarp/connect-go/internal/assert"
)

func TestClientStreamForClient_NoPanics(t *testing.T) {
Expand Down Expand Up @@ -58,7 +58,7 @@ func TestServerStreamForClient(t *testing.T) {
stream := &ServerStreamForClient[pingv1_test.PingResponse]{conn: &nopStreamingClientConn{}}
// Ensure that each call to Receive allocates a new message. This helps
// vtprotobuf, which doesn't automatically zero messages before unmarshaling
// (see https://github.com/bufbuild/connect-go/issues/345), and it's also
// (see https://github.com/joshcarp/connect-go/issues/345), and it's also
// less error-prone for users.
assert.True(t, stream.Receive())
first := fmt.Sprintf("%p", stream.Msg())
Expand Down
4 changes: 2 additions & 2 deletions cmd/protoc-gen-connect-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import (
"strings"
"unicode/utf8"

"github.com/bufbuild/connect-go"
"github.com/joshcarp/connect-go"
"google.golang.org/protobuf/compiler/protogen"
"google.golang.org/protobuf/types/descriptorpb"
"google.golang.org/protobuf/types/pluginpb"
Expand All @@ -60,7 +60,7 @@ const (
errorsPackage = protogen.GoImportPath("errors")
httpPackage = protogen.GoImportPath("net/http")
stringsPackage = protogen.GoImportPath("strings")
connectPackage = protogen.GoImportPath("github.com/bufbuild/connect-go")
connectPackage = protogen.GoImportPath("github.com/joshcarp/connect-go")

generatedFilenameExtension = ".connect.go"
generatedPackageSuffix = "connect"
Expand Down
2 changes: 1 addition & 1 deletion code_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"strings"
"testing"

"github.com/bufbuild/connect-go/internal/assert"
"github.com/joshcarp/connect-go/internal/assert"
)

func TestCode(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion compression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"net/http/httptest"
"testing"

"github.com/bufbuild/connect-go/internal/assert"
"github.com/joshcarp/connect-go/internal/assert"
"google.golang.org/protobuf/types/known/emptypb"
)

Expand Down
10 changes: 5 additions & 5 deletions connect_ext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"encoding/binary"
"errors"
"fmt"
"github.com/bufbuild/connect-go/ping/v1/pingv1connect"
"github.com/joshcarp/connect-go/ping/v1/pingv1connect"
"io"
"math"
"math/rand"
Expand All @@ -33,9 +33,9 @@ import (
"testing"
"time"

"github.com/bufbuild/connect-go"
"github.com/bufbuild/connect-go/internal/assert"
"github.com/bufbuild/connect-go/internal/gen/connect/import/v1/importv1connect"
"github.com/joshcarp/connect-go"
"github.com/joshcarp/connect-go/internal/assert"
"github.com/joshcarp/connect-go/internal/gen/connect/import/v1/importv1connect"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protoregistry"
)
Expand Down Expand Up @@ -855,7 +855,7 @@ func TestCustomCompression(t *testing.T) {
}

func TestClientWithoutGzipSupport(t *testing.T) {
// See https://github.com/bufbuild/connect-go/pull/349 for why we want to
// See https://github.com/joshcarp/connect-go/pull/349 for why we want to
// support this. TL;DR is that Microsoft's dapr sidecar can't handle
// asymmetric compression.
t.Parallel()
Expand Down
2 changes: 1 addition & 1 deletion error_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"errors"
"fmt"

"github.com/bufbuild/connect-go"
"github.com/joshcarp/connect-go"
)

func ExampleError_Message() {
Expand Down
2 changes: 1 addition & 1 deletion error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"testing"
"time"

"github.com/bufbuild/connect-go/internal/assert"
"github.com/joshcarp/connect-go/internal/assert"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/durationpb"
"google.golang.org/protobuf/types/known/emptypb"
Expand Down
2 changes: 1 addition & 1 deletion error_writer_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"log"
"net/http"

"github.com/bufbuild/connect-go"
"github.com/joshcarp/connect-go"
)

// NewHelloHandler is an example HTTP handler. In a real application, it might
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/bufbuild/connect-go
module github.com/joshcarp/connect-go

go 1.18
go 1.19

require (
github.com/google/go-cmp v0.5.9
Expand Down
8 changes: 2 additions & 6 deletions handler_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ package connect_test

import (
"context"
"github.com/bufbuild/connect-go/ping/v1"
"github.com/bufbuild/connect-go/ping/v1/pingv1connect"
"net/http"

"github.com/bufbuild/connect-go"
)

// ExamplePingServer implements some trivial business logic. The Protobuf
Expand Down Expand Up @@ -54,8 +50,8 @@ func Example_handler() {
),
)
// You can serve gRPC's health and server reflection APIs using
// github.com/bufbuild/connect-grpchealth-go and
// github.com/bufbuild/connect-grpcreflect-go.
// github.com/joshcarp/connect-grpchealth-go and
// github.com/joshcarp/connect-grpcreflect-go.
_ = http.ListenAndServeTLS(
"localhost:8080",
"internal/testdata/server.crt",
Expand Down
8 changes: 4 additions & 4 deletions handler_ext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ package connect_test
import (
"context"
"encoding/json"
"github.com/bufbuild/connect-go/ping/v1"
"github.com/bufbuild/connect-go/ping/v1/pingv1connect"
"github.com/joshcarp/connect-go/ping/v1"
"github.com/joshcarp/connect-go/ping/v1/pingv1connect"
"net/http"
"net/http/httptest"
"strings"
"testing"

"github.com/bufbuild/connect-go"
"github.com/bufbuild/connect-go/internal/assert"
"github.com/joshcarp/connect-go"
"github.com/joshcarp/connect-go/internal/assert"
)

func TestHandler_ServeHTTP(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions handler_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ package connect

import (
"fmt"
"github.com/bufbuild/connect-go/ping/v1"
"github.com/joshcarp/connect-go/ping/v1"
"testing"

"github.com/bufbuild/connect-go/internal/assert"
"github.com/joshcarp/connect-go/internal/assert"
)

func TestClientStream(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion header_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"testing"
"testing/quick"

"github.com/bufbuild/connect-go/internal/assert"
"github.com/joshcarp/connect-go/internal/assert"
)

func TestBinaryEncodingQuick(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions interceptor_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ package connect_test

import (
"context"
"github.com/bufbuild/connect-go/ping/v1"
"github.com/bufbuild/connect-go/ping/v1/pingv1connect"
"github.com/joshcarp/connect-go/ping/v1"
"github.com/joshcarp/connect-go/ping/v1/pingv1connect"
"log"
"os"

"github.com/bufbuild/connect-go"
"github.com/joshcarp/connect-go"
)

func ExampleUnaryInterceptorFunc() {
Expand Down
8 changes: 4 additions & 4 deletions interceptor_ext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ package connect_test

import (
"context"
"github.com/bufbuild/connect-go/ping/v1"
"github.com/bufbuild/connect-go/ping/v1/pingv1connect"
"github.com/joshcarp/connect-go/ping/v1"
"github.com/joshcarp/connect-go/ping/v1/pingv1connect"
"net/http"
"net/http/httptest"
"testing"

"github.com/bufbuild/connect-go"
"github.com/bufbuild/connect-go/internal/assert"
"github.com/joshcarp/connect-go"
"github.com/joshcarp/connect-go/internal/assert"
)

func TestOnionOrderingEndToEnd(t *testing.T) {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ping/v1/pingv1connect/ping.connect.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion protobuf_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package connect
import (
"testing"

"github.com/bufbuild/connect-go/internal/assert"
"github.com/joshcarp/connect-go/internal/assert"
)

func TestParseProtobufURL(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion protocol_connect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"testing"
"time"

"github.com/bufbuild/connect-go/internal/assert"
"github.com/joshcarp/connect-go/internal/assert"
"google.golang.org/protobuf/types/known/durationpb"
)

Expand Down
2 changes: 1 addition & 1 deletion protocol_grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"time"
"unicode/utf8"

statusv1 "github.com/bufbuild/connect-go/internal/gen/connectext/grpc/status/v1"
statusv1 "github.com/joshcarp/connect-go/internal/gen/connectext/grpc/status/v1"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion protocol_grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
"time"
"unicode/utf8"

"github.com/bufbuild/connect-go/internal/assert"
"github.com/google/go-cmp/cmp"
"github.com/joshcarp/connect-go/internal/assert"
)

func TestGRPCHandlerSender(t *testing.T) {
Expand Down
Loading

0 comments on commit c95ee47

Please sign in to comment.