Change import to github.com

Changes the import from `gitlab.com` to `github.com`.

Without this Go gets confused.

```
main.go:13:2: cannot find package "gitlab.com/liamg/raft/config" in any of:
	/home/moscar/projects/go/src/github.com/liamg/raft/vendor/gitlab.com/liamg/raft/config (vendor tree)
	/usr/lib/go/src/gitlab.com/liamg/raft/config (from $GOROOT)
	/home/moscar/projects/go/src/gitlab.com/liamg/raft/config (from $GOPATH)
main.go:14:2: cannot find package "gitlab.com/liamg/raft/gui" in any of:
	/home/moscar/projects/go/src/github.com/liamg/raft/vendor/gitlab.com/liamg/raft/gui (vendor tree)
	/usr/lib/go/src/gitlab.com/liamg/raft/gui (from $GOROOT)
	/home/moscar/projects/go/src/gitlab.com/liamg/raft/gui (from $GOPATH)
main.go:15:2: cannot find package "gitlab.com/liamg/raft/terminal" in any of:
	/home/moscar/projects/go/src/github.com/liamg/raft/vendor/gitlab.com/liamg/raft/terminal (vendor tree)
	/usr/lib/go/src/gitlab.com/liamg/raft/terminal (from $GOROOT)
	/home/moscar/projects/go/src/gitlab.com/liamg/raft/terminal (from $GOPATH)
```

Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
This commit is contained in:
Mikkel Oscar Lyderik Larsen 2018-10-20 18:48:03 +02:00
parent e46d9cc53f
commit 58d9b4a435
No known key found for this signature in database
GPG Key ID: 50AD98B2A0D8D4EF
6 changed files with 14 additions and 14 deletions

View File

@ -5,13 +5,13 @@ import (
"runtime" "runtime"
"time" "time"
"gitlab.com/liamg/raft/glfont" "github.com/liamg/raft/glfont"
"github.com/go-gl/gl/all-core/gl" "github.com/go-gl/gl/all-core/gl"
"github.com/go-gl/glfw/v3.2/glfw" "github.com/go-gl/glfw/v3.2/glfw"
"gitlab.com/liamg/raft/buffer" "github.com/liamg/raft/buffer"
"gitlab.com/liamg/raft/config" "github.com/liamg/raft/config"
"gitlab.com/liamg/raft/terminal" "github.com/liamg/raft/terminal"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -5,7 +5,7 @@ import (
"math" "math"
"github.com/go-gl/glfw/v3.2/glfw" "github.com/go-gl/glfw/v3.2/glfw"
"gitlab.com/liamg/raft/terminal" "github.com/liamg/raft/terminal"
) )
func (gui *GUI) mouseButtonCallback(w *glfw.Window, button glfw.MouseButton, action glfw.Action, mod glfw.ModifierKey) { func (gui *GUI) mouseButtonCallback(w *glfw.Window, button glfw.MouseButton, action glfw.Action, mod glfw.ModifierKey) {

View File

@ -4,9 +4,9 @@ import (
"math" "math"
"github.com/go-gl/gl/all-core/gl" "github.com/go-gl/gl/all-core/gl"
"gitlab.com/liamg/raft/buffer" "github.com/liamg/raft/buffer"
"gitlab.com/liamg/raft/config" "github.com/liamg/raft/config"
"gitlab.com/liamg/raft/glfont" "github.com/liamg/raft/glfont"
) )
type OpenGLRenderer struct { type OpenGLRenderer struct {

View File

@ -10,9 +10,9 @@ import (
"github.com/kr/pty" "github.com/kr/pty"
"github.com/riywo/loginshell" "github.com/riywo/loginshell"
"gitlab.com/liamg/raft/config" "github.com/liamg/raft/config"
"gitlab.com/liamg/raft/gui" "github.com/liamg/raft/gui"
"gitlab.com/liamg/raft/terminal" "github.com/liamg/raft/terminal"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -3,7 +3,7 @@ package terminal
import ( import (
"fmt" "fmt"
"gitlab.com/liamg/raft/buffer" "github.com/liamg/raft/buffer"
) )
func sgrSequenceHandler(params []string, intermediate string, terminal *Terminal) error { func sgrSequenceHandler(params []string, intermediate string, terminal *Terminal) error {

View File

@ -10,8 +10,8 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
"gitlab.com/liamg/raft/buffer" "github.com/liamg/raft/buffer"
"gitlab.com/liamg/raft/config" "github.com/liamg/raft/config"
"go.uber.org/zap" "go.uber.org/zap"
) )