Author | Jakob Wakeling <[email protected]> |
Date | 2025-07-12 11:38:15 |
Commit | ef7b7d0229ec4c36faeb919416b41bf9e36a0b9e |
Parent | baf02ae8053952fff2bbd6ecbd50052caf9edeae |
Branch | master |
Update dependencies and module path
Diffstat
37 files changed, 141 insertions, 146 deletions
diff --git a/Makefile b/Makefile index 1a234d4..a8d02f0 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,27 @@ -.PHONY: all build image test help +.PHONY: all build image tidy test benchmark help all: help -MODULE = "$(shell go list -m)" -PROGRAM = "goit" -VERSION ?= "$(shell git describe --tags --always)" +MODULE = $(shell go list -m) +PROGRAM = goit +VERSION ?= $(shell git describe --tags --always) build: ## Build the project - @go build -ldflags "-X $(MODULE)/res.Version=$(VERSION)" -o ./bin/$(PROGRAM) ./src - @go build -ldflags "-X $(MODULE)/res.Version=$(VERSION)" -o ./bin/$(PROGRAM)-shell ./src/shell + @go build -ldflags "-X $(MODULE)/res.Version=$(VERSION)" -o "./bin/$(PROGRAM)" ./src + @go build -ldflags "-X $(MODULE)/res.Version=$(VERSION)" -o "./bin/$(PROGRAM)-shell" ./src/shell image: ## Build the project image - @docker build -t $(PROGRAM):$(VERSION) --build-arg version=$(VERSION) . + @docker build -t "$(PROGRAM):$(VERSION)" --build-arg version="$(VERSION)" . + +tidy: ## Tidy the project + @go mod tidy + @go fmt ./... test: ## Run unit tests @go test ./... +benchmark: ## Run benchmarks + @go test -run - -bench . ./... + help: ## Display help information @grep -E '^[a-zA-Z_-]+:.*?##.*$$' $(MAKEFILE_LIST) | \ - awk 'BEGIN {FS = ":.*?## *"}; {printf "\033[36m%-6s\033[0m %s\n", $$1, $$2}' + awk 'BEGIN {FS = ":.*?## *"}; {printf "\033[36m%-9s\033[0m %s\n", $$1, $$2}' diff --git a/go.mod b/go.mod index cd0214e..3c2aaba 100644 --- a/go.mod +++ b/go.mod @@ -1,41 +1,37 @@ -module github.com/Jamozed/Goit +module git.omkov.net/goit -go 1.22.0 +go 1.23.0 require ( github.com/alecthomas/chroma v0.10.0 - github.com/buildkite/terminal-to-html/v3 v3.16.4 + github.com/buildkite/terminal-to-html/v3 v3.16.8 github.com/dustin/go-humanize v1.0.1 - github.com/go-chi/chi/v5 v5.2.0 - github.com/go-git/go-git/v5 v5.13.0 - github.com/gorilla/csrf v1.7.2 - github.com/mattn/go-sqlite3 v1.14.24 - golang.org/x/crypto v0.31.0 + github.com/go-chi/chi/v5 v5.2.2 + github.com/go-git/go-git/v5 v5.16.2 + github.com/gorilla/csrf v1.7.3 + github.com/mattn/go-sqlite3 v1.14.28 + golang.org/x/crypto v0.40.0 ) require ( - dario.cat/mergo v1.0.1 // indirect + dario.cat/mergo v1.0.2 // indirect github.com/Microsoft/go-winio v0.6.2 // indirect - github.com/ProtonMail/go-crypto v1.1.3 // indirect - github.com/cloudflare/circl v1.5.0 // indirect - github.com/cyphar/filepath-securejoin v0.3.6 // indirect - github.com/dlclark/regexp2 v1.11.4 // indirect + github.com/ProtonMail/go-crypto v1.3.0 // indirect + github.com/cloudflare/circl v1.6.1 // indirect + github.com/cyphar/filepath-securejoin v0.4.1 // indirect + github.com/dlclark/regexp2 v1.11.5 // indirect github.com/emirpasic/gods v1.18.1 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect - github.com/go-git/go-billy/v5 v5.6.1 // indirect + github.com/go-git/go-billy/v5 v5.6.2 // indirect github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect github.com/gorilla/securecookie v1.1.2 // indirect github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect github.com/kevinburke/ssh_config v1.2.0 // indirect - github.com/mmcloughlin/avo v0.6.0 // indirect - github.com/pjbgf/sha1cd v0.3.1 // indirect - github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect - github.com/skeema/knownhosts v1.3.0 // indirect + github.com/pjbgf/sha1cd v0.4.0 // indirect + github.com/sergi/go-diff v1.4.0 // indirect + github.com/skeema/knownhosts v1.3.1 // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect - golang.org/x/mod v0.22.0 // indirect - golang.org/x/net v0.33.0 // indirect - golang.org/x/sync v0.10.0 // indirect - golang.org/x/sys v0.28.0 // indirect - golang.org/x/tools v0.28.0 // indirect + golang.org/x/net v0.42.0 // indirect + golang.org/x/sys v0.34.0 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect ) diff --git a/go.sum b/go.sum index f593d2f..ed9b54f 100644 --- a/go.sum +++ b/go.sum @@ -1,54 +1,54 @@ -dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s= -dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= +dario.cat/mergo v1.0.2 h1:85+piFYR1tMbRrLcDwR18y4UKJ3aH1Tbzi24VRW1TK8= +dario.cat/mergo v1.0.2/go.mod h1:E/hbnu0NxMFBjpMIE34DRGLWqDy0g5FuKDhCb31ngxA= github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= -github.com/ProtonMail/go-crypto v1.1.3 h1:nRBOetoydLeUb4nHajyO2bKqMLfWQ/ZPwkXqXxPxCFk= -github.com/ProtonMail/go-crypto v1.1.3/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= +github.com/ProtonMail/go-crypto v1.3.0 h1:ILq8+Sf5If5DCpHQp4PbZdS1J7HDFRXz/+xKBiRGFrw= +github.com/ProtonMail/go-crypto v1.3.0/go.mod h1:9whxjD8Rbs29b4XWbB8irEcE8KHMqaR2e7GWU1R+/PE= github.com/alecthomas/chroma v0.10.0 h1:7XDcGkCQopCNKjZHfYrNLraA+M7e0fMiJ/Mfikbfjek= github.com/alecthomas/chroma v0.10.0/go.mod h1:jtJATyUxlIORhUOFNA9NZDWGAQ8wpxQQqNSB4rjA/1s= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= -github.com/buildkite/terminal-to-html/v3 v3.16.4 h1:QFYO8IGvRnp7tGgiQb8g9uFU8kY9wOzxsFFx17+yy6Q= -github.com/buildkite/terminal-to-html/v3 v3.16.4/go.mod h1:r/J7cC9c3EzBzP3/wDz0RJLPwv5PUAMp+KF2w+ntMc0= -github.com/cloudflare/circl v1.5.0 h1:hxIWksrX6XN5a1L2TI/h53AGPhNHoUBo+TD1ms9+pys= -github.com/cloudflare/circl v1.5.0/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZh3pJrofs= -github.com/cyphar/filepath-securejoin v0.3.6 h1:4d9N5ykBnSp5Xn2JkhocYDkOpURL/18CYMpo6xB9uWM= -github.com/cyphar/filepath-securejoin v0.3.6/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI= +github.com/buildkite/terminal-to-html/v3 v3.16.8 h1:QN/daUob6cmK8GcdKnwn9+YTlPr1vNj+oeAIiJK6fPc= +github.com/buildkite/terminal-to-html/v3 v3.16.8/go.mod h1:+k1KVKROZocrTLsEQ9PEf9A+8+X8uaVV5iO1ZIOwKYM= +github.com/cloudflare/circl v1.6.1 h1:zqIqSPIndyBh1bjLVVDHMPpVKqp8Su/V+6MeDzzQBQ0= +github.com/cloudflare/circl v1.6.1/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZh3pJrofs= +github.com/cyphar/filepath-securejoin v0.4.1 h1:JyxxyPEaktOD+GAnqIqTf9A8tHyAG22rowi7HkoSU1s= +github.com/cyphar/filepath-securejoin v0.4.1/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dlclark/regexp2 v1.4.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= -github.com/dlclark/regexp2 v1.11.4 h1:rPYF9/LECdNymJufQKmri9gV604RvvABwgOA8un7yAo= -github.com/dlclark/regexp2 v1.11.4/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= +github.com/dlclark/regexp2 v1.11.5 h1:Q/sSnsKerHeCkc/jSTNq1oCm7KiVgUMZRDUoRu0JQZQ= +github.com/dlclark/regexp2 v1.11.5/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= -github.com/elazarl/goproxy v1.2.1 h1:njjgvO6cRG9rIqN2ebkqy6cQz2Njkx7Fsfv/zIZqgug= -github.com/elazarl/goproxy v1.2.1/go.mod h1:YfEbZtqP4AetfO6d40vWchF3znWX7C7Vd6ZMfdL8z64= +github.com/elazarl/goproxy v1.7.2 h1:Y2o6urb7Eule09PjlhQRGNsqRfPmYI3KKQLFpCAV3+o= +github.com/elazarl/goproxy v1.7.2/go.mod h1:82vkLNir0ALaW14Rc399OTTjyNREgmdL2cVoIbS6XaE= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= github.com/gliderlabs/ssh v0.3.8 h1:a4YXD1V7xMF9g5nTkdfnja3Sxy1PVDCj1Zg4Wb8vY6c= github.com/gliderlabs/ssh v0.3.8/go.mod h1:xYoytBv1sV0aL3CavoDuJIQNURXkkfPA/wxQ1pL1fAU= -github.com/go-chi/chi/v5 v5.2.0 h1:Aj1EtB0qR2Rdo2dG4O94RIU35w2lvQSj6BRA4+qwFL0= -github.com/go-chi/chi/v5 v5.2.0/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= +github.com/go-chi/chi/v5 v5.2.2 h1:CMwsvRVTbXVytCk1Wd72Zy1LAsAh9GxMmSNWLHCG618= +github.com/go-chi/chi/v5 v5.2.2/go.mod h1:L2yAIGWB3H+phAw1NxKwWM+7eUH/lU8pOMm5hHcoops= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic= -github.com/go-git/go-billy/v5 v5.6.1 h1:u+dcrgaguSSkbjzHwelEjc0Yj300NUevrrPphk/SoRA= -github.com/go-git/go-billy/v5 v5.6.1/go.mod h1:0AsLr1z2+Uksi4NlElmMblP5rPcDZNRCD8ujZCRR2BE= +github.com/go-git/go-billy/v5 v5.6.2 h1:6Q86EsPXMa7c3YZ3aLAQsMA0VlWmy43r6FHqa/UNbRM= +github.com/go-git/go-billy/v5 v5.6.2/go.mod h1:rcFC2rAsp/erv7CMz9GczHcuD0D32fWzH+MJAU+jaUU= github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4= github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII= -github.com/go-git/go-git/v5 v5.13.0 h1:vLn5wlGIh/X78El6r3Jr+30W16Blk0CTcxTYcYPWi5E= -github.com/go-git/go-git/v5 v5.13.0/go.mod h1:Wjo7/JyVKtQgUNdXYXIepzWfJQkUEIGvkvVkiXRR/zw= +github.com/go-git/go-git/v5 v5.16.2 h1:fT6ZIOjE5iEnkzKyxTHK1W4HGAsPhqEqiSAssSO77hM= +github.com/go-git/go-git/v5 v5.16.2/go.mod h1:4Ge4alE/5gPs30F2H1esi2gPd69R0C39lolkucHBOp8= github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 h1:f+oWsMOmNPc8JmEHVZIycC7hBoQxHH9pNKQORJNozsQ= github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8/go.mod h1:wcDNUvekVysuuOpQKo3191zZyTpiI6se1N1ULghS0sw= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/gorilla/csrf v1.7.2 h1:oTUjx0vyf2T+wkrx09Trsev1TE+/EbDAeHtSTbtC2eI= -github.com/gorilla/csrf v1.7.2/go.mod h1:F1Fj3KG23WYHE6gozCmBAezKookxbIvUJT+121wTuLk= +github.com/gorilla/csrf v1.7.3 h1:BHWt6FTLZAb2HtWT5KDBf6qgpZzvtbp9QWDRKZMXJC0= +github.com/gorilla/csrf v1.7.3/go.mod h1:F1Fj3KG23WYHE6gozCmBAezKookxbIvUJT+121wTuLk= github.com/gorilla/securecookie v1.1.2 h1:YCIWL56dvtr73r6715mJs5ZvhtnY73hBvEF8kXD8ePA= github.com/gorilla/securecookie v1.1.2/go.mod h1:NfCASbcHqRSY+3a8tlWJwsQap2VX5pwzwo4h3eOamfo= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= @@ -62,25 +62,23 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/mattn/go-sqlite3 v1.14.24 h1:tpSp2G2KyMnnQu99ngJ47EIkWVmliIizyZBfPrBWDRM= -github.com/mattn/go-sqlite3 v1.14.24/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= -github.com/mmcloughlin/avo v0.6.0 h1:QH6FU8SKoTLaVs80GA8TJuLNkUYl4VokHKlPhVDg4YY= -github.com/mmcloughlin/avo v0.6.0/go.mod h1:8CoAGaCSYXtCPR+8y18Y9aB/kxb8JSS6FRI7mSkvD+8= +github.com/mattn/go-sqlite3 v1.14.28 h1:ThEiQrnbtumT+QMknw63Befp/ce/nUPgBPMlRFEum7A= +github.com/mattn/go-sqlite3 v1.14.28/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/onsi/gomega v1.34.1 h1:EUMJIKUjM8sKjYbtxQI9A4z2o+rruxnzNvpknOXie6k= github.com/onsi/gomega v1.34.1/go.mod h1:kU1QgUvBDLXBJq618Xvm2LUX6rSAfRaFRTcdOeDLwwY= -github.com/pjbgf/sha1cd v0.3.1 h1:Dh2GYdpJnO84lIw0LJwTFXjcNbasP/bklicSznyAaPI= -github.com/pjbgf/sha1cd v0.3.1/go.mod h1:Y8t7jSB/dEI/lQE04A1HVKteqjj9bX5O4+Cex0TCu8s= +github.com/pjbgf/sha1cd v0.4.0 h1:NXzbL1RvjTUi6kgYZCX3fPwwl27Q1LJndxtUDVfJGRY= +github.com/pjbgf/sha1cd v0.4.0/go.mod h1:zQWigSxVmsHEZow5qaLtPYxpcKMMQpa09ixqBxuCS6A= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= -github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= -github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8= -github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= +github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= +github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= +github.com/sergi/go-diff v1.4.0 h1:n/SP9D5ad1fORl+llWyN+D6qoUETXNZARKjyY2/KVCw= +github.com/sergi/go-diff v1.4.0/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/skeema/knownhosts v1.3.0 h1:AM+y0rI04VksttfwjkSTNQorvGqmwATnvnAHpSgc0LY= -github.com/skeema/knownhosts v1.3.0/go.mod h1:sPINvnADmT/qYH1kfv+ePMmOBTH6Tbl7b5LvTDjFK7M= +github.com/skeema/knownhosts v1.3.1 h1:X2osQ+RAjK76shCbvhHHHVl3ZlgDm8apHEHFqRjnBY8= +github.com/skeema/knownhosts v1.3.1/go.mod h1:r7KTdC8l4uxWRyK2TpQZ/1o5HaSzh06ePQNxPwTcfiY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -90,34 +88,28 @@ github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= -golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= +golang.org/x/crypto v0.40.0 h1:r4x+VvoG5Fm+eJcxMaY8CQM7Lb0l1lsmjGBQ6s8BfKM= +golang.org/x/crypto v0.40.0/go.mod h1:Qr1vMER5WyS2dfPHAlsOj01wgLbsyWtFn/aY+5+ZdxY= golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 h1:2dVuKD2vS7b0QIHQbpyTISPd0LeHDbnYEryqj5Q1ug8= golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY= -golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= -golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= -golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= -golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= -golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/net v0.42.0 h1:jzkYrhi3YQWD6MLBJcsklgQsoAcw89EcZbJw8Z614hs= +golang.org/x/net v0.42.0/go.mod h1:FF1RA5d3u7nAYA4z2TkclSCKh68eSXtiFwcWQpPXdt8= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= -golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.34.0 h1:H5Y5sJ2L2JRdyv7ROF1he/lPdvFsd0mJHFw2ThKHxLA= +golang.org/x/sys v0.34.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= -golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= +golang.org/x/term v0.33.0 h1:NuFncQrRcaRvVmgRkvM3j/F00gWIAlcmlB8ACEKmGIg= +golang.org/x/term v0.33.0/go.mod h1:s18+ql9tYWp1IfpV9DmCtQDDSRBUjKaw9M1eAv5UeF0= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= -golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= +golang.org/x/text v0.27.0 h1:4fGWRpyh641NLlecmyl4LOe6yDdfaYNrGb2zdfo4JV4= +golang.org/x/text v0.27.0/go.mod h1:1D28KMCvyooCX9hBiosv5Tz/+YLxj0j7XhWjpSUF7CU= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.28.0 h1:WuB6qZ4RPCQo5aP3WdKZS7i595EdWqWR8vqJTlwTVK8= -golang.org/x/tools v0.28.0/go.mod h1:dcIOrVd3mfQKTgrDVQHqCPMWy6lnhfhtX3hLXYVLfRw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= diff --git a/src/admin/cron.go b/src/admin/cron.go index 94263b3..6ddb872 100644 --- a/src/admin/cron.go +++ b/src/admin/cron.go @@ -8,8 +8,8 @@ import ( "net/http" "time" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" ) func HandleCron(w http.ResponseWriter, r *http.Request) { diff --git a/src/admin/repos.go b/src/admin/repos.go index 0ec15cb..ed07aca 100644 --- a/src/admin/repos.go +++ b/src/admin/repos.go @@ -12,9 +12,9 @@ import ( "strconv" "strings" - "github.com/Jamozed/Goit/src/cron" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/cron" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/dustin/go-humanize" "github.com/gorilla/csrf" ) diff --git a/src/admin/status.go b/src/admin/status.go index 4bb46d6..fb3cc7e 100644 --- a/src/admin/status.go +++ b/src/admin/status.go @@ -11,9 +11,9 @@ import ( "strings" "time" - "github.com/Jamozed/Goit/res" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/res" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/dustin/go-humanize" ) diff --git a/src/admin/users.go b/src/admin/users.go index d09f18c..d450afe 100644 --- a/src/admin/users.go +++ b/src/admin/users.go @@ -12,8 +12,8 @@ import ( "strconv" "strings" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/gorilla/csrf" ) diff --git a/src/cron/cron.go b/src/cron/cron.go index 3a8568e..d9dece5 100644 --- a/src/cron/cron.go +++ b/src/cron/cron.go @@ -10,7 +10,7 @@ import ( "sync/atomic" "time" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/util" ) type Cron struct { diff --git a/src/cron/schedule.go b/src/cron/schedule.go index be7d4e9..faeb3c2 100644 --- a/src/cron/schedule.go +++ b/src/cron/schedule.go @@ -7,7 +7,7 @@ import ( "fmt" "time" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/util" ) type Schedule struct{ Month, Day, Weekday, Hour, Minute, Second int64 } diff --git a/src/cron/schedule_test.go b/src/cron/schedule_test.go index 0e2b417..5cfc320 100644 --- a/src/cron/schedule_test.go +++ b/src/cron/schedule_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/Jamozed/Goit/src/cron" + "git.omkov.net/goit/src/cron" ) func TestNext(t *testing.T) { diff --git a/src/goit/auth.go b/src/goit/auth.go index 43515cc..a03e813 100644 --- a/src/goit/auth.go +++ b/src/goit/auth.go @@ -14,7 +14,7 @@ import ( "sync" "time" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/util" "golang.org/x/crypto/argon2" ) diff --git a/src/goit/auth_test.go b/src/goit/auth_test.go index 3a091ca..8ab0469 100644 --- a/src/goit/auth_test.go +++ b/src/goit/auth_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/Jamozed/Goit/src/goit" + "git.omkov.net/goit/src/goit" ) func TestNewSession(t *testing.T) { diff --git a/src/goit/config.go b/src/goit/config.go index fc1a461..18b1b8f 100644 --- a/src/goit/config.go +++ b/src/goit/config.go @@ -10,7 +10,7 @@ import ( "os/user" "path/filepath" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/util" ) type config struct { diff --git a/src/goit/db.go b/src/goit/db.go index ec0f040..e369d04 100644 --- a/src/goit/db.go +++ b/src/goit/db.go @@ -5,7 +5,7 @@ import ( "fmt" "log" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/util" ) /* diff --git a/src/goit/goit.go b/src/goit/goit.go index 29c478d..78912ac 100644 --- a/src/goit/goit.go +++ b/src/goit/goit.go @@ -18,9 +18,9 @@ import ( "strings" "time" - "github.com/Jamozed/Goit/res" - "github.com/Jamozed/Goit/src/cron" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/res" + "git.omkov.net/goit/src/cron" + "git.omkov.net/goit/src/util" "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing/transport" _ "github.com/mattn/go-sqlite3" diff --git a/src/goit/http.go b/src/goit/http.go index ff925b2..2dbe3a9 100644 --- a/src/goit/http.go +++ b/src/goit/http.go @@ -9,7 +9,7 @@ import ( "net" "net/http" - "github.com/Jamozed/Goit/res" + "git.omkov.net/goit/res" ) var Tmpl = template.Must(template.New("error").Parse(res.Error)) diff --git a/src/goit/index.go b/src/goit/index.go index 597f6d0..be08a79 100644 --- a/src/goit/index.go +++ b/src/goit/index.go @@ -12,7 +12,7 @@ import ( "strings" "time" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/util" "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing" ) diff --git a/src/goit/repo.go b/src/goit/repo.go index 8d44dab..06b57c8 100644 --- a/src/goit/repo.go +++ b/src/goit/repo.go @@ -11,7 +11,7 @@ import ( "path/filepath" "strings" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/util" "github.com/go-git/go-git/v5" gitconfig "github.com/go-git/go-git/v5/config" "github.com/go-git/go-git/v5/plumbing" diff --git a/src/goit/ssh.go b/src/goit/ssh.go index c0cf08a..e077224 100644 --- a/src/goit/ssh.go +++ b/src/goit/ssh.go @@ -9,7 +9,7 @@ import ( "os" "path/filepath" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/util" "golang.org/x/crypto/ssh" ) diff --git a/src/main.go b/src/main.go index 688dfe7..9fe5f98 100644 --- a/src/main.go +++ b/src/main.go @@ -13,12 +13,12 @@ import ( "strings" "time" - "github.com/Jamozed/Goit/res" - "github.com/Jamozed/Goit/src/admin" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/repo" - "github.com/Jamozed/Goit/src/user" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/res" + "git.omkov.net/goit/src/admin" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/repo" + "git.omkov.net/goit/src/user" + "git.omkov.net/goit/src/util" "github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5/middleware" "github.com/gorilla/csrf" diff --git a/src/repo/blame.go b/src/repo/blame.go index 3314a58..275b726 100644 --- a/src/repo/blame.go +++ b/src/repo/blame.go @@ -11,8 +11,8 @@ import ( "path" "strings" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/dustin/go-humanize" "github.com/go-chi/chi/v5" "github.com/go-git/go-git/v5" diff --git a/src/repo/commit.go b/src/repo/commit.go index 811feee..002ba3d 100644 --- a/src/repo/commit.go +++ b/src/repo/commit.go @@ -13,8 +13,8 @@ import ( "strings" "time" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/buildkite/terminal-to-html/v3" "github.com/go-chi/chi/v5" "github.com/go-git/go-git/v5" diff --git a/src/repo/create.go b/src/repo/create.go index 7219fe4..4b79cdf 100644 --- a/src/repo/create.go +++ b/src/repo/create.go @@ -10,9 +10,9 @@ import ( "slices" "strings" - "github.com/Jamozed/Goit/src/cron" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/cron" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/gorilla/csrf" ) diff --git a/src/repo/download.go b/src/repo/download.go index e7f91d8..a542dca 100644 --- a/src/repo/download.go +++ b/src/repo/download.go @@ -13,8 +13,8 @@ import ( "path/filepath" "strings" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/go-chi/chi/v5" "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing" diff --git a/src/repo/edit.go b/src/repo/edit.go index f738409..88423e6 100644 --- a/src/repo/edit.go +++ b/src/repo/edit.go @@ -13,9 +13,9 @@ import ( "slices" "strings" - "github.com/Jamozed/Goit/src/cron" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/cron" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/go-chi/chi/v5" "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing" diff --git a/src/repo/file.go b/src/repo/file.go index f3512c4..e07b9af 100644 --- a/src/repo/file.go +++ b/src/repo/file.go @@ -11,8 +11,8 @@ import ( "path" "strings" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/dustin/go-humanize" "github.com/go-chi/chi/v5" "github.com/go-git/go-git/v5" diff --git a/src/repo/log.go b/src/repo/log.go index 9f3b90e..d19a54b 100644 --- a/src/repo/log.go +++ b/src/repo/log.go @@ -13,8 +13,8 @@ import ( "strings" "time" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/go-chi/chi/v5" "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing" diff --git a/src/repo/raw.go b/src/repo/raw.go index 788dd0f..6c02c7b 100644 --- a/src/repo/raw.go +++ b/src/repo/raw.go @@ -9,7 +9,7 @@ import ( "log" "net/http" - "github.com/Jamozed/Goit/src/goit" + "git.omkov.net/goit/src/goit" "github.com/go-chi/chi/v5" "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing" diff --git a/src/repo/refs.go b/src/repo/refs.go index a10710f..8b8b2bb 100644 --- a/src/repo/refs.go +++ b/src/repo/refs.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/go-chi/chi/v5" "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing" diff --git a/src/repo/repo.go b/src/repo/repo.go index 1b6fb6d..4ea2cc8 100644 --- a/src/repo/repo.go +++ b/src/repo/repo.go @@ -7,8 +7,8 @@ import ( "regexp" "strings" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing" ) diff --git a/src/repo/tag.go b/src/repo/tag.go index 9955d03..34fc24a 100644 --- a/src/repo/tag.go +++ b/src/repo/tag.go @@ -9,8 +9,8 @@ import ( "path/filepath" "time" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/go-chi/chi/v5" "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing" diff --git a/src/repo/tree.go b/src/repo/tree.go index a3febfa..6730d6e 100644 --- a/src/repo/tree.go +++ b/src/repo/tree.go @@ -12,8 +12,8 @@ import ( "sort" "strings" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/dustin/go-humanize" "github.com/go-chi/chi/v5" "github.com/go-git/go-git/v5" diff --git a/src/shell/main.go b/src/shell/main.go index c7a5b27..65e98c2 100644 --- a/src/shell/main.go +++ b/src/shell/main.go @@ -11,8 +11,8 @@ import ( "regexp" "strings" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" _ "github.com/mattn/go-sqlite3" ) diff --git a/src/user/edit.go b/src/user/edit.go index 97a0fd0..7036813 100644 --- a/src/user/edit.go +++ b/src/user/edit.go @@ -11,7 +11,7 @@ import ( "net/http" "slices" - "github.com/Jamozed/Goit/src/goit" + "git.omkov.net/goit/src/goit" "github.com/gorilla/csrf" ) diff --git a/src/user/keys.go b/src/user/keys.go index 429e6de..0361277 100644 --- a/src/user/keys.go +++ b/src/user/keys.go @@ -10,8 +10,8 @@ import ( "strconv" "strings" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" "github.com/gorilla/csrf" "golang.org/x/crypto/ssh" ) diff --git a/src/user/login.go b/src/user/login.go index 9c29436..ee89aac 100644 --- a/src/user/login.go +++ b/src/user/login.go @@ -10,7 +10,7 @@ import ( "net/http" "time" - "github.com/Jamozed/Goit/src/goit" + "git.omkov.net/goit/src/goit" "github.com/gorilla/csrf" ) diff --git a/src/user/sessions.go b/src/user/sessions.go index 9d2896e..6e184e5 100644 --- a/src/user/sessions.go +++ b/src/user/sessions.go @@ -10,8 +10,8 @@ import ( "strconv" "time" - "github.com/Jamozed/Goit/src/goit" - "github.com/Jamozed/Goit/src/util" + "git.omkov.net/goit/src/goit" + "git.omkov.net/goit/src/util" ) func HandleSessions(w http.ResponseWriter, r *http.Request) {