Skip to content

Commit

Permalink
chore(RDGRS-662): Remove reference update and add replace (#23)
Browse files Browse the repository at this point in the history
* chore(RDGRS-662): remove reference updates and add replace

* adding replace
  • Loading branch information
OS-kiranmalsetty authored Aug 16, 2024
1 parent 699d811 commit ff5be03
Show file tree
Hide file tree
Showing 25 changed files with 67 additions and 65 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ BUILD=$(shell git rev-parse HEAD)
DIRBASE=./build
DIR=${DIRBASE}/${VERSION}/${BUILD}/bin

LDFLAGS=-ldflags "-s -w ${XBUILD} -buildid=${BUILD} -X github.com/OutSystems/chisel/share.BuildVersion=${VERSION}"
LDFLAGS=-ldflags "-s -w ${XBUILD} -buildid=${BUILD} -X github.com/jpillora/chisel/share.BuildVersion=${VERSION}"

GOFILES=`go list ./...`
GOFILESNOTEST=`go list ./... | grep -v test`
Expand Down
12 changes: 6 additions & 6 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import (
"time"

"github.com/gorilla/websocket"
chshare "github.com/OutSystems/chisel/share"
"github.com/OutSystems/chisel/share/ccrypto"
"github.com/OutSystems/chisel/share/cio"
"github.com/OutSystems/chisel/share/cnet"
"github.com/OutSystems/chisel/share/settings"
"github.com/OutSystems/chisel/share/tunnel"
chshare "github.com/jpillora/chisel/share"
"github.com/jpillora/chisel/share/ccrypto"
"github.com/jpillora/chisel/share/cio"
"github.com/jpillora/chisel/share/cnet"
"github.com/jpillora/chisel/share/settings"
"github.com/jpillora/chisel/share/tunnel"

"golang.org/x/crypto/ssh"
"golang.org/x/net/proxy"
Expand Down
8 changes: 4 additions & 4 deletions client/client_connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (

"github.com/gorilla/websocket"
"github.com/jpillora/backoff"
chshare "github.com/OutSystems/chisel/share"
"github.com/OutSystems/chisel/share/cnet"
"github.com/OutSystems/chisel/share/cos"
"github.com/OutSystems/chisel/share/settings"
chshare "github.com/jpillora/chisel/share"
"github.com/jpillora/chisel/share/cnet"
"github.com/jpillora/chisel/share/cos"
"github.com/jpillora/chisel/share/settings"
"golang.org/x/crypto/ssh"
)

Expand Down
2 changes: 1 addition & 1 deletion client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/OutSystems/chisel/share/ccrypto"
"github.com/jpillora/chisel/share/ccrypto"
"golang.org/x/crypto/ssh"
)

Expand Down
2 changes: 1 addition & 1 deletion example/reverse-tunneling-authenticated.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ version: '3'

services:
chisel:
image: OutSystems/chisel
image: jpillora/chisel
restart: unless-stopped
container_name: chisel
# ⬇️ Pass CLI arguments one at a time in an array, as required by Docker compose.
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/OutSystems/chisel
module github.com/jpillora/chisel

go 1.21

Expand All @@ -21,3 +21,5 @@ require (
golang.org/x/sys v0.12.0 // indirect
golang.org/x/text v0.13.0 // indirect
)

replace github.com/jpillora/chisel => ../chisel
16 changes: 8 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import (
"strings"
"time"

chclient "github.com/OutSystems/chisel/client"
chserver "github.com/OutSystems/chisel/server"
chshare "github.com/OutSystems/chisel/share"
"github.com/OutSystems/chisel/share/ccrypto"
"github.com/OutSystems/chisel/share/cos"
"github.com/OutSystems/chisel/share/settings"
chclient "github.com/jpillora/chisel/client"
chserver "github.com/jpillora/chisel/server"
chshare "github.com/jpillora/chisel/share"
"github.com/jpillora/chisel/share/ccrypto"
"github.com/jpillora/chisel/share/cos"
"github.com/jpillora/chisel/share/settings"
)

var help = `
Expand All @@ -30,7 +30,7 @@ var help = `
client - runs chisel in client mode
Read more:
https://github.com/OustSystems/chisel
https://github.com/jpillora/chisel
`

Expand Down Expand Up @@ -83,7 +83,7 @@ var commonHelp = `
` + chshare.BuildVersion + ` (` + runtime.Version() + `)
Read more:
https://github.com/OutSystems/chisel
https://github.com/jpillora/chisel
`

Expand Down
10 changes: 5 additions & 5 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
"time"

"github.com/gorilla/websocket"
chshare "github.com/OutSystems/chisel/share"
"github.com/OutSystems/chisel/share/ccrypto"
"github.com/OutSystems/chisel/share/cio"
"github.com/OutSystems/chisel/share/cnet"
"github.com/OutSystems/chisel/share/settings"
chshare "github.com/jpillora/chisel/share"
"github.com/jpillora/chisel/share/ccrypto"
"github.com/jpillora/chisel/share/cio"
"github.com/jpillora/chisel/share/cnet"
"github.com/jpillora/chisel/share/settings"
"github.com/jpillora/requestlog"
"golang.org/x/crypto/ssh"
)
Expand Down
8 changes: 4 additions & 4 deletions server/server_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"sync/atomic"
"time"

chshare "github.com/OutSystems/chisel/share"
"github.com/OutSystems/chisel/share/cnet"
"github.com/OutSystems/chisel/share/settings"
"github.com/OutSystems/chisel/share/tunnel"
chshare "github.com/jpillora/chisel/share"
"github.com/jpillora/chisel/share/cnet"
"github.com/jpillora/chisel/share/settings"
"github.com/jpillora/chisel/share/tunnel"
"golang.org/x/crypto/ssh"
"golang.org/x/sync/errgroup"
)
Expand Down
2 changes: 1 addition & 1 deletion server/server_listen.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"os/user"
"path/filepath"

"github.com/OutSystems/chisel/share/settings"
"github.com/jpillora/chisel/share/settings"
"golang.org/x/crypto/acme/autocert"
)

Expand Down
2 changes: 1 addition & 1 deletion share/cnet/meter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync/atomic"
"time"

"github.com/OutSystems/chisel/share/cio"
"github.com/jpillora/chisel/share/cio"
"github.com/jpillora/sizestr"
)

Expand Down
12 changes: 6 additions & 6 deletions share/compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package chshare
//this file exists to maintain backwards compatibility

import (
"github.com/OutSystems/chisel/share/ccrypto"
"github.com/OutSystems/chisel/share/cio"
"github.com/OutSystems/chisel/share/cnet"
"github.com/OutSystems/chisel/share/cos"
"github.com/OutSystems/chisel/share/settings"
"github.com/OutSystems/chisel/share/tunnel"
"github.com/jpillora/chisel/share/ccrypto"
"github.com/jpillora/chisel/share/cio"
"github.com/jpillora/chisel/share/cnet"
"github.com/jpillora/chisel/share/cos"
"github.com/jpillora/chisel/share/settings"
"github.com/jpillora/chisel/share/tunnel"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion share/settings/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"sync"

"github.com/fsnotify/fsnotify"
"github.com/OutSystems/chisel/share/cio"
"github.com/jpillora/chisel/share/cio"
)

type Users struct {
Expand Down
6 changes: 3 additions & 3 deletions share/tunnel/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"time"

"github.com/armon/go-socks5"
"github.com/OutSystems/chisel/share/cio"
"github.com/OutSystems/chisel/share/cnet"
"github.com/OutSystems/chisel/share/settings"
"github.com/jpillora/chisel/share/cio"
"github.com/jpillora/chisel/share/cnet"
"github.com/jpillora/chisel/share/settings"
"golang.org/x/crypto/ssh"
"golang.org/x/sync/errgroup"
)
Expand Down
4 changes: 2 additions & 2 deletions share/tunnel/tunnel_in_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"net"
"sync"

"github.com/OutSystems/chisel/share/cio"
"github.com/OutSystems/chisel/share/settings"
"github.com/jpillora/chisel/share/cio"
"github.com/jpillora/chisel/share/settings"
"github.com/jpillora/sizestr"
"golang.org/x/crypto/ssh"
)
Expand Down
4 changes: 2 additions & 2 deletions share/tunnel/tunnel_in_proxy_udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"sync/atomic"
"time"

"github.com/OutSystems/chisel/share/cio"
"github.com/OutSystems/chisel/share/settings"
"github.com/jpillora/chisel/share/cio"
"github.com/jpillora/chisel/share/settings"
"github.com/jpillora/sizestr"
"golang.org/x/crypto/ssh"
"golang.org/x/sync/errgroup"
Expand Down
6 changes: 3 additions & 3 deletions share/tunnel/tunnel_out_ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"net"
"strings"

"github.com/OutSystems/chisel/share/cio"
"github.com/OutSystems/chisel/share/cnet"
"github.com/OutSystems/chisel/share/settings"
"github.com/jpillora/chisel/share/cio"
"github.com/jpillora/chisel/share/cnet"
"github.com/jpillora/chisel/share/settings"
"github.com/jpillora/sizestr"
"golang.org/x/crypto/ssh"
)
Expand Down
4 changes: 2 additions & 2 deletions share/tunnel/tunnel_out_ssh_udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"sync"
"time"

"github.com/OutSystems/chisel/share/cio"
"github.com/OutSystems/chisel/share/settings"
"github.com/jpillora/chisel/share/cio"
"github.com/jpillora/chisel/share/settings"
)

func (t *Tunnel) handleUDP(l *cio.Logger, rwc io.ReadWriteCloser, hostPort string) error {
Expand Down
2 changes: 1 addition & 1 deletion test/bench/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"path"
"strconv"

"github.com/OutSystems/chisel/share/cnet"
"github.com/jpillora/chisel/share/cnet"

"time"
)
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package e2e_test
import (
"testing"

chclient "github.com/OutSystems/chisel/client"
chserver "github.com/OutSystems/chisel/server"
chclient "github.com/jpillora/chisel/client"
chserver "github.com/jpillora/chisel/server"
)

//TODO tests for:
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package e2e_test
import (
"testing"

chclient "github.com/OutSystems/chisel/client"
chserver "github.com/OutSystems/chisel/server"
chclient "github.com/jpillora/chisel/client"
chserver "github.com/jpillora/chisel/server"
)

func TestBase(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/cert_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"path"
"time"

chclient "github.com/OutSystems/chisel/client"
chserver "github.com/OutSystems/chisel/server"
chclient "github.com/jpillora/chisel/client"
chserver "github.com/jpillora/chisel/server"
)

type tlsConfig struct {
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"testing"
"time"

chclient "github.com/OutSystems/chisel/client"
chserver "github.com/OutSystems/chisel/server"
chclient "github.com/jpillora/chisel/client"
chserver "github.com/jpillora/chisel/server"
)

const debug = true
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/tls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"path"
"testing"

chclient "github.com/OutSystems/chisel/client"
chserver "github.com/OutSystems/chisel/server"
chclient "github.com/jpillora/chisel/client"
chserver "github.com/jpillora/chisel/server"
)

func TestTLS(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/udp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

chclient "github.com/OutSystems/chisel/client"
chserver "github.com/OutSystems/chisel/server"
chclient "github.com/jpillora/chisel/client"
chserver "github.com/jpillora/chisel/server"
"golang.org/x/sync/errgroup"
)

Expand Down

0 comments on commit ff5be03

Please sign in to comment.