Skip to content

Commit

Permalink
module path
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Mar 16, 2024
1 parent 208d843 commit 8acc8c0
Show file tree
Hide file tree
Showing 30 changed files with 53 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
Expand Down
2 changes: 1 addition & 1 deletion cmd/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
16 changes: 8 additions & 8 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions cmd/server.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions cmd/update.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/nothub/mrpack-install/buildinfo"
"github.com/spf13/cobra"
"hub.lol/mrpack-install/buildinfo"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module hub.lol/mrpack-install
module github.com/nothub/mrpack-install

go 1.22

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 (
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"hub.lol/mrpack-install/cmd"
"github.com/nothub/mrpack-install/cmd"
"log"
)

Expand Down
2 changes: 1 addition & 1 deletion maven/meta.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package maven

import (
"hub.lol/mrpack-install/web"
"github.com/nothub/mrpack-install/web"
)

type Metadata struct {
Expand Down
2 changes: 1 addition & 1 deletion modrinth/api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package api

import (
"errors"
"hub.lol/mrpack-install/web"
"github.com/nothub/mrpack-install/web"
"os"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion modrinth/api/client.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package api

import (
"hub.lol/mrpack-install/web"
"github.com/nothub/mrpack-install/web"
"log"
"net/url"
)
Expand Down
4 changes: 2 additions & 2 deletions modrinth/mrpack/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion modrinth/mrpack/mrpack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions modrinth/mrpack/overrides.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion mojang/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/hex"
"errors"
"github.com/google/uuid"
"hub.lol/mrpack-install/web"
"github.com/nothub/mrpack-install/web"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion server/fabric.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package server
import (
"errors"
"fmt"
"hub.lol/mrpack-install/web"
"github.com/nothub/mrpack-install/web"
"net/url"
)

Expand Down
2 changes: 1 addition & 1 deletion server/forge.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package server

import (
"fmt"
"hub.lol/mrpack-install/web"
"github.com/nothub/mrpack-install/web"
"os"
"os/exec"
"path/filepath"
Expand Down
2 changes: 1 addition & 1 deletion server/installer.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package server

import (
"hub.lol/mrpack-install/modrinth/mrpack"
"github.com/nothub/mrpack-install/modrinth/mrpack"
"log"
)

Expand Down
2 changes: 1 addition & 1 deletion server/neoforge.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package server

import (
"fmt"
"hub.lol/mrpack-install/web"
"github.com/nothub/mrpack-install/web"
"log"
)

Expand Down
2 changes: 1 addition & 1 deletion server/paper.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package server
import (
"errors"
"fmt"
"hub.lol/mrpack-install/web"
"github.com/nothub/mrpack-install/web"
"strconv"
)

Expand Down
6 changes: 3 additions & 3 deletions server/quilt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions server/vanilla.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion tools/readme.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"os/exec"
"text/template"

"hub.lol/mrpack-install/cmd"
"github.com/nothub/mrpack-install/cmd"
)

//go:embed readme.tmpl
Expand Down
2 changes: 1 addition & 1 deletion tools/readme.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
Expand Down
10 changes: 5 additions & 5 deletions update/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions update/packstate/packstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion web/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package web

import (
"fmt"
"hub.lol/mrpack-install/buildinfo"
"github.com/nothub/mrpack-install/buildinfo"
"net/http"
"net/url"
"time"
Expand Down
4 changes: 2 additions & 2 deletions web/download/multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8acc8c0

Please sign in to comment.