Update import path
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Elara 2023-10-07 17:34:39 -07:00
parent 7a9cea9702
commit 3f3b575b63
36 changed files with 118 additions and 118 deletions

View File

@ -23,13 +23,13 @@ import (
"path/filepath" "path/filepath"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/osutils" "lure.sh/lure/internal/osutils"
"go.elara.ws/lure/internal/types" "lure.sh/lure/internal/types"
"go.elara.ws/lure/pkg/build" "lure.sh/lure/pkg/build"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
"go.elara.ws/lure/pkg/manager" "lure.sh/lure/pkg/manager"
"go.elara.ws/lure/pkg/repos" "lure.sh/lure/pkg/repos"
) )
var buildCmd = &cli.Command{ var buildCmd = &cli.Command{

8
fix.go
View File

@ -22,10 +22,10 @@ import (
"os" "os"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
"go.elara.ws/lure/pkg/repos" "lure.sh/lure/pkg/repos"
) )
var fixCmd = &cli.Command{ var fixCmd = &cli.Command{

2
go.mod
View File

@ -1,4 +1,4 @@
module go.elara.ws/lure module lure.sh/lure
go 1.18 go 1.18

12
info.go
View File

@ -23,12 +23,12 @@ import (
"os" "os"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.elara.ws/lure/internal/cliutils" "lure.sh/lure/internal/cliutils"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/overrides" "lure.sh/lure/internal/overrides"
"go.elara.ws/lure/pkg/distro" "lure.sh/lure/pkg/distro"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
"go.elara.ws/lure/pkg/repos" "lure.sh/lure/pkg/repos"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
) )

View File

@ -22,14 +22,14 @@ import (
"fmt" "fmt"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.elara.ws/lure/internal/cliutils" "lure.sh/lure/internal/cliutils"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
"go.elara.ws/lure/internal/types" "lure.sh/lure/internal/types"
"go.elara.ws/lure/pkg/build" "lure.sh/lure/pkg/build"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
"go.elara.ws/lure/pkg/manager" "lure.sh/lure/pkg/manager"
"go.elara.ws/lure/pkg/repos" "lure.sh/lure/pkg/repos"
) )
var installCmd = &cli.Command{ var installCmd = &cli.Command{

View File

@ -24,11 +24,11 @@ import (
"strings" "strings"
"github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
"go.elara.ws/lure/internal/pager" "lure.sh/lure/internal/pager"
"go.elara.ws/lure/internal/translations" "lure.sh/lure/internal/translations"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
) )
// YesNoPrompt asks the user a yes or no question, using def as the default answer // YesNoPrompt asks the user a yes or no question, using def as the default answer

View File

@ -24,8 +24,8 @@ import (
"sync" "sync"
"github.com/pelletier/go-toml/v2" "github.com/pelletier/go-toml/v2"
"go.elara.ws/lure/internal/types" "lure.sh/lure/internal/types"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
) )
var defaultConfig = &types.Config{ var defaultConfig = &types.Config{

View File

@ -24,7 +24,7 @@ import (
"strings" "strings"
"sync" "sync"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
"golang.org/x/text/language" "golang.org/x/text/language"
) )

View File

@ -25,7 +25,7 @@ import (
"sync" "sync"
"github.com/pelletier/go-toml/v2" "github.com/pelletier/go-toml/v2"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
) )
// Paths contains various paths used by LURE // Paths contains various paths used by LURE

View File

@ -28,8 +28,8 @@ import (
"sync" "sync"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
"modernc.org/sqlite" "modernc.org/sqlite"
) )

View File

@ -24,7 +24,7 @@ import (
"testing" "testing"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
) )
var testPkg = db.Package{ var testPkg = db.Package{

View File

@ -36,8 +36,8 @@ import (
"github.com/PuerkitoBio/purell" "github.com/PuerkitoBio/purell"
"github.com/vmihailenco/msgpack/v5" "github.com/vmihailenco/msgpack/v5"
"go.elara.ws/lure/internal/dlcache" "lure.sh/lure/internal/dlcache"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
) )

View File

@ -33,7 +33,7 @@ import (
"github.com/mholt/archiver/v4" "github.com/mholt/archiver/v4"
"github.com/schollz/progressbar/v3" "github.com/schollz/progressbar/v3"
"go.elara.ws/lure/internal/shutils" "lure.sh/lure/internal/shutils"
) )
// FileDownloader downloads files using HTTP // FileDownloader downloads files using HTTP

View File

@ -26,7 +26,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
) )
// BasePath returns the base path of the download cache // BasePath returns the base path of the download cache

View File

@ -27,8 +27,8 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/dlcache" "lure.sh/lure/internal/dlcache"
) )
func init() { func init() {

View File

@ -22,9 +22,9 @@ import (
"reflect" "reflect"
"strings" "strings"
"go.elara.ws/lure/internal/cpu" "lure.sh/lure/internal/cpu"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
"go.elara.ws/lure/pkg/distro" "lure.sh/lure/pkg/distro"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
"golang.org/x/text/language" "golang.org/x/text/language"
) )

View File

@ -23,8 +23,8 @@ import (
"reflect" "reflect"
"testing" "testing"
"go.elara.ws/lure/internal/overrides" "lure.sh/lure/internal/overrides"
"go.elara.ws/lure/pkg/distro" "lure.sh/lure/pkg/distro"
"golang.org/x/text/language" "golang.org/x/text/language"
) )

View File

@ -25,8 +25,8 @@ import (
"strings" "strings"
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"
"go.elara.ws/lure/internal/overrides" "lure.sh/lure/internal/overrides"
"go.elara.ws/lure/pkg/distro" "lure.sh/lure/pkg/distro"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
"mvdan.cc/sh/v3/expand" "mvdan.cc/sh/v3/expand"
"mvdan.cc/sh/v3/interp" "mvdan.cc/sh/v3/interp"

View File

@ -27,8 +27,8 @@ import (
"strings" "strings"
"testing" "testing"
"go.elara.ws/lure/internal/shutils/decoder" "lure.sh/lure/internal/shutils/decoder"
"go.elara.ws/lure/pkg/distro" "lure.sh/lure/pkg/distro"
"mvdan.cc/sh/v3/interp" "mvdan.cc/sh/v3/interp"
"mvdan.cc/sh/v3/syntax" "mvdan.cc/sh/v3/syntax"
) )

View File

@ -23,9 +23,9 @@ import (
"strings" "strings"
"testing" "testing"
"go.elara.ws/lure/internal/shutils" "lure.sh/lure/internal/shutils"
"go.elara.ws/lure/internal/shutils/decoder" "lure.sh/lure/internal/shutils/decoder"
"go.elara.ws/lure/pkg/distro" "lure.sh/lure/pkg/distro"
"mvdan.cc/sh/v3/interp" "mvdan.cc/sh/v3/interp"
"mvdan.cc/sh/v3/syntax" "mvdan.cc/sh/v3/syntax"
) )

View File

@ -30,7 +30,7 @@ import (
"github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing/object" "github.com/go-git/go-git/v5/plumbing/object"
"go.elara.ws/lure/internal/shutils" "lure.sh/lure/internal/shutils"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
"mvdan.cc/sh/v3/interp" "mvdan.cc/sh/v3/interp"
) )

View File

@ -25,7 +25,7 @@ import (
"strings" "strings"
"testing" "testing"
"go.elara.ws/lure/internal/shutils" "lure.sh/lure/internal/shutils"
"mvdan.cc/sh/v3/interp" "mvdan.cc/sh/v3/interp"
"mvdan.cc/sh/v3/syntax" "mvdan.cc/sh/v3/syntax"
) )

View File

@ -24,7 +24,7 @@ import (
"sync" "sync"
"go.elara.ws/logger" "go.elara.ws/logger"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
"go.elara.ws/translate" "go.elara.ws/translate"
"golang.org/x/text/language" "golang.org/x/text/language"
) )

View File

@ -18,7 +18,7 @@
package types package types
import "go.elara.ws/lure/pkg/manager" import "lure.sh/lure/pkg/manager"
type BuildOpts struct { type BuildOpts struct {
Script string Script string

10
list.go
View File

@ -22,11 +22,11 @@ import (
"fmt" "fmt"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
"go.elara.ws/lure/pkg/manager" "lure.sh/lure/pkg/manager"
"go.elara.ws/lure/pkg/repos" "lure.sh/lure/pkg/repos"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
) )

10
main.go
View File

@ -28,11 +28,11 @@ import (
"github.com/mattn/go-isatty" "github.com/mattn/go-isatty"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.elara.ws/logger" "go.elara.ws/logger"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
"go.elara.ws/lure/internal/translations" "lure.sh/lure/internal/translations"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
"go.elara.ws/lure/pkg/manager" "lure.sh/lure/pkg/manager"
) )
var app = &cli.App{ var app = &cli.App{

View File

@ -38,19 +38,19 @@ import (
"github.com/goreleaser/nfpm/v2" "github.com/goreleaser/nfpm/v2"
"github.com/goreleaser/nfpm/v2/files" "github.com/goreleaser/nfpm/v2/files"
"go.elara.ws/lure/internal/cliutils" "lure.sh/lure/internal/cliutils"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/cpu" "lure.sh/lure/internal/cpu"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
"go.elara.ws/lure/internal/dl" "lure.sh/lure/internal/dl"
"go.elara.ws/lure/internal/shutils" "lure.sh/lure/internal/shutils"
"go.elara.ws/lure/internal/shutils/decoder" "lure.sh/lure/internal/shutils/decoder"
"go.elara.ws/lure/internal/shutils/helpers" "lure.sh/lure/internal/shutils/helpers"
"go.elara.ws/lure/internal/types" "lure.sh/lure/internal/types"
"go.elara.ws/lure/pkg/distro" "lure.sh/lure/pkg/distro"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
"go.elara.ws/lure/pkg/manager" "lure.sh/lure/pkg/manager"
"go.elara.ws/lure/pkg/repos" "lure.sh/lure/pkg/repos"
"mvdan.cc/sh/v3/expand" "mvdan.cc/sh/v3/expand"
"mvdan.cc/sh/v3/interp" "mvdan.cc/sh/v3/interp"
"mvdan.cc/sh/v3/syntax" "mvdan.cc/sh/v3/syntax"

View File

@ -22,10 +22,10 @@ import (
"context" "context"
"path/filepath" "path/filepath"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
"go.elara.ws/lure/internal/types" "lure.sh/lure/internal/types"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
) )
// InstallPkgs installs native packages via the package manager, // InstallPkgs installs native packages via the package manager,

View File

@ -23,7 +23,7 @@ import (
"os" "os"
"strings" "strings"
"go.elara.ws/lure/internal/shutils" "lure.sh/lure/internal/shutils"
"mvdan.cc/sh/v3/expand" "mvdan.cc/sh/v3/expand"
"mvdan.cc/sh/v3/interp" "mvdan.cc/sh/v3/interp"
"mvdan.cc/sh/v3/syntax" "mvdan.cc/sh/v3/syntax"

View File

@ -21,7 +21,7 @@ package repos
import ( import (
"context" "context"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
) )
// FindPkgs looks for packages matching the inputs inside the database. // FindPkgs looks for packages matching the inputs inside the database.

View File

@ -24,9 +24,9 @@ import (
"strings" "strings"
"testing" "testing"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
"go.elara.ws/lure/internal/types" "lure.sh/lure/internal/types"
"go.elara.ws/lure/pkg/repos" "lure.sh/lure/pkg/repos"
) )
func TestFindPkgs(t *testing.T) { func TestFindPkgs(t *testing.T) {

View File

@ -34,13 +34,13 @@ import (
"github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/plumbing/format/diff" "github.com/go-git/go-git/v5/plumbing/format/diff"
"github.com/pelletier/go-toml/v2" "github.com/pelletier/go-toml/v2"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
"go.elara.ws/lure/internal/shutils" "lure.sh/lure/internal/shutils"
"go.elara.ws/lure/internal/shutils/decoder" "lure.sh/lure/internal/shutils/decoder"
"go.elara.ws/lure/internal/types" "lure.sh/lure/internal/types"
"go.elara.ws/lure/pkg/distro" "lure.sh/lure/pkg/distro"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
"go.elara.ws/vercmp" "go.elara.ws/vercmp"
"mvdan.cc/sh/v3/expand" "mvdan.cc/sh/v3/expand"
"mvdan.cc/sh/v3/interp" "mvdan.cc/sh/v3/interp"

View File

@ -24,10 +24,10 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
"go.elara.ws/lure/internal/types" "lure.sh/lure/internal/types"
"go.elara.ws/lure/pkg/repos" "lure.sh/lure/pkg/repos"
) )
func setCfgDirs(t *testing.T) { func setCfgDirs(t *testing.T) {

View File

@ -9,8 +9,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
) )
// Filter represents search filters. // Filter represents search filters.

10
repo.go
View File

@ -24,11 +24,11 @@ import (
"github.com/pelletier/go-toml/v2" "github.com/pelletier/go-toml/v2"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
"go.elara.ws/lure/internal/types" "lure.sh/lure/internal/types"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
"go.elara.ws/lure/pkg/repos" "lure.sh/lure/pkg/repos"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
) )

View File

@ -23,14 +23,14 @@ import (
"fmt" "fmt"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"go.elara.ws/lure/internal/config" "lure.sh/lure/internal/config"
"go.elara.ws/lure/internal/db" "lure.sh/lure/internal/db"
"go.elara.ws/lure/internal/types" "lure.sh/lure/internal/types"
"go.elara.ws/lure/pkg/build" "lure.sh/lure/pkg/build"
"go.elara.ws/lure/pkg/distro" "lure.sh/lure/pkg/distro"
"go.elara.ws/lure/pkg/loggerctx" "lure.sh/lure/pkg/loggerctx"
"go.elara.ws/lure/pkg/manager" "lure.sh/lure/pkg/manager"
"go.elara.ws/lure/pkg/repos" "lure.sh/lure/pkg/repos"
"go.elara.ws/vercmp" "go.elara.ws/vercmp"
"golang.org/x/exp/maps" "golang.org/x/exp/maps"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"