From 58d9b4a435377c8c92a34d926621efe6e781c1ef Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Larsen Date: Sat, 20 Oct 2018 18:48:03 +0200 Subject: [PATCH] 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 --- gui/gui.go | 8 ++++---- gui/mouse.go | 2 +- gui/renderer.go | 6 +++--- main.go | 6 +++--- terminal/sgr.go | 2 +- terminal/terminal.go | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/gui/gui.go b/gui/gui.go index e56ae99..c8eaef5 100644 --- a/gui/gui.go +++ b/gui/gui.go @@ -5,13 +5,13 @@ import ( "runtime" "time" - "gitlab.com/liamg/raft/glfont" + "github.com/liamg/raft/glfont" "github.com/go-gl/gl/all-core/gl" "github.com/go-gl/glfw/v3.2/glfw" - "gitlab.com/liamg/raft/buffer" - "gitlab.com/liamg/raft/config" - "gitlab.com/liamg/raft/terminal" + "github.com/liamg/raft/buffer" + "github.com/liamg/raft/config" + "github.com/liamg/raft/terminal" "go.uber.org/zap" ) diff --git a/gui/mouse.go b/gui/mouse.go index 25eff51..b8d9041 100644 --- a/gui/mouse.go +++ b/gui/mouse.go @@ -5,7 +5,7 @@ import ( "math" "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) { diff --git a/gui/renderer.go b/gui/renderer.go index 70d2360..b9c324a 100644 --- a/gui/renderer.go +++ b/gui/renderer.go @@ -4,9 +4,9 @@ import ( "math" "github.com/go-gl/gl/all-core/gl" - "gitlab.com/liamg/raft/buffer" - "gitlab.com/liamg/raft/config" - "gitlab.com/liamg/raft/glfont" + "github.com/liamg/raft/buffer" + "github.com/liamg/raft/config" + "github.com/liamg/raft/glfont" ) type OpenGLRenderer struct { diff --git a/main.go b/main.go index f5db5e6..dca646a 100644 --- a/main.go +++ b/main.go @@ -10,9 +10,9 @@ import ( "github.com/kr/pty" "github.com/riywo/loginshell" - "gitlab.com/liamg/raft/config" - "gitlab.com/liamg/raft/gui" - "gitlab.com/liamg/raft/terminal" + "github.com/liamg/raft/config" + "github.com/liamg/raft/gui" + "github.com/liamg/raft/terminal" "go.uber.org/zap" ) diff --git a/terminal/sgr.go b/terminal/sgr.go index 2d3499e..afb8683 100644 --- a/terminal/sgr.go +++ b/terminal/sgr.go @@ -3,7 +3,7 @@ package terminal import ( "fmt" - "gitlab.com/liamg/raft/buffer" + "github.com/liamg/raft/buffer" ) func sgrSequenceHandler(params []string, intermediate string, terminal *Terminal) error { diff --git a/terminal/terminal.go b/terminal/terminal.go index d49cfcb..af988bf 100644 --- a/terminal/terminal.go +++ b/terminal/terminal.go @@ -10,8 +10,8 @@ import ( "syscall" "unsafe" - "gitlab.com/liamg/raft/buffer" - "gitlab.com/liamg/raft/config" + "github.com/liamg/raft/buffer" + "github.com/liamg/raft/config" "go.uber.org/zap" )