codeberg-pages: 4.6.2 -> 5.0
This commit is contained in:
parent
f880f6ba3b
commit
96cfe57844
2 changed files with 10 additions and 7 deletions
|
@ -2,17 +2,17 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "codeberg-pages";
|
pname = "codeberg-pages";
|
||||||
version = "4.6.2";
|
version = "5.0";
|
||||||
|
|
||||||
src = fetchFromGitea {
|
src = fetchFromGitea {
|
||||||
domain = "codeberg.org";
|
domain = "codeberg.org";
|
||||||
owner = "Codeberg";
|
owner = "Codeberg";
|
||||||
repo = "pages-server";
|
repo = "pages-server";
|
||||||
rev = "ce241fa40adee2b12f8e225db98e09a45bc2acbb";
|
rev = "ea68a82cd22a8a8c1f265260af22b9406f13e3a9";
|
||||||
sha256 = "sha256-mL2Xs7eyldoZK4zrX6WFlFtwdLN0iVyl1Qh8X6b2u9c=";
|
hash = "sha256-TSXRB0oq1CtHC9ooO+Y3ICS5YE+q+ivZAcYBSd1oWi0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-R/LuZkA2xHmu7SO3BVyK1C6n9U+pYn50kNkyLltn2ng=";
|
vendorHash = "sha256-vTYB3ka34VooN2Wh/Rcj+2S1qAsA2a/VtXlILn1W7oU=";
|
||||||
|
|
||||||
patches = [ ./disable_httptest.patch ];
|
patches = [ ./disable_httptest.patch ];
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
diff --git a/server/handler/handler_test.go b/server/handler/handler_test.go
|
diff --git a/server/handler/handler_test.go b/server/handler/handler_test.go
|
||||||
deleted file mode 100644
|
deleted file mode 100644
|
||||||
index 626564a..0000000
|
index 6521633..0000000
|
||||||
--- a/server/handler/handler_test.go
|
--- a/server/handler/handler_test.go
|
||||||
+++ /dev/null
|
+++ /dev/null
|
||||||
@@ -1,49 +0,0 @@
|
@@ -1,52 +0,0 @@
|
||||||
-package handler
|
-package handler
|
||||||
-
|
-
|
||||||
-import (
|
-import (
|
||||||
|
- "net/http"
|
||||||
- "net/http/httptest"
|
- "net/http/httptest"
|
||||||
- "testing"
|
- "testing"
|
||||||
- "time"
|
- "time"
|
||||||
|
@ -24,13 +25,15 @@ index 626564a..0000000
|
||||||
- "https://docs.codeberg.org/pages/raw-content/",
|
- "https://docs.codeberg.org/pages/raw-content/",
|
||||||
- []string{"/.well-known/acme-challenge/"},
|
- []string{"/.well-known/acme-challenge/"},
|
||||||
- []string{"raw.codeberg.org", "fonts.codeberg.org", "design.codeberg.org"},
|
- []string{"raw.codeberg.org", "fonts.codeberg.org", "design.codeberg.org"},
|
||||||
|
- []string{"pages"},
|
||||||
|
- cache.NewKeyValueCache(),
|
||||||
- cache.NewKeyValueCache(),
|
- cache.NewKeyValueCache(),
|
||||||
- cache.NewKeyValueCache(),
|
- cache.NewKeyValueCache(),
|
||||||
- )
|
- )
|
||||||
-
|
-
|
||||||
- testCase := func(uri string, status int) {
|
- testCase := func(uri string, status int) {
|
||||||
- t.Run(uri, func(t *testing.T) {
|
- t.Run(uri, func(t *testing.T) {
|
||||||
- req := httptest.NewRequest("GET", uri, nil)
|
- req := httptest.NewRequest("GET", uri, http.NoBody)
|
||||||
- w := httptest.NewRecorder()
|
- w := httptest.NewRecorder()
|
||||||
-
|
-
|
||||||
- log.Printf("Start: %v\n", time.Now())
|
- log.Printf("Start: %v\n", time.Now())
|
||||||
|
|
Loading…
Reference in a new issue