From 0ffe34a35fcdf6851aa18e8ba0c030baefad6d28 Mon Sep 17 00:00:00 2001 From: Rohan Singh Date: Mon, 19 Oct 2020 16:51:52 -0400 Subject: [PATCH] Change import path to tidbyt.dev/pixlet (#5) --- doc/gen_widget_imgs.go | 2 +- go.mod | 2 +- render.go | 2 +- render/animation/positioned.go | 2 +- render/animation/positioned_test.go | 2 +- runtime/animatedpositioned.go | 4 ++-- runtime/frame.go | 2 +- runtime/gen/header.tmpl | 2 +- runtime/gen/main.go | 4 ++-- runtime/generated.go | 2 +- runtime/plot.go | 5 +++-- runtime/render_test.go | 2 +- runtime/runtime.go | 2 +- serve.go | 2 +- 14 files changed, 18 insertions(+), 17 deletions(-) diff --git a/doc/gen_widget_imgs.go b/doc/gen_widget_imgs.go index cf18323a13..cc228280b5 100644 --- a/doc/gen_widget_imgs.go +++ b/doc/gen_widget_imgs.go @@ -9,7 +9,7 @@ import ( "io/ioutil" "strings" - "github.com/tidbyt/pixlet/runtime" + "tidbyt.dev/pixlet/runtime" ) const Magnification = 7 diff --git a/go.mod b/go.mod index c926e514f2..13278bc4d6 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/tidbyt/pixlet +module tidbyt.dev/pixlet go 1.14 diff --git a/render.go b/render.go index 9eed650a13..408376bd0a 100644 --- a/render.go +++ b/render.go @@ -10,7 +10,7 @@ import ( "github.com/spf13/cobra" - "github.com/tidbyt/pixlet/runtime" + "tidbyt.dev/pixlet/runtime" ) var ( diff --git a/render/animation/positioned.go b/render/animation/positioned.go index 306d62c285..408689383d 100644 --- a/render/animation/positioned.go +++ b/render/animation/positioned.go @@ -6,7 +6,7 @@ import ( "github.com/fogleman/gg" - "github.com/tidbyt/pixlet/render" + "tidbyt.dev/pixlet/render" ) type AnimatedPositioned struct { diff --git a/render/animation/positioned_test.go b/render/animation/positioned_test.go index e946c2b763..8f9a4f5799 100644 --- a/render/animation/positioned_test.go +++ b/render/animation/positioned_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/tidbyt/pixlet/render" + "tidbyt.dev/pixlet/render" ) func TestPositionedLinearCurve(t *testing.T) { diff --git a/runtime/animatedpositioned.go b/runtime/animatedpositioned.go index c229caf46f..107d96a302 100644 --- a/runtime/animatedpositioned.go +++ b/runtime/animatedpositioned.go @@ -6,8 +6,8 @@ import ( "github.com/mitchellh/hashstructure" "go.starlark.net/starlark" - "github.com/tidbyt/pixlet/render" - "github.com/tidbyt/pixlet/render/animation" + "tidbyt.dev/pixlet/render" + "tidbyt.dev/pixlet/render/animation" ) type AnimatedPositioned struct { diff --git a/runtime/frame.go b/runtime/frame.go index ca64da0a63..cf44775978 100644 --- a/runtime/frame.go +++ b/runtime/frame.go @@ -6,7 +6,7 @@ import ( "github.com/mitchellh/hashstructure" "go.starlark.net/starlark" - "github.com/tidbyt/pixlet/render" + "tidbyt.dev/pixlet/render" ) type Root struct { diff --git a/runtime/gen/header.tmpl b/runtime/gen/header.tmpl index 900908c06a..909681ac6a 100644 --- a/runtime/gen/header.tmpl +++ b/runtime/gen/header.tmpl @@ -11,7 +11,7 @@ import ( "github.com/mitchellh/hashstructure" "go.starlark.net/starlark" "go.starlark.net/starlarkstruct" - "github.com/tidbyt/pixlet/render" + "tidbyt.dev/pixlet/render" ) const ( diff --git a/runtime/gen/main.go b/runtime/gen/main.go index 34556854de..8e86141db2 100644 --- a/runtime/gen/main.go +++ b/runtime/gen/main.go @@ -20,7 +20,7 @@ import ( "strings" "text/template" - "github.com/tidbyt/pixlet/render" + "tidbyt.dev/pixlet/render" ) const StarlarkHeaderTemplate = "./gen/header.tmpl" @@ -194,7 +194,7 @@ func attachWidgetDocs(widgets []*StarlarkWidget) { fset := token.NewFileSet() astPkgs, err := parser.ParseDir(fset, RenderDirectory, nil, parser.ParseComments) nilOrPanic(err) - pkg := doc.New(astPkgs["render"], "github.com/tidbyt/pixlet/render", 0) + pkg := doc.New(astPkgs["render"], "tidbyt.dev/pixlet/render", 0) nilOrPanic(err) docs := map[string]string{} for _, type_ := range pkg.Types { diff --git a/runtime/generated.go b/runtime/generated.go index 98aa70a7bf..67a5c31b28 100644 --- a/runtime/generated.go +++ b/runtime/generated.go @@ -11,7 +11,7 @@ import ( "github.com/mitchellh/hashstructure" "go.starlark.net/starlark" "go.starlark.net/starlarkstruct" - "github.com/tidbyt/pixlet/render" + "tidbyt.dev/pixlet/render" ) const ( diff --git a/runtime/plot.go b/runtime/plot.go index 7698e3f60b..666d10fedc 100644 --- a/runtime/plot.go +++ b/runtime/plot.go @@ -3,12 +3,13 @@ package runtime import ( "fmt" + gocolor "image/color" + "github.com/lucasb-eyer/go-colorful" "github.com/mitchellh/hashstructure" "go.starlark.net/starlark" - gocolor "image/color" - "github.com/tidbyt/pixlet/render" + "tidbyt.dev/pixlet/render" ) type Plot struct { diff --git a/runtime/render_test.go b/runtime/render_test.go index eb21d519d5..14e4ba7e76 100644 --- a/runtime/render_test.go +++ b/runtime/render_test.go @@ -12,7 +12,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/tidbyt/pixlet/render" + "tidbyt.dev/pixlet/render" ) var TestDotStar = ` diff --git a/runtime/runtime.go b/runtime/runtime.go index d8c8af9664..63e1b1e48d 100644 --- a/runtime/runtime.go +++ b/runtime/runtime.go @@ -21,7 +21,7 @@ import ( "go.starlark.net/starlark" "go.starlark.net/starlarkstruct" - "github.com/tidbyt/pixlet/render" + "tidbyt.dev/pixlet/render" ) type ModuleLoader func(*starlark.Thread, string) (starlark.StringDict, error) diff --git a/serve.go b/serve.go index 0f0c349deb..1487312619 100644 --- a/serve.go +++ b/serve.go @@ -13,7 +13,7 @@ import ( "github.com/fsnotify/fsnotify" "github.com/spf13/cobra" - "github.com/tidbyt/pixlet/runtime" + "tidbyt.dev/pixlet/runtime" ) var (