aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli.go4
-rw-r--r--cli_test.go2
-rw-r--r--config.go4
-rw-r--r--config_test.go2
-rw-r--r--go.mod12
-rw-r--r--go.sum19
-rw-r--r--gotp_test.go2
-rw-r--r--issuer.go6
8 files changed, 26 insertions, 25 deletions
diff --git a/cli.go b/cli.go
index f3c675f..a28f40a 100644
--- a/cli.go
+++ b/cli.go
@@ -12,8 +12,8 @@ import (
"sort"
"strings"
- libos "github.com/shuLhan/share/lib/os"
- "github.com/shuLhan/share/lib/totp"
+ libos "git.sr.ht/~shulhan/pakakeh.go/lib/os"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/totp"
)
// Readme embed the README.md, rendered in "gotp help".
diff --git a/cli_test.go b/cli_test.go
index 2c57d58..ef6a07c 100644
--- a/cli_test.go
+++ b/cli_test.go
@@ -12,7 +12,7 @@ import (
"path/filepath"
"testing"
- "github.com/shuLhan/share/lib/test"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/test"
)
func TestCli_Add(t *testing.T) {
diff --git a/config.go b/config.go
index d07a8ea..8f14b14 100644
--- a/config.go
+++ b/config.go
@@ -13,8 +13,8 @@ import (
"path/filepath"
"strings"
- libcrypto "github.com/shuLhan/share/lib/crypto"
- "github.com/shuLhan/share/lib/ini"
+ libcrypto "git.sr.ht/~shulhan/pakakeh.go/lib/crypto"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/ini"
)
const (
diff --git a/config_test.go b/config_test.go
index be61e5c..51b3020 100644
--- a/config_test.go
+++ b/config_test.go
@@ -6,7 +6,7 @@ package gotp
import (
"testing"
- "github.com/shuLhan/share/lib/test"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/test"
)
func TestNewConfig(t *testing.T) {
diff --git a/go.mod b/go.mod
index b426e94..cf4fc73 100644
--- a/go.mod
+++ b/go.mod
@@ -3,14 +3,14 @@
module git.sr.ht/~shulhan/gotp
-go 1.20
+go 1.21
-require github.com/shuLhan/share v0.53.0
+require git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240321104707-cee16b8ead85
require (
- golang.org/x/crypto v0.18.0 // indirect
- golang.org/x/sys v0.16.0 // indirect
- golang.org/x/term v0.16.0 // indirect
+ golang.org/x/crypto v0.21.0 // indirect
+ golang.org/x/sys v0.18.0 // indirect
+ golang.org/x/term v0.18.0 // indirect
)
-//replace github.com/shuLhan/share => ../share
+//replace git.sr.ht/~shulhan/pakakeh.go => ../pakakeh.go
diff --git a/go.sum b/go.sum
index 078e86c..781b7d9 100644
--- a/go.sum
+++ b/go.sum
@@ -1,9 +1,10 @@
-github.com/shuLhan/share v0.53.0 h1:hxQQbUWKav0pGaVarakEBX7hqJsyfd5jGDG3l6mcAsU=
-github.com/shuLhan/share v0.53.0/go.mod h1:97/BcWdLau8i+xeFvPHdyqph1HgxVBSVhQEUIyCmgRc=
-golang.org/x/crypto v0.18.0 h1:PGVlW0xEltQnzFZ55hkuX5+KLyrMYhHld1YHO4AKcdc=
-golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg=
-golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo=
-golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU=
-golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
-golang.org/x/term v0.16.0 h1:m+B6fahuftsE9qjo0VWp2FW0mB3MTJvR0BaMQrq0pmE=
-golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY=
+git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240321104707-cee16b8ead85 h1:XAIvSk+vMue69jBlpfXdyG6yK6QD4bhEapIS6juMtXQ=
+git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240321104707-cee16b8ead85/go.mod h1:ys7WNtXm03x0M59oqrqBjXnc+wRCX8JBXyE/W8+KVbw=
+golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA=
+golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
+golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc=
+golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
+golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4=
+golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8=
+golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58=
diff --git a/gotp_test.go b/gotp_test.go
index 7743867..89bc18b 100644
--- a/gotp_test.go
+++ b/gotp_test.go
@@ -9,7 +9,7 @@ import (
"testing"
"time"
- "github.com/shuLhan/share/lib/test/mock"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/test/mock"
)
// Mock the termrw for reading passphrase.
diff --git a/issuer.go b/issuer.go
index 1c69f07..a151cd5 100644
--- a/issuer.go
+++ b/issuer.go
@@ -12,9 +12,9 @@ import (
"strconv"
"strings"
- libcrypto "github.com/shuLhan/share/lib/crypto"
- "github.com/shuLhan/share/lib/ini"
- "github.com/shuLhan/share/lib/totp"
+ libcrypto "git.sr.ht/~shulhan/pakakeh.go/lib/crypto"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/ini"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/totp"
)
// Issuer contains the configuration for single TOTP issuer, including