Skip to content

Commit 22f48c5

Browse files
committed
Change mod path
1 parent 1b4d55f commit 22f48c5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+120
-139
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ntfy.sh | Send push notifications to your phone or desktop via PUT/POST
44
[![Release](https://img.shields.io/github/release/binwiederhier/ntfy.svg?color=success&style=flat-square)](https://github.com/binwiederhier/ntfy/releases/latest)
5-
[![Go Reference](https://pkg.go.dev/badge/heckel.io/ntfy.svg)](https://pkg.go.dev/heckel.io/ntfy)
5+
[![Go Reference](https://pkg.go.dev/badge/heckel.io/ntfy.svg)](https://pkg.go.dev/heckel.io/ntfy/v2)
66
[![Tests](https://github.com/binwiederhier/ntfy/workflows/test/badge.svg)](https://github.com/binwiederhier/ntfy/actions)
77
[![Go Report Card](https://goreportcard.com/badge/github.com/binwiederhier/ntfy)](https://goreportcard.com/report/github.com/binwiederhier/ntfy)
88
[![codecov](https://codecov.io/gh/binwiederhier/ntfy/branch/main/graph/badge.svg?token=A597KQ463G)](https://codecov.io/gh/binwiederhier/ntfy)

client/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"encoding/json"
88
"errors"
99
"fmt"
10-
"heckel.io/ntfy/log"
11-
"heckel.io/ntfy/util"
10+
"heckel.io/ntfy/v2/log"
11+
"heckel.io/ntfy/v2/util"
1212
"io"
1313
"net/http"
1414
"regexp"

client/client_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package client_test
33
import (
44
"fmt"
55
"github.com/stretchr/testify/require"
6-
"heckel.io/ntfy/client"
7-
"heckel.io/ntfy/log"
8-
"heckel.io/ntfy/test"
6+
"heckel.io/ntfy/v2/client"
7+
"heckel.io/ntfy/v2/log"
8+
"heckel.io/ntfy/v2/test"
99
"os"
1010
"testing"
1111
"time"

client/config_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package client_test
22

33
import (
44
"github.com/stretchr/testify/require"
5-
"heckel.io/ntfy/client"
5+
"heckel.io/ntfy/v2/client"
66
"os"
77
"path/filepath"
88
"testing"

client/options.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package client
22

33
import (
44
"fmt"
5-
"heckel.io/ntfy/util"
5+
"heckel.io/ntfy/v2/util"
66
"net/http"
77
"strings"
88
"time"

cmd/access.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"errors"
77
"fmt"
88
"github.com/urfave/cli/v2"
9-
"heckel.io/ntfy/user"
10-
"heckel.io/ntfy/util"
9+
"heckel.io/ntfy/v2/user"
10+
"heckel.io/ntfy/v2/util"
1111
)
1212

1313
func init() {

cmd/access_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"github.com/stretchr/testify/require"
66
"github.com/urfave/cli/v2"
7-
"heckel.io/ntfy/server"
8-
"heckel.io/ntfy/test"
7+
"heckel.io/ntfy/v2/server"
8+
"heckel.io/ntfy/v2/test"
99
"testing"
1010
)
1111

cmd/app.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"github.com/urfave/cli/v2"
77
"github.com/urfave/cli/v2/altsrc"
8-
"heckel.io/ntfy/log"
8+
"heckel.io/ntfy/v2/log"
99
"os"
1010
"regexp"
1111
)

cmd/app_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"bytes"
55
"encoding/json"
66
"github.com/urfave/cli/v2"
7-
"heckel.io/ntfy/client"
8-
"heckel.io/ntfy/log"
7+
"heckel.io/ntfy/v2/client"
8+
"heckel.io/ntfy/v2/log"
99
"os"
1010
"strings"
1111
"testing"

cmd/config_loader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"github.com/urfave/cli/v2"
66
"github.com/urfave/cli/v2/altsrc"
77
"gopkg.in/yaml.v2"
8-
"heckel.io/ntfy/util"
8+
"heckel.io/ntfy/v2/util"
99
"os"
1010
)
1111

cmd/publish.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"errors"
55
"fmt"
66
"github.com/urfave/cli/v2"
7-
"heckel.io/ntfy/client"
8-
"heckel.io/ntfy/log"
9-
"heckel.io/ntfy/util"
7+
"heckel.io/ntfy/v2/client"
8+
"heckel.io/ntfy/v2/log"
9+
"heckel.io/ntfy/v2/util"
1010
"io"
1111
"os"
1212
"os/exec"

cmd/publish_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package cmd
33
import (
44
"fmt"
55
"github.com/stretchr/testify/require"
6-
"heckel.io/ntfy/test"
7-
"heckel.io/ntfy/util"
6+
"heckel.io/ntfy/v2/test"
7+
"heckel.io/ntfy/v2/util"
88
"net/http"
99
"net/http/httptest"
1010
"os"

cmd/serve.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"errors"
77
"fmt"
88
"github.com/stripe/stripe-go/v74"
9-
"heckel.io/ntfy/user"
9+
"heckel.io/ntfy/v2/user"
1010
"io/fs"
1111
"math"
1212
"net"
@@ -17,12 +17,12 @@ import (
1717
"syscall"
1818
"time"
1919

20-
"heckel.io/ntfy/log"
20+
"heckel.io/ntfy/v2/log"
2121

2222
"github.com/urfave/cli/v2"
2323
"github.com/urfave/cli/v2/altsrc"
24-
"heckel.io/ntfy/server"
25-
"heckel.io/ntfy/util"
24+
"heckel.io/ntfy/v2/server"
25+
"heckel.io/ntfy/v2/util"
2626
)
2727

2828
func init() {

cmd/serve_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import (
1212
"github.com/gorilla/websocket"
1313
"github.com/stretchr/testify/assert"
1414
"github.com/stretchr/testify/require"
15-
"heckel.io/ntfy/client"
16-
"heckel.io/ntfy/test"
17-
"heckel.io/ntfy/util"
15+
"heckel.io/ntfy/v2/client"
16+
"heckel.io/ntfy/v2/test"
17+
"heckel.io/ntfy/v2/util"
1818
)
1919

2020
func init() {

cmd/subscribe.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"errors"
55
"fmt"
66
"github.com/urfave/cli/v2"
7-
"heckel.io/ntfy/client"
8-
"heckel.io/ntfy/log"
9-
"heckel.io/ntfy/util"
7+
"heckel.io/ntfy/v2/client"
8+
"heckel.io/ntfy/v2/log"
9+
"heckel.io/ntfy/v2/util"
1010
"os"
1111
"os/exec"
1212
"os/user"

cmd/tier.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"errors"
77
"fmt"
88
"github.com/urfave/cli/v2"
9-
"heckel.io/ntfy/user"
10-
"heckel.io/ntfy/util"
9+
"heckel.io/ntfy/v2/user"
10+
"heckel.io/ntfy/v2/util"
1111
)
1212

1313
func init() {

cmd/tier_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package cmd
33
import (
44
"github.com/stretchr/testify/require"
55
"github.com/urfave/cli/v2"
6-
"heckel.io/ntfy/server"
7-
"heckel.io/ntfy/test"
6+
"heckel.io/ntfy/v2/server"
7+
"heckel.io/ntfy/v2/test"
88
"testing"
99
)
1010

cmd/token.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"errors"
77
"fmt"
88
"github.com/urfave/cli/v2"
9-
"heckel.io/ntfy/user"
10-
"heckel.io/ntfy/util"
9+
"heckel.io/ntfy/v2/user"
10+
"heckel.io/ntfy/v2/util"
1111
"net/netip"
1212
"time"
1313
)

cmd/token_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"github.com/stretchr/testify/require"
66
"github.com/urfave/cli/v2"
7-
"heckel.io/ntfy/server"
8-
"heckel.io/ntfy/test"
7+
"heckel.io/ntfy/v2/server"
8+
"heckel.io/ntfy/v2/test"
99
"regexp"
1010
"testing"
1111
)

cmd/user.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import (
66
"crypto/subtle"
77
"errors"
88
"fmt"
9-
"heckel.io/ntfy/user"
9+
"heckel.io/ntfy/v2/user"
1010
"os"
1111
"strings"
1212

1313
"github.com/urfave/cli/v2"
1414
"github.com/urfave/cli/v2/altsrc"
15-
"heckel.io/ntfy/util"
15+
"heckel.io/ntfy/v2/util"
1616
)
1717

1818
const (

cmd/user_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package cmd
33
import (
44
"github.com/stretchr/testify/require"
55
"github.com/urfave/cli/v2"
6-
"heckel.io/ntfy/server"
7-
"heckel.io/ntfy/test"
8-
"heckel.io/ntfy/user"
6+
"heckel.io/ntfy/v2/server"
7+
"heckel.io/ntfy/v2/test"
8+
"heckel.io/ntfy/v2/user"
99
"os"
1010
"path/filepath"
1111
"testing"

cmd/webpush_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/stretchr/testify/require"
77
"github.com/urfave/cli/v2"
8-
"heckel.io/ntfy/server"
8+
"heckel.io/ntfy/v2/server"
99
)
1010

1111
func TestCLI_WebPush_GenerateKeys(t *testing.T) {

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ require (
2121
golang.org/x/sync v0.5.0
2222
golang.org/x/term v0.14.0
2323
golang.org/x/time v0.4.0
24-
google.golang.org/api v0.150.0
24+
google.golang.org/api v0.151.0
2525
gopkg.in/yaml.v2 v2.4.0
2626
)
2727

0 commit comments

Comments
 (0)