pocketbase: 0.16.10 -> 0.18.3

This commit is contained in:
Thilo Billerbeck 2023-09-10 17:01:11 +02:00
parent b92fa74196
commit b7b77b65a5
2 changed files with 4 additions and 31 deletions

View File

@ -5,16 +5,16 @@
buildGoModule rec {
pname = "pocketbase";
version = "0.16.10";
version = "0.18.3";
src = fetchFromGitHub {
owner = "pocketbase";
repo = pname;
repo = "pocketbase";
rev = "v${version}";
sha256 = "sha256-BH3hJ+5xAJkGj2HoKpee+ZNgMmyQoHEVI0wsXRwIdGw=";
hash = "sha256-UwxE36y99vW/45Lnkm5qaevEToxIVs73YUJVDtr8ziA=";
};
vendorHash = "sha256-h3lkmpHEMr/aueP+lJpa9HJCidEpm7xSKws28+ZSeQA=";
vendorHash = "sha256-vb0957zO27OgrSTUiAt+vuo9NKM5ftz8mbFf613l0eM=";
# This is the released subpackage from upstream repo
subPackages = [ "examples/base" ];
@ -32,11 +32,6 @@ buildGoModule rec {
mv $out/bin/base $out/bin/pocketbase
'';
patches = [
# To provide a consistent update experience, we remove the built in update method
./remove-update-method.patch
];
meta = with lib; {
description = "Open Source realtime backend in 1 file";
homepage = "https://github.com/pocketbase/pocketbase";

View File

@ -1,22 +0,0 @@
diff --git a/examples/base/main.go b/examples/base/main.go
index 908d31d..04b8f1d 100644
--- a/examples/base/main.go
+++ b/examples/base/main.go
@@ -10,7 +10,6 @@ import (
"github.com/pocketbase/pocketbase"
"github.com/pocketbase/pocketbase/apis"
"github.com/pocketbase/pocketbase/core"
- "github.com/pocketbase/pocketbase/plugins/ghupdate"
"github.com/pocketbase/pocketbase/plugins/jsvm"
"github.com/pocketbase/pocketbase/plugins/migratecmd"
)
@@ -80,9 +79,6 @@ func main() {
Dir: migrationsDir,
})
- // GitHub selfupdate
- ghupdate.MustRegister(app, app.RootCmd, nil)
-
app.OnAfterBootstrap().Add(func(e *core.BootstrapEvent) error {
app.Dao().ModelQueryTimeout = time.Duration(queryTimeout) * time.Second
return nil