Fix mod path
This commit is contained in:
parent
de5056ceb2
commit
b062257995
|
@ -3,8 +3,8 @@ package adb
|
||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -3,7 +3,7 @@ package adb
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MtimeOfClose should be passed to OpenWrite to set the file modification time to the time the Close
|
// MtimeOfClose should be passed to OpenWrite to set the file modification time to the time the Close
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DeviceInfo struct {
|
type DeviceInfo struct {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package adb
|
package adb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeviceState represents one of the 3 possible states adb will report devices.
|
// DeviceState represents one of the 3 possible states adb will report devices.
|
||||||
|
|
|
@ -3,8 +3,8 @@ package adb
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -3,8 +3,8 @@ package adb
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"net"
|
"net"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Dialer knows how to create connections to an adb server.
|
// Dialer knows how to create connections to an adb server.
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DirEntry holds information about a directory entry on a device.
|
// DirEntry holds information about a directory entry on a device.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package adb
|
package adb
|
||||||
|
|
||||||
import "github.com/evrins/goadb/internal/errors"
|
import "github.com/timoxa0/goadb/internal/errors"
|
||||||
|
|
||||||
type ErrCode errors.ErrCode
|
type ErrCode errors.ErrCode
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MockServer implements Server, Scanner, and Sender.
|
// MockServer implements Server, Scanner, and Sender.
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
var zeroTime = time.Unix(0, 0).UTC()
|
var zeroTime = time.Unix(0, 0).UTC()
|
||||||
|
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
|
@ -3,8 +3,8 @@ package adb
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
// syncFileReader wraps a SyncConn that has requested to receive a file.
|
// syncFileReader wraps a SyncConn that has requested to receive a file.
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
// syncFileWriter wraps a SyncConn that has requested to send a file.
|
// syncFileWriter wraps a SyncConn that has requested to send a file.
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -2,7 +2,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/evrins/goadb/adb"
|
"github.com/timoxa0/goadb/adb"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
|
@ -4,12 +4,12 @@ package main
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/evrins/goadb/adb"
|
"github.com/timoxa0/goadb/adb"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -5,13 +5,13 @@ import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/evrins/goadb/adb"
|
"github.com/timoxa0/goadb/adb"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/evrins/goadb/wire"
|
"github.com/timoxa0/goadb/wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
var port = flag.Int("p", adb.AdbPort, "`port` the adb server is listening on")
|
var port = flag.Int("p", adb.AdbPort, "`port` the adb server is listening on")
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module github.com/evrins/goadb
|
module github.com/timoxa0/goadb
|
||||||
|
|
||||||
go 1.14
|
go 1.14
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package wire
|
package wire
|
||||||
|
|
||||||
import "github.com/evrins/goadb/internal/errors"
|
import "github.com/timoxa0/goadb/internal/errors"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// The official implementation of adb imposes an undocumented 255-byte limit
|
// The official implementation of adb imposes an undocumented 255-byte limit
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO(zach): All EOF errors returned from networoking calls should use ConnectionResetError.
|
// TODO(zach): All EOF errors returned from networoking calls should use ConnectionResetError.
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Sender sends messages to the server.
|
// Sender sends messages to the server.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package wire
|
package wire
|
||||||
|
|
||||||
import "github.com/evrins/goadb/internal/errors"
|
import "github.com/timoxa0/goadb/internal/errors"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// Chunks cannot be longer than 64k.
|
// Chunks cannot be longer than 64k.
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SyncScanner interface {
|
type SyncScanner interface {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SyncSender interface {
|
type SyncSender interface {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ErrorResponseDetails is an error message returned by the server for a particular request.
|
// ErrorResponseDetails is an error message returned by the server for a particular request.
|
||||||
|
|
|
@ -3,7 +3,7 @@ package wire
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/evrins/goadb/internal/errors"
|
"github.com/timoxa0/goadb/internal/errors"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue