diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ed0fec2..35e3eb5 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -16,7 +16,7 @@ builds: ldflags: - '-s' - '-w' - - '-X hub.lol/mrpack-install/buildinfo.Version={{ .Version }}' + - '-X github.com/nothub/mrpack-install/buildinfo.Version={{ .Version }}' goos: - linux - darwin diff --git a/README.md b/README.md index 45da698..8604f31 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![downloads](https://img.shields.io/github/downloads/nothub/mrpack-install/total.svg?style=flat-square&labelColor=5c5c5c&color=007D9C)](https://github.com/nothub/mrpack-install/releases/latest) [![discord](https://img.shields.io/discord/1149744662131777546?style=flat-square&labelColor=5c5c5c&color=007D9C)](https://discord.gg/QNbTeGHBRm) -[![go pkg](https://pkg.go.dev/badge/hub.lol/mrpack-install.svg)](https://pkg.go.dev/hub.lol/mrpack-install) +[![go pkg](https://pkg.go.dev/badge/github.com/nothub/mrpack-install.svg)](https://pkg.go.dev/github.com/nothub/mrpack-install) A cli application for installing Minecraft servers and [Modrinth](https://modrinth.com/) [modpacks](https://docs.modrinth.com/docs/modpacks/format_definition/). diff --git a/cmd/ping.go b/cmd/ping.go index a7c526f..ab42621 100644 --- a/cmd/ping.go +++ b/cmd/ping.go @@ -2,8 +2,8 @@ package cmd import ( "fmt" + modrinth "github.com/nothub/mrpack-install/modrinth/api" "github.com/spf13/cobra" - modrinth "hub.lol/mrpack-install/modrinth/api" "log" ) diff --git a/cmd/root.go b/cmd/root.go index 2770831..e69ab5c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -2,15 +2,15 @@ package cmd import ( "fmt" + "github.com/nothub/mrpack-install/buildinfo" + "github.com/nothub/mrpack-install/files" + modrinth "github.com/nothub/mrpack-install/modrinth/api" + "github.com/nothub/mrpack-install/modrinth/mrpack" + "github.com/nothub/mrpack-install/server" + "github.com/nothub/mrpack-install/update/packstate" + "github.com/nothub/mrpack-install/web" + "github.com/nothub/mrpack-install/web/download" "github.com/spf13/cobra" - "hub.lol/mrpack-install/buildinfo" - "hub.lol/mrpack-install/files" - modrinth "hub.lol/mrpack-install/modrinth/api" - "hub.lol/mrpack-install/modrinth/mrpack" - "hub.lol/mrpack-install/server" - "hub.lol/mrpack-install/update/packstate" - "hub.lol/mrpack-install/web" - "hub.lol/mrpack-install/web/download" "log" "os" "path/filepath" diff --git a/cmd/server.go b/cmd/server.go index b4c2d18..f296b36 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -1,9 +1,9 @@ package cmd import ( + "github.com/nothub/mrpack-install/mojang" + "github.com/nothub/mrpack-install/server" "github.com/spf13/cobra" - "hub.lol/mrpack-install/mojang" - "hub.lol/mrpack-install/server" "log" "os" "strings" diff --git a/cmd/update.go b/cmd/update.go index ff90a52..00a7dfb 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -1,10 +1,10 @@ package cmd import ( + "github.com/nothub/mrpack-install/update" + "github.com/nothub/mrpack-install/update/backup" + "github.com/nothub/mrpack-install/update/packstate" "github.com/spf13/cobra" - "hub.lol/mrpack-install/update" - "hub.lol/mrpack-install/update/backup" - "hub.lol/mrpack-install/update/packstate" "log" ) diff --git a/cmd/version.go b/cmd/version.go index 08396e4..f558473 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -1,8 +1,8 @@ package cmd import ( + "github.com/nothub/mrpack-install/buildinfo" "github.com/spf13/cobra" - "hub.lol/mrpack-install/buildinfo" ) func init() { diff --git a/go.mod b/go.mod index d33876c..b0f0abc 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module hub.lol/mrpack-install +module github.com/nothub/mrpack-install go 1.22 @@ -6,7 +6,7 @@ require ( github.com/google/uuid v1.6.0 github.com/nothub/hashutils v0.4.0 github.com/spf13/cobra v1.8.0 - golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 + golang.org/x/exp v0.0.0-20240314144324-c7f7c6466f7f ) require ( diff --git a/go.sum b/go.sum index fe35a99..0a8930f 100644 --- a/go.sum +++ b/go.sum @@ -12,5 +12,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 h1:LfspQV/FYTatPTr/3HzIcmiUFH7PGP+OQ6mgDYo3yuQ= golang.org/x/exp v0.0.0-20240222234643-814bf88cf225/go.mod h1:CxmFvTBINI24O/j8iY7H1xHzx2i4OsyguNBmN/uPtqc= +golang.org/x/exp v0.0.0-20240314144324-c7f7c6466f7f h1:3CW0unweImhOzd5FmYuRsD4Y4oQFKZIjAnKbjV4WIrw= +golang.org/x/exp v0.0.0-20240314144324-c7f7c6466f7f/go.mod h1:CxmFvTBINI24O/j8iY7H1xHzx2i4OsyguNBmN/uPtqc= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/main.go b/main.go index f7c8dd4..d9595ec 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "hub.lol/mrpack-install/cmd" + "github.com/nothub/mrpack-install/cmd" "log" ) diff --git a/maven/meta.go b/maven/meta.go index e77ea9c..961ae90 100644 --- a/maven/meta.go +++ b/maven/meta.go @@ -1,7 +1,7 @@ package maven import ( - "hub.lol/mrpack-install/web" + "github.com/nothub/mrpack-install/web" ) type Metadata struct { diff --git a/modrinth/api/api_test.go b/modrinth/api/api_test.go index 87151a6..6975b1b 100644 --- a/modrinth/api/api_test.go +++ b/modrinth/api/api_test.go @@ -2,7 +2,7 @@ package api import ( "errors" - "hub.lol/mrpack-install/web" + "github.com/nothub/mrpack-install/web" "os" "testing" ) diff --git a/modrinth/api/client.go b/modrinth/api/client.go index 0aa8c5d..8b70a17 100644 --- a/modrinth/api/client.go +++ b/modrinth/api/client.go @@ -1,7 +1,7 @@ package api import ( - "hub.lol/mrpack-install/web" + "github.com/nothub/mrpack-install/web" "log" "net/url" ) diff --git a/modrinth/mrpack/index.go b/modrinth/mrpack/index.go index ee76c85..f88da20 100644 --- a/modrinth/mrpack/index.go +++ b/modrinth/mrpack/index.go @@ -5,13 +5,13 @@ import ( "encoding/json" "errors" "fmt" - "hub.lol/mrpack-install/web/download" + "github.com/nothub/mrpack-install/web/download" "io" "log" "strings" ) -import modrinth "hub.lol/mrpack-install/modrinth/api" +import modrinth "github.com/nothub/mrpack-install/modrinth/api" type Index struct { Format int `json:"formatVersion"` diff --git a/modrinth/mrpack/mrpack_test.go b/modrinth/mrpack/mrpack_test.go index 206085d..274855d 100644 --- a/modrinth/mrpack/mrpack_test.go +++ b/modrinth/mrpack/mrpack_test.go @@ -3,7 +3,7 @@ package mrpack // It is probably not ideal to run this in ci all the time 🙈 /* import ( - "hub.lol/mrpack-install/requester" + "github.com/nothub/mrpack-install/requester" "log" "os" "testing" diff --git a/modrinth/mrpack/overrides.go b/modrinth/mrpack/overrides.go index 95c7398..7404bfe 100644 --- a/modrinth/mrpack/overrides.go +++ b/modrinth/mrpack/overrides.go @@ -6,8 +6,8 @@ import ( "fmt" "github.com/nothub/hashutils/chksum" "github.com/nothub/hashutils/encoding" - "hub.lol/mrpack-install/files" - modrinth "hub.lol/mrpack-install/modrinth/api" + "github.com/nothub/mrpack-install/files" + modrinth "github.com/nothub/mrpack-install/modrinth/api" "io" "log" "os" diff --git a/mojang/api.go b/mojang/api.go index 811672e..3a8102f 100644 --- a/mojang/api.go +++ b/mojang/api.go @@ -4,7 +4,7 @@ import ( "encoding/hex" "errors" "github.com/google/uuid" - "hub.lol/mrpack-install/web" + "github.com/nothub/mrpack-install/web" "time" ) diff --git a/server/fabric.go b/server/fabric.go index b981d62..c19e6b3 100644 --- a/server/fabric.go +++ b/server/fabric.go @@ -3,7 +3,7 @@ package server import ( "errors" "fmt" - "hub.lol/mrpack-install/web" + "github.com/nothub/mrpack-install/web" "net/url" ) diff --git a/server/forge.go b/server/forge.go index 6f64067..e255a7c 100644 --- a/server/forge.go +++ b/server/forge.go @@ -2,7 +2,7 @@ package server import ( "fmt" - "hub.lol/mrpack-install/web" + "github.com/nothub/mrpack-install/web" "os" "os/exec" "path/filepath" diff --git a/server/installer.go b/server/installer.go index 9f5e14e..0903ac0 100644 --- a/server/installer.go +++ b/server/installer.go @@ -1,7 +1,7 @@ package server import ( - "hub.lol/mrpack-install/modrinth/mrpack" + "github.com/nothub/mrpack-install/modrinth/mrpack" "log" ) diff --git a/server/neoforge.go b/server/neoforge.go index 2eb5b62..1f44ae2 100644 --- a/server/neoforge.go +++ b/server/neoforge.go @@ -2,7 +2,7 @@ package server import ( "fmt" - "hub.lol/mrpack-install/web" + "github.com/nothub/mrpack-install/web" "log" ) diff --git a/server/paper.go b/server/paper.go index f25369e..af26f48 100644 --- a/server/paper.go +++ b/server/paper.go @@ -3,7 +3,7 @@ package server import ( "errors" "fmt" - "hub.lol/mrpack-install/web" + "github.com/nothub/mrpack-install/web" "strconv" ) diff --git a/server/quilt.go b/server/quilt.go index 6677b69..593bfab 100644 --- a/server/quilt.go +++ b/server/quilt.go @@ -3,9 +3,9 @@ package server import ( "errors" "fmt" - "hub.lol/mrpack-install/files" - "hub.lol/mrpack-install/maven" - "hub.lol/mrpack-install/web" + "github.com/nothub/mrpack-install/files" + "github.com/nothub/mrpack-install/maven" + "github.com/nothub/mrpack-install/web" "os" "os/exec" "path/filepath" diff --git a/server/vanilla.go b/server/vanilla.go index cc7ec14..28a38c3 100644 --- a/server/vanilla.go +++ b/server/vanilla.go @@ -5,8 +5,8 @@ import ( "errors" "github.com/nothub/hashutils/chksum" "github.com/nothub/hashutils/encoding" - "hub.lol/mrpack-install/mojang" - "hub.lol/mrpack-install/web" + "github.com/nothub/mrpack-install/mojang" + "github.com/nothub/mrpack-install/web" "log" ) diff --git a/tools/readme.go b/tools/readme.go index a1203b3..a494b49 100755 --- a/tools/readme.go +++ b/tools/readme.go @@ -11,7 +11,7 @@ import ( "os/exec" "text/template" - "hub.lol/mrpack-install/cmd" + "github.com/nothub/mrpack-install/cmd" ) //go:embed readme.tmpl diff --git a/tools/readme.tmpl b/tools/readme.tmpl index 3c9c937..c2cbda3 100644 --- a/tools/readme.tmpl +++ b/tools/readme.tmpl @@ -2,7 +2,7 @@ [![downloads](https://img.shields.io/github/downloads/nothub/mrpack-install/total.svg?style=flat-square&labelColor=5c5c5c&color=007D9C)](https://github.com/nothub/mrpack-install/releases/latest) [![discord](https://img.shields.io/discord/1149744662131777546?style=flat-square&labelColor=5c5c5c&color=007D9C)](https://discord.gg/QNbTeGHBRm) -[![go pkg](https://pkg.go.dev/badge/hub.lol/mrpack-install.svg)](https://pkg.go.dev/hub.lol/mrpack-install) +[![go pkg](https://pkg.go.dev/badge/github.com/nothub/mrpack-install.svg)](https://pkg.go.dev/github.com/nothub/mrpack-install) A cli application for installing Minecraft servers and [Modrinth](https://modrinth.com/) [modpacks](https://docs.modrinth.com/docs/modpacks/format_definition/). diff --git a/update/command.go b/update/command.go index 18af7b9..800bd48 100644 --- a/update/command.go +++ b/update/command.go @@ -5,11 +5,11 @@ import ( "fmt" "github.com/nothub/hashutils/chksum" "github.com/nothub/hashutils/encoding" - "hub.lol/mrpack-install/files" - "hub.lol/mrpack-install/modrinth/mrpack" - "hub.lol/mrpack-install/update/backup" - "hub.lol/mrpack-install/update/packstate" - "hub.lol/mrpack-install/web/download" + "github.com/nothub/mrpack-install/files" + "github.com/nothub/mrpack-install/modrinth/mrpack" + "github.com/nothub/mrpack-install/update/backup" + "github.com/nothub/mrpack-install/update/packstate" + "github.com/nothub/mrpack-install/web/download" "log" "os" "path/filepath" diff --git a/update/packstate/packstate.go b/update/packstate/packstate.go index a0ed068..ad93dc3 100644 --- a/update/packstate/packstate.go +++ b/update/packstate/packstate.go @@ -7,8 +7,8 @@ import ( "path/filepath" "strings" - modrinth "hub.lol/mrpack-install/modrinth/api" - "hub.lol/mrpack-install/modrinth/mrpack" + modrinth "github.com/nothub/mrpack-install/modrinth/api" + "github.com/nothub/mrpack-install/modrinth/mrpack" ) const file = "packstate.json" diff --git a/web/client.go b/web/client.go index f192ad6..e540b77 100644 --- a/web/client.go +++ b/web/client.go @@ -2,7 +2,7 @@ package web import ( "fmt" - "hub.lol/mrpack-install/buildinfo" + "github.com/nothub/mrpack-install/buildinfo" "net/http" "net/url" "time" diff --git a/web/download/multi.go b/web/download/multi.go index 01bbc15..442ba6e 100644 --- a/web/download/multi.go +++ b/web/download/multi.go @@ -5,8 +5,8 @@ import ( "fmt" "github.com/nothub/hashutils/chksum" "github.com/nothub/hashutils/encoding" - modrinth "hub.lol/mrpack-install/modrinth/api" - "hub.lol/mrpack-install/web" + modrinth "github.com/nothub/mrpack-install/modrinth/api" + "github.com/nothub/mrpack-install/web" "log" "path/filepath" "sync"