diff --git a/cmd/go.mod b/cmd/go.mod deleted file mode 100644 index 42211d7..0000000 --- a/cmd/go.mod +++ /dev/null @@ -1,13 +0,0 @@ -module pttodo-cli - -go 1.21 - -require ( - gitea.bel.blue/gogs/pttodo latest - github.com/google/uuid v1.3.0 - gopkg.in/yaml.v2 v2.4.0 -) - -require github.com/robfig/cron/v3 v3.0.1 // indirect - -replace gogs.bel.blue/gogs/pttodo => ./.. diff --git a/cmd/install.sh b/cmd/install.sh index bdb4a97..1dc49b1 100644 --- a/cmd/install.sh +++ b/cmd/install.sh @@ -3,6 +3,7 @@ cd "$(dirname "$BASH_SOURCE")" binary_name="$(head -n 1 go.mod | awk '{print $NF}' | sed 's/.*\///')" +binary_name=pttodo-cli git_commit="$(( git rev-list -1 HEAD if git diff | grep . > /dev/null; then diff --git a/go.mod b/go.mod index 1aca6d2..a1384b5 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module gitea.bel.blue/gogs/pttodo go 1.21 require ( + github.com/google/uuid v1.6.0 github.com/robfig/cron/v3 v3.0.1 gopkg.in/yaml.v2 v2.4.0 ) diff --git a/go.sum b/go.sum index 441e8f1..f026767 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs= github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=