Skip to content

Commit

Permalink
Change attest import path (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
komuw authored Jun 1, 2023
1 parent 6f54957 commit ce5ce80
Show file tree
Hide file tree
Showing 36 changed files with 40 additions and 37 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
Most recent version is listed first.


## v0.0.48
- Change attest import path: https://github.com/komuw/ong/pull/265

## v0.0.47
- Leave http.server.DisableGeneralOptionsHandler at its default value: https://github.com/komuw/ong/pull/255
- Validate expiry of csrf tokens: https://github.com/komuw/ong/pull/257
Expand Down Expand Up @@ -220,7 +223,7 @@ ClientIP, use remoteAddress if IP is local adress: https://github.com/komuw/ong/
- pass logger as an arg to the middlewares: https://github.com/komuw/ong/pull/84
- disable gzip: https://github.com/komuw/ong/pull/86
- a more efficient error stack trace: https://github.com/komuw/ong/pull/87
- update github.com/akshayjshah/attest: https://github.com/komuw/ong/pull/93
- update go.akshayshah.org/attest: https://github.com/komuw/ong/pull/93
- update to Go 1.19: https://github.com/komuw/ong/pull/102
- remove rlimit code, go1.19 does automatically: https://github.com/komuw/ong/pull/104
- automatically set GOMEMLIMIT in container environments: https://github.com/komuw/ong/pull/105
2 changes: 1 addition & 1 deletion automax/automaxcpu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

func TestSetCpu(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion automax/automaxmem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
"go.uber.org/goleak"
)

Expand Down
2 changes: 1 addition & 1 deletion client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/komuw/ong/log"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
"go.uber.org/goleak"
"golang.org/x/exp/slog"
)
Expand Down
2 changes: 1 addition & 1 deletion cookie/cookie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
"go.uber.org/goleak"
)

Expand Down
2 changes: 1 addition & 1 deletion cry/enc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"sync"
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
"go.uber.org/goleak"
"golang.org/x/exp/slices"
)
Expand Down
2 changes: 1 addition & 1 deletion cry/hash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

func TestHash(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion errors/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
"go.uber.org/goleak"
)

Expand Down
2 changes: 1 addition & 1 deletion example/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"testing"
"time"

"github.com/akshayjshah/attest"
vegeta "github.com/tsenart/vegeta/v12/lib"
"go.akshayshah.org/attest"
)

// This tests depend on the functionality in the /example folder.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ require (

require (
github.com/NYTimes/gziphandler v1.1.1 // test
github.com/akshayjshah/attest v0.4.0 // test
github.com/klauspost/compress v1.16.5 // test
github.com/rs/zerolog v1.29.1 // test
github.com/sirupsen/logrus v1.9.2 // test
github.com/tmthrgd/gziphandler v0.0.0-20210130054451-9e3dc377f14f // test
github.com/tsenart/vegeta/v12 v12.8.4 // test
go.akshayshah.org/attest v1.0.2 // test
go.uber.org/goleak v1.2.1 // test
go.uber.org/zap v1.24.0 // test
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I=
github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c=
github.com/akshayjshah/attest v0.4.0 h1:WsUC9HOLWNx+enIGN1Zb3HDx0d6v9K2ZSRdwZkWsN+I=
github.com/akshayjshah/attest v0.4.0/go.mod h1:xOHx7YBQ1aDFYNp9OpICMPKJrI+YidFSmHx412ptvsc=
github.com/alecthomas/jsonschema v0.0.0-20180308105923-f2c93856175a/go.mod h1:qpebaTNSsyUn5rPSJMsfqEtDw71TTggXM6stUDI16HA=
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
github.com/bmizerany/perks v0.0.0-20141205001514-d9a9656a3a4b h1:AP/Y7sqYicnjGDfD5VcY4CIfh1hRXBUavxrvELjTiOE=
Expand Down Expand Up @@ -67,6 +65,8 @@ github.com/tmthrgd/httputils v0.0.0-20190904060602-27fdf7d93acd/go.mod h1:8/hVmI
github.com/tsenart/go-tsz v0.0.0-20180814232043-cdeb9e1e981e/go.mod h1:SWZznP1z5Ki7hDT2ioqiFKEse8K9tU2OUvaRI0NeGQo=
github.com/tsenart/vegeta/v12 v12.8.4 h1:UQ7tG7WkDorKj0wjx78Z4/vsMBP8RJQMGJqRVrkvngg=
github.com/tsenart/vegeta/v12 v12.8.4/go.mod h1:ZiJtwLn/9M4fTPdMY7bdbIeyNeFVE8/AHbWFqCsUuho=
go.akshayshah.org/attest v1.0.2 h1:qOv9PXCG2mwnph3g0I3yZj0rLAwLyUITs8nhxP+wS44=
go.akshayshah.org/attest v1.0.2/go.mod h1:PnWzcW5j9dkyGwTlBmUsYpPnHG0AUPrs1RQ+HrldWO0=
go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
Expand Down
2 changes: 1 addition & 1 deletion id/id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math"
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
"go.uber.org/goleak"
"golang.org/x/exp/slices"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/clientip/client_ip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
"go.uber.org/goleak"
)

Expand Down
2 changes: 1 addition & 1 deletion log/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
ongErrors "github.com/komuw/ong/errors"
"github.com/komuw/ong/internal/octx"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
"go.uber.org/goleak"
"golang.org/x/exp/slog"
)
Expand Down
2 changes: 1 addition & 1 deletion middleware/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"sync"
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

func protectedHandler(msg string) http.HandlerFunc {
Expand Down
2 changes: 1 addition & 1 deletion middleware/client_ip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion middleware/cors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

func someCorsHandler(msg string) http.HandlerFunc {
Expand Down
2 changes: 1 addition & 1 deletion middleware/csrf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/komuw/ong/cry"
"github.com/komuw/ong/id"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

func getSecretKey() string {
Expand Down
2 changes: 1 addition & 1 deletion middleware/gzip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"sync"
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"

nytimes "github.com/NYTimes/gziphandler"
klauspost "github.com/klauspost/compress/gzhttp"
Expand Down
2 changes: 1 addition & 1 deletion middleware/loadshed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"
"time"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

const loadShedderTestHeader = "LoadShedderTestHeader"
Expand Down
2 changes: 1 addition & 1 deletion middleware/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/komuw/ong/id"
"github.com/komuw/ong/log"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
"golang.org/x/exp/slog"
)

Expand Down
2 changes: 1 addition & 1 deletion middleware/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

"github.com/komuw/ong/log"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
"go.uber.org/goleak"
)

Expand Down
2 changes: 1 addition & 1 deletion middleware/ratelimiter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
"golang.org/x/exp/slices"
)

Expand Down
2 changes: 1 addition & 1 deletion middleware/recoverer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/komuw/ong/errors"
"github.com/komuw/ong/log"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
"golang.org/x/exp/slog"
)

Expand Down
2 changes: 1 addition & 1 deletion middleware/redirect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sync"
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

func someHttpsRedirectorHandler(msg string) http.HandlerFunc {
Expand Down
2 changes: 1 addition & 1 deletion middleware/reload_protect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

func someReloadProtectorHandler(msg, expectedFormName, expectedFormValue string) http.HandlerFunc {
Expand Down
2 changes: 1 addition & 1 deletion middleware/security_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

const nonceHeader = "CUSTOM-CSP-NONCE-TEST-HEADER"
Expand Down
2 changes: 1 addition & 1 deletion middleware/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/komuw/ong/cookie"
"github.com/komuw/ong/sess"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

func bigMap() map[string]string {
Expand Down
2 changes: 1 addition & 1 deletion middleware/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/komuw/ong/id"
"github.com/komuw/ong/internal/octx"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

const someTraceHandlerHeader = "someTraceHandlerHeader"
Expand Down
2 changes: 1 addition & 1 deletion mux/mux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/komuw/ong/log"
"github.com/komuw/ong/middleware"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
"go.uber.org/goleak"
)

Expand Down
2 changes: 1 addition & 1 deletion mux/route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

func TestRouter(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion server/cert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/komuw/ong/log"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

func TestCreateDevCertKey(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion server/pprof_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/komuw/ong/log"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

func TestPprofServer(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/komuw/ong/middleware"
"github.com/komuw/ong/mux"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

func getSecretKey() string {
Expand Down
2 changes: 1 addition & 1 deletion server/tls_conf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package server
import (
"testing"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
)

// taken from https://github.com/golang/crypto/blob/05595931fe9d3f8894ab063e1981d28e9873e2cb/acme/autocert/autocert_test.go#L672
Expand Down
2 changes: 1 addition & 1 deletion sess/sess_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/akshayjshah/attest"
"go.akshayshah.org/attest"
"go.uber.org/goleak"
)

Expand Down

0 comments on commit ce5ce80

Please sign in to comment.