Unverified Commit 8779cf07 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #254424 from thilobillerbeck/master

pocketbase: 0.16.10 -> 0.18.3
parents 758d31cc b7b77b65
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -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";
+0 −22
Original line number Diff line number Diff line
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