linting and go version update
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful

This commit is contained in:
Michael Thomson 2025-05-15 13:16:29 -04:00
parent f9a8e9666e
commit ab0e40c695
6 changed files with 8 additions and 10 deletions

View File

@ -35,7 +35,6 @@ func main() {
logger.Error(err.Error()) logger.Error(err.Error())
os.Exit(1); os.Exit(1);
} }
defer db.Close()
// run migrations // run migrations
migrate.Migrate(logger, db) migrate.Migrate(logger, db)

10
flake.lock generated
View File

@ -2,12 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1731676054, "lastModified": 1747179050,
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=", "narHash": "sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY=",
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add", "rev": "adaa24fbf46737f3f1b5497bf64bae750f82942e",
"revCount": 708622, "revCount": 799423,
"type": "tarball", "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": { "original": {
"type": "tarball", "type": "tarball",

View File

@ -5,7 +5,7 @@
outputs = { self, nixpkgs }: outputs = { self, nixpkgs }:
let 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" ]; supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {

View File

@ -57,6 +57,5 @@ func NewTestDatabase(tb testing.TB) *TestDatabase {
} }
func (tdb *TestDatabase) TearDown() { func (tdb *TestDatabase) TearDown() {
tdb.Db.Close()
_ = tdb.container.Terminate(context.Background()) _ = tdb.container.Terminate(context.Background())
} }

View File

@ -5,7 +5,7 @@ import (
) )
var ( var (
ErrNotFound error = errors.New("Todo cannot be found") ErrNotFound error = errors.New("todo cannot be found")
) )
type TodoRow struct { type TodoRow struct {

View File

@ -9,7 +9,7 @@ import (
) )
var ( var (
ErrNotFound error = errors.New("Todo cannot be found") ErrNotFound error = errors.New("todo cannot be found")
) )
type Todo struct { type Todo struct {