diff --git a/cmd/main.go b/cmd/main.go index 6ed39cc..5541279 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -35,7 +35,6 @@ func main() { logger.Error(err.Error()) os.Exit(1); } - defer db.Close() // run migrations migrate.Migrate(logger, db) diff --git a/flake.lock b/flake.lock index e7ea89c..76af941 100644 --- a/flake.lock +++ b/flake.lock @@ -2,12 +2,12 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1731676054, - "narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=", - "rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add", - "revCount": 708622, + "lastModified": 1747179050, + "narHash": "sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY=", + "rev": "adaa24fbf46737f3f1b5497bf64bae750f82942e", + "revCount": 799423, "type": "tarball", - "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.708622%2Brev-5e4fbfb6b3de1aa2872b76d49fafc942626e2add/0193363c-ab27-7bbd-af1d-3e6093ed5e2d/source.tar.gz" + "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.799423%2Brev-adaa24fbf46737f3f1b5497bf64bae750f82942e/0196d1c3-1974-7bf1-bcf6-06620ac40c8c/source.tar.gz" }, "original": { "type": "tarball", diff --git a/flake.nix b/flake.nix index d08d1ce..891a498 100644 --- a/flake.nix +++ b/flake.nix @@ -5,7 +5,7 @@ outputs = { self, nixpkgs }: let - goVersion = 22; # Change this to update the whole stack + goVersion = 23; # Change this to update the whole stack supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { diff --git a/internal/test/test_database.go b/internal/test/test_database.go index 8fea403..a6919e0 100644 --- a/internal/test/test_database.go +++ b/internal/test/test_database.go @@ -57,6 +57,5 @@ func NewTestDatabase(tb testing.TB) *TestDatabase { } func (tdb *TestDatabase) TearDown() { - tdb.Db.Close() _ = tdb.container.Terminate(context.Background()) } diff --git a/internal/todo/repository/repository.go b/internal/todo/repository/repository.go index b29223d..ff46533 100644 --- a/internal/todo/repository/repository.go +++ b/internal/todo/repository/repository.go @@ -5,7 +5,7 @@ import ( ) var ( - ErrNotFound error = errors.New("Todo cannot be found") + ErrNotFound error = errors.New("todo cannot be found") ) type TodoRow struct { diff --git a/internal/todo/service/service.go b/internal/todo/service/service.go index 43d28a8..3cf5557 100644 --- a/internal/todo/service/service.go +++ b/internal/todo/service/service.go @@ -9,7 +9,7 @@ import ( ) var ( - ErrNotFound error = errors.New("Todo cannot be found") + ErrNotFound error = errors.New("todo cannot be found") ) type Todo struct {