Migrate package path

master
Trevor Slocum 2023-09-09 11:55:11 -07:00
parent 70a0b680c3
commit 317c2155fb
20 changed files with 37 additions and 37 deletions

View File

@ -30,7 +30,7 @@ Windows and Linux binaries are available.
### Compile
```bash
go get code.rocketnine.space/tslocum/netris/cmd/netris
go get code.rocket9labs.com/tslocum/netris/cmd/netris
```
## Configure

View File

@ -10,9 +10,9 @@ import (
"syscall"
"time"
"code.rocketnine.space/tslocum/netris/pkg/event"
"code.rocketnine.space/tslocum/netris/pkg/game"
"code.rocketnine.space/tslocum/netris/pkg/game/ssh"
"code.rocket9labs.com/tslocum/netris/pkg/event"
"code.rocket9labs.com/tslocum/netris/pkg/game"
"code.rocket9labs.com/tslocum/netris/pkg/game/ssh"
)
var (

View File

@ -3,7 +3,7 @@ package main
import (
"regexp"
"code.rocketnine.space/tslocum/netris/pkg/event"
"code.rocket9labs.com/tslocum/netris/pkg/event"
)
type appConfig struct {
@ -15,7 +15,7 @@ type appConfig struct {
var config = &appConfig{
Input: make(map[event.GameAction][]string),
Colors: make(map[event.GameColor]string),
Name: "Anonymous",
Name: "Anonymous",
}
var regexpColor = regexp.MustCompile(`^#([0-9a-f]{3}|[0-9a-f]{6})$`)

View File

@ -10,10 +10,10 @@ import (
"sync"
"time"
"code.rocket9labs.com/tslocum/netris/pkg/event"
"code.rocket9labs.com/tslocum/netris/pkg/game"
"code.rocket9labs.com/tslocum/netris/pkg/mino"
"code.rocketnine.space/tslocum/cview"
"code.rocketnine.space/tslocum/netris/pkg/event"
"code.rocketnine.space/tslocum/netris/pkg/game"
"code.rocketnine.space/tslocum/netris/pkg/mino"
)
var (

View File

@ -4,11 +4,11 @@ import (
"log"
"unicode"
"github.com/gdamore/tcell/v2"
"code.rocket9labs.com/tslocum/netris/pkg/event"
"code.rocket9labs.com/tslocum/netris/pkg/game"
"code.rocket9labs.com/tslocum/netris/pkg/mino"
"code.rocketnine.space/tslocum/cview"
"code.rocketnine.space/tslocum/netris/pkg/event"
"code.rocketnine.space/tslocum/netris/pkg/game"
"code.rocketnine.space/tslocum/netris/pkg/mino"
"github.com/gdamore/tcell/v2"
)
func initGUI(skipTitle bool) (*cview.Application, error) {

View File

@ -7,10 +7,10 @@ import (
"runtime/pprof"
"strings"
"github.com/gdamore/tcell/v2"
"code.rocket9labs.com/tslocum/netris/pkg/event"
"code.rocket9labs.com/tslocum/netris/pkg/game"
"code.rocketnine.space/tslocum/cbind"
"code.rocketnine.space/tslocum/netris/pkg/event"
"code.rocketnine.space/tslocum/netris/pkg/game"
"github.com/gdamore/tcell/v2"
)
type Keybinding struct {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"code.rocketnine.space/tslocum/netris/pkg/mino"
"code.rocket9labs.com/tslocum/netris/pkg/mino"
)
func TestRenderMatrix(t *testing.T) {

View File

@ -6,11 +6,11 @@ import (
"strconv"
"time"
"code.rocket9labs.com/tslocum/netris/pkg/event"
"code.rocket9labs.com/tslocum/netris/pkg/game"
"code.rocket9labs.com/tslocum/netris/pkg/mino"
"code.rocketnine.space/tslocum/cbind"
"code.rocketnine.space/tslocum/cview"
"code.rocketnine.space/tslocum/netris/pkg/event"
"code.rocketnine.space/tslocum/netris/pkg/game"
"code.rocketnine.space/tslocum/netris/pkg/mino"
"github.com/gdamore/tcell/v2"
)

View File

@ -1,7 +1,6 @@
package main
import (
"code.rocketnine.space/tslocum/ez"
"flag"
"fmt"
"io/ioutil"
@ -18,9 +17,10 @@ import (
"syscall"
"time"
"code.rocketnine.space/tslocum/netris/pkg/event"
"code.rocketnine.space/tslocum/netris/pkg/game"
"code.rocketnine.space/tslocum/netris/pkg/mino"
"code.rocket9labs.com/tslocum/netris/pkg/event"
"code.rocket9labs.com/tslocum/netris/pkg/game"
"code.rocket9labs.com/tslocum/netris/pkg/mino"
"code.rocketnine.space/tslocum/ez"
"github.com/mattn/go-isatty"
)

2
go.mod
View File

@ -1,4 +1,4 @@
module code.rocketnine.space/tslocum/netris
module code.rocket9labs.com/tslocum/netris
go 1.13

View File

@ -8,7 +8,7 @@ builds:
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X code.rocketnine.space/tslocum/netris/pkg/game.Version={{.Version}}
- -s -w -X code.rocket9labs.com/tslocum/netris/pkg/game.Version={{.Version}}
goos:
- darwin
- freebsd
@ -23,7 +23,7 @@ builds:
binary: netris-server
main: ./cmd/netris-server
ldflags:
- -s -w -X code.rocketnine.space/tslocum/netris/pkg/game.Version={{.Version}}
- -s -w -X code.rocket9labs.com/tslocum/netris/pkg/game.Version={{.Version}}
goos:
- darwin
- freebsd

View File

@ -4,7 +4,7 @@ import (
"strconv"
"time"
"code.rocketnine.space/tslocum/netris/pkg/mino"
"code.rocket9labs.com/tslocum/netris/pkg/mino"
)
type Command int

View File

@ -9,7 +9,7 @@ import (
"sync"
"time"
"code.rocketnine.space/tslocum/netris/pkg/event"
"code.rocket9labs.com/tslocum/netris/pkg/event"
)
const ConnTimeout = 30 * time.Second

View File

@ -10,8 +10,8 @@ import (
"sync"
"time"
"code.rocketnine.space/tslocum/netris/pkg/event"
"code.rocketnine.space/tslocum/netris/pkg/mino"
"code.rocket9labs.com/tslocum/netris/pkg/event"
"code.rocket9labs.com/tslocum/netris/pkg/mino"
)
const (

View File

@ -4,7 +4,7 @@ import (
"regexp"
"time"
"code.rocketnine.space/tslocum/netris/pkg/mino"
"code.rocket9labs.com/tslocum/netris/pkg/mino"
)
const (

View File

@ -10,7 +10,7 @@ import (
"sync"
"time"
"code.rocketnine.space/tslocum/netris/pkg/event"
"code.rocket9labs.com/tslocum/netris/pkg/event"
)
const (

View File

@ -18,7 +18,7 @@ import (
"github.com/creack/pty"
"github.com/gliderlabs/ssh"
"code.rocketnine.space/tslocum/netris/pkg/game"
"code.rocket9labs.com/tslocum/netris/pkg/game"
gossh "golang.org/x/crypto/ssh"
)

View File

@ -2,7 +2,7 @@
package ssh
import "code.rocketnine.space/tslocum/netris/pkg/game"
import "code.rocket9labs.com/tslocum/netris/pkg/game"
// SSH server is unsupported on Windows

View File

@ -1,6 +1,6 @@
package mino
import "code.rocketnine.space/tslocum/netris/pkg/event"
import "code.rocket9labs.com/tslocum/netris/pkg/event"
// Dark color ghosts are 60% original overlaid #777777
// Light color ghosts are 40% original overlaid #888888

View File

@ -9,7 +9,7 @@ import (
"sync"
"time"
"code.rocketnine.space/tslocum/netris/pkg/event"
"code.rocket9labs.com/tslocum/netris/pkg/event"
)
const (