Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
chore(deps): switch to github.com/libtnb/sqlite for sqlite dialect library
Kyle Mendell5f610225c652
diff --git a/backend/api/handlers/activities_test.go b/backend/api/handlers/activities_test.goindex 420f3ba66..3c4d6f288 100644--- a/backend/api/handlers/activities_test.go+++ b/backend/api/handlers/activities_test.go@@ -11,7 +11,7 @@ import ("testing""time"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm"@@ -24,7 +24,7 @@ import (func setupActivityHandlerTestDBInternal(t *testing.T) *database.DB {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.Activity{},diff --git a/backend/api/handlers/dashboard_test.go b/backend/api/handlers/dashboard_test.goindex e034b94e9..1d2f6a270 100644--- a/backend/api/handlers/dashboard_test.go+++ b/backend/api/handlers/dashboard_test.go@@ -16,7 +16,7 @@ import ("github.com/getarcaneapp/arcane/backend/v2/internal/models""github.com/getarcaneapp/arcane/backend/v2/internal/services"dashboardtypes "github.com/getarcaneapp/arcane/types/v2/dashboard"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite"dockercontainer "github.com/moby/moby/api/types/container"dockerimage "github.com/moby/moby/api/types/image""github.com/stretchr/testify/require"@@ -26,7 +26,7 @@ import (func setupDashboardHandlerTestDB(t *testing.T) (*database.DB, *services.SettingsService) {t.Helper()- db, err := gorm.Open(glsqlite.Open("file:"+t.Name()+"?mode=memory&cache=shared"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open("file:"+t.Name()+"?mode=memory&cache=shared"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.ApiKey{}, &models.Environment{}, &models.ImageUpdateRecord{}, &models.Project{}, &models.SettingVariable{}))diff --git a/backend/api/handlers/events_test.go b/backend/api/handlers/events_test.goindex f053f91ca..e3e8b6afd 100644--- a/backend/api/handlers/events_test.go+++ b/backend/api/handlers/events_test.go@@ -14,8 +14,8 @@ import ("github.com/getarcaneapp/arcane/backend/v2/internal/services""github.com/getarcaneapp/arcane/backend/v2/pkg/authz"pkgutils "github.com/getarcaneapp/arcane/backend/v2/pkg/utils"- glsqlite "github.com/glebarez/sqlite""github.com/labstack/echo/v4"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm")@@ -132,7 +132,7 @@ func TestAgentEventIngestionRequiresAgentTokenAndPersists(t *testing.T) {func setupEventIngestionTestDBInternal(t *testing.T) *database.DB {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.Event{}))return &database.DB{DB: db}diff --git a/backend/api/handlers/notifications_test.go b/backend/api/handlers/notifications_test.goindex 77cff7a97..12b28c21a 100644--- a/backend/api/handlers/notifications_test.go+++ b/backend/api/handlers/notifications_test.go@@ -12,7 +12,7 @@ import ("github.com/getarcaneapp/arcane/backend/v2/internal/models""github.com/getarcaneapp/arcane/backend/v2/internal/services"notificationdto "github.com/getarcaneapp/arcane/types/v2/notification"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/assert""github.com/stretchr/testify/require""go.getarcane.app/sys/crypto"@@ -22,7 +22,7 @@ import (func setupNotificationHandlerTestService(t *testing.T) (*database.DB, *services.NotificationService) {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.NotificationSettings{}, &models.SettingVariable{}, &models.Environment{}))diff --git a/backend/api/handlers/remenv_handlers_test.go b/backend/api/handlers/remenv_handlers_test.goindex 6777cb214..d0247127d 100644--- a/backend/api/handlers/remenv_handlers_test.go+++ b/backend/api/handlers/remenv_handlers_test.go@@ -18,7 +18,7 @@ import ("github.com/getarcaneapp/arcane/types/v2/env""github.com/getarcaneapp/arcane/types/v2/jobschedule"settingstypes "github.com/getarcaneapp/arcane/types/v2/settings"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm")@@ -32,7 +32,7 @@ func adminTestContextInternal() context.Context {func setupRemoteHandlerEnvironmentServiceInternal(t *testing.T, server *httptest.Server) *services.EnvironmentService {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.Environment{}))diff --git a/backend/api/handlers/settings_test.go b/backend/api/handlers/settings_test.goindex c83ee1c48..c8bc2e450 100644--- a/backend/api/handlers/settings_test.go+++ b/backend/api/handlers/settings_test.go@@ -15,7 +15,7 @@ import ("github.com/getarcaneapp/arcane/backend/v2/internal/services""github.com/getarcaneapp/arcane/backend/v2/pkg/libarcane/edge"apitypes "github.com/getarcaneapp/arcane/types/v2/settings"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm")@@ -72,7 +72,7 @@ func TestSettingsHandler_UpdateLocalEnvironment_RejectsUnreadableProjectsDirectoctx := context.Background()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.SettingVariable{}))diff --git a/backend/api/handlers/templates_test.go b/backend/api/handlers/templates_test.goindex 9bb7b0961..6ef5fd4c0 100644--- a/backend/api/handlers/templates_test.go+++ b/backend/api/handlers/templates_test.go@@ -18,9 +18,9 @@ import ("github.com/getarcaneapp/arcane/backend/v2/internal/models""github.com/getarcaneapp/arcane/backend/v2/internal/services""github.com/getarcaneapp/arcane/backend/v2/pkg/authz"- glsqlite "github.com/glebarez/sqlite""github.com/golang-jwt/jwt/v5""github.com/labstack/echo/v4"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm")@@ -122,7 +122,7 @@ func newTemplateFetchTestRouter(t *testing.T, httpClient *http.Client) *echo.Echrequire.NoError(t, os.Chdir(originalDir))})- db, err := gorm.Open(glsqlite.Open("file:"+t.Name()+"?mode=memory&cache=shared"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open("file:"+t.Name()+"?mode=memory&cache=shared"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.User{}, &models.UserSession{}))diff --git a/backend/api/handlers/users_test.go b/backend/api/handlers/users_test.goindex 468761143..10a20c29c 100644--- a/backend/api/handlers/users_test.go+++ b/backend/api/handlers/users_test.go@@ -10,7 +10,7 @@ import ("github.com/getarcaneapp/arcane/backend/v2/internal/models""github.com/getarcaneapp/arcane/backend/v2/internal/services""github.com/getarcaneapp/arcane/backend/v2/pkg/authz"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm"@@ -20,7 +20,7 @@ import (func setupUserHandlerTestDB(t *testing.T) *database.DB {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.User{}))diff --git a/backend/api/middleware/auth_test.go b/backend/api/middleware/auth_test.goindex 682c715a1..bbb5a70e8 100644--- a/backend/api/middleware/auth_test.go+++ b/backend/api/middleware/auth_test.go@@ -15,9 +15,9 @@ import ("github.com/getarcaneapp/arcane/backend/v2/internal/services""github.com/getarcaneapp/arcane/backend/v2/pkg/authz""github.com/getarcaneapp/arcane/types/v2/auth"- glsqlite "github.com/glebarez/sqlite""github.com/golang-jwt/jwt/v5""github.com/labstack/echo/v4"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm")@@ -308,7 +308,7 @@ func TestParseSecurityRequirements(t *testing.T) {func setupAuthMiddlewareTestDBInternal(t *testing.T) *database.DB {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.SettingVariable{}, &models.User{}, &models.UserSession{}))return &database.DB{DB: db}diff --git a/backend/go.mod b/backend/go.modindex 8b7734ebf..66d5b1f68 100644--- a/backend/go.mod+++ b/backend/go.mod@@ -26,7 +26,6 @@ require (github.com/fsnotify/fsnotify v1.10.1github.com/getarcaneapp/arcane/cli/v2 v2.3.1github.com/getarcaneapp/arcane/types/v2 v2.3.1- github.com/glebarez/sqlite v1.11.0github.com/go-git/go-git/v5 v5.19.1github.com/gofrs/flock v0.13.0github.com/golang-jwt/jwt/v5 v5.3.1@@ -37,6 +36,7 @@ require (github.com/jinzhu/copier v0.4.0github.com/klauspost/compress v1.19.0github.com/labstack/echo/v4 v4.15.4+ github.com/libtnb/sqlite v1.1.2github.com/lmittmann/tint v1.1.3github.com/moby/buildkit v0.31.1github.com/moby/moby/api v1.55.0@@ -120,7 +120,6 @@ require (github.com/felixge/httpsnoop v1.1.0 // indirectgithub.com/fsnotify/fsevents v0.2.0 // indirectgithub.com/fvbommel/sortorder v1.1.0 // indirect- github.com/glebarez/go-sqlite v1.22.0 // indirectgithub.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirectgithub.com/go-git/go-billy/v5 v5.9.0 // indirectgithub.com/go-jose/go-jose/v4 v4.1.4 // indirectdiff --git a/backend/go.sum b/backend/go.sumindex 193319273..4995f05c2 100644--- a/backend/go.sum+++ b/backend/go.sum@@ -171,10 +171,6 @@ github.com/fvbommel/sortorder v1.1.0 h1:fUmoe+HLsBTctBDoaBwpQo5N+nrCp8g/BjKb/6ZQgithub.com/fvbommel/sortorder v1.1.0/go.mod h1:uk88iVf1ovNn1iLfgUVU2F9o5eO30ui720w+kxuqRs0=github.com/fxamacker/cbor/v2 v2.9.1 h1:2rWm8B193Ll4VdjsJY28jxs70IdDsHRWgQYAI80+rMQ=github.com/fxamacker/cbor/v2 v2.9.1/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ=-github.com/glebarez/go-sqlite v1.22.0 h1:uAcMJhaA6r3LHMTFgP0SifzgXg46yJkgxqyuyec+ruQ=-github.com/glebarez/go-sqlite v1.22.0/go.mod h1:PlBIdHe0+aUEFn+r2/uthrWq4FxbzugL0L8Li6yQJbc=-github.com/glebarez/sqlite v1.11.0 h1:wSG0irqzP6VurnMEpFGer5Li19RpIRi2qvQz++w0GMw=-github.com/glebarez/sqlite v1.11.0/go.mod h1:h8/o8j5wiAsqSPoWELDUdJXhjAhsVliSn7bWZjOhrgQ=github.com/gliderlabs/ssh v0.3.8 h1:a4YXD1V7xMF9g5nTkdfnja3Sxy1PVDCj1Zg4Wb8vY6c=github.com/gliderlabs/ssh v0.3.8/go.mod h1:xYoytBv1sV0aL3CavoDuJIQNURXkkfPA/wxQ1pL1fAU=github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI=@@ -329,6 +325,8 @@ github.com/labstack/echo/v4 v4.15.4 h1:DL45vVYa+BWE+XuW+zZNd9H0YEdZ80UAWJGcTVW4Egithub.com/labstack/echo/v4 v4.15.4/go.mod h1:CuMetKIRwsuO/qlAgMq+KTAalwGoB/h4tC+yPdrTj1g=github.com/labstack/gommon v0.5.0 h1:6VSQ2NOzsnEJ5W6+84E0RbcaDDmgB6NIAzWCczTEe6c=github.com/labstack/gommon v0.5.0/go.mod h1:Rzlg7HHy1maLfzBYGg9NZcVuz1sA68HHhLjhcEllYE0=+github.com/libtnb/sqlite v1.1.2 h1:3g8nez8MwdEhn+oqt3bfKWnYJxk0ZGTO0kVA1WT+hjQ=+github.com/libtnb/sqlite v1.1.2/go.mod h1:2PGCWOR6HqqXuoIVMmwfJ655epvRO8sw0b9kHWuKNsQ=github.com/lmittmann/tint v1.1.3 h1:Hv4EaHWXQr+GTFnOU4VKf8UvAtZgn0VuKT+G0wFlO3I=github.com/lmittmann/tint v1.1.3/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE=github.com/lufia/plan9stats v0.0.0-20260330125221-c963978e514e h1:Q6MvJtQK/iRcRtzAscm/zF23XxJlbECiGPyRicsX+Ak=diff --git a/backend/internal/database/database.go b/backend/internal/database/database.goindex 63cd3921a..fae380e35 100644--- a/backend/internal/database/database.go+++ b/backend/internal/database/database.go@@ -15,7 +15,7 @@ import ("strings""time"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite"goose "github.com/pressly/goose/v3""gorm.io/driver/postgres""gorm.io/gorm"@@ -115,7 +115,7 @@ func connectDatabaseInternal(ctx context.Context, databaseURL string) (*DB, erroif err := ensureSQLiteDirectoryInternal(connString); err != nil {return nil, fmt.Errorf("failed to prepare SQLite directory: %w", err)}- dialector = glsqlite.Open(connString)+ dialector = sqlite.Open(connString)case strings.HasPrefix(databaseURL, "postgres"):dialector = postgres.Open(databaseURL)default:diff --git a/backend/internal/services/activity_service_test.go b/backend/internal/services/activity_service_test.goindex 3cec7f7d7..8a23a7299 100644--- a/backend/internal/services/activity_service_test.go+++ b/backend/internal/services/activity_service_test.go@@ -5,7 +5,7 @@ import ("testing""time"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm"@@ -20,7 +20,7 @@ import (func setupActivityServiceTestDBInternal(t *testing.T) *database.DB {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.Activity{}, &models.ActivityMessage{}))return &database.DB{DB: db}diff --git a/backend/internal/services/api_key_service_test.go b/backend/internal/services/api_key_service_test.goindex 1665d9cf7..5d766b45d 100644--- a/backend/internal/services/api_key_service_test.go+++ b/backend/internal/services/api_key_service_test.go@@ -7,7 +7,7 @@ import ("testing""time"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/assert""github.com/stretchr/testify/require""gorm.io/gorm"@@ -22,7 +22,7 @@ func setupAPIKeyServiceTestDB(t *testing.T) *database.DB {t.Helper()dsn := fmt.Sprintf("file:%s?mode=memory&cache=shared", strings.NewReplacer("/", "_", " ", "_").Replace(t.Name()))- db, err := gorm.Open(glsqlite.Open(dsn), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(dsn), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.User{}, &models.ApiKey{}))diff --git a/backend/internal/services/auth_service_test.go b/backend/internal/services/auth_service_test.goindex 04e58993d..6cd612188 100644--- a/backend/internal/services/auth_service_test.go+++ b/backend/internal/services/auth_service_test.go@@ -7,7 +7,7 @@ import ("testing""time"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm"@@ -22,7 +22,7 @@ import (func setupAuthServiceTestDB(t *testing.T) *database.DB {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.SettingVariable{},diff --git a/backend/internal/services/build_service_test.go b/backend/internal/services/build_service_test.goindex d2a88be2f..5f32a8059 100644--- a/backend/internal/services/build_service_test.go+++ b/backend/internal/services/build_service_test.go@@ -13,7 +13,7 @@ import ("github.com/getarcaneapp/arcane/backend/v2/internal/database""github.com/getarcaneapp/arcane/backend/v2/internal/models"buildgit "github.com/getarcaneapp/arcane/backend/v2/pkg/gitutil"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/assert""github.com/stretchr/testify/require"buildtypes "go.getarcane.app/builds/types"@@ -424,7 +424,7 @@ func (b testBuildRecorder) BuildImage(_ context.Context, req buildtypes.BuildReq}func setupBuildHistoryTestDB() (*database.DB, error) {- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})if err != nil {return nil, err}diff --git a/backend/internal/services/dashboard_service_test.go b/backend/internal/services/dashboard_service_test.goindex 8bb2732a6..a0a7a52a2 100644--- a/backend/internal/services/dashboard_service_test.go+++ b/backend/internal/services/dashboard_service_test.go@@ -15,7 +15,7 @@ import ("github.com/getarcaneapp/arcane/backend/v2/internal/database""github.com/getarcaneapp/arcane/backend/v2/internal/models"dashboardtypes "github.com/getarcaneapp/arcane/types/v2/dashboard"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite"dockercontainer "github.com/moby/moby/api/types/container"dockerimage "github.com/moby/moby/api/types/image""github.com/moby/moby/client"@@ -26,7 +26,7 @@ import (func setupDashboardServiceTestDB(t *testing.T) (*database.DB, *SettingsService) {t.Helper()- db, err := gorm.Open(glsqlite.Open("file:"+t.Name()+"?mode=memory&cache=shared"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open("file:"+t.Name()+"?mode=memory&cache=shared"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.ApiKey{}, &models.Environment{}, &models.ImageUpdateRecord{}, &models.Project{}, &models.SettingVariable{}))diff --git a/backend/internal/services/environment_service_test.go b/backend/internal/services/environment_service_test.goindex 4d209b8bb..9060d2f9d 100644--- a/backend/internal/services/environment_service_test.go+++ b/backend/internal/services/environment_service_test.go@@ -13,7 +13,7 @@ import ("testing""time"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm"@@ -33,7 +33,7 @@ func setupEnvironmentServiceTestDB(t *testing.T) *database.DB {t.Helper()dsn := fmt.Sprintf("file:%s?mode=memory&cache=shared", strings.NewReplacer("/", "_", " ", "_").Replace(t.Name()))- db, err := gorm.Open(glsqlite.Open(dsn), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(dsn), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.Environment{},diff --git a/backend/internal/services/event_service_test.go b/backend/internal/services/event_service_test.goindex 822c60b65..a2c3a3891 100644--- a/backend/internal/services/event_service_test.go+++ b/backend/internal/services/event_service_test.go@@ -13,14 +13,14 @@ import ("github.com/getarcaneapp/arcane/backend/v2/internal/database""github.com/getarcaneapp/arcane/backend/v2/internal/models"pkgutils "github.com/getarcaneapp/arcane/backend/v2/pkg/utils"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm")func setupEventServiceTestDB(t *testing.T) *database.DB {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.Event{}))return &database.DB{DB: db}diff --git a/backend/internal/services/federated_credential_service_test.go b/backend/internal/services/federated_credential_service_test.goindex 466a606ec..84c6a7c32 100644--- a/backend/internal/services/federated_credential_service_test.go+++ b/backend/internal/services/federated_credential_service_test.go@@ -14,8 +14,8 @@ import ("testing""time"- glsqlite "github.com/glebarez/sqlite""github.com/golang-jwt/jwt/v5"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm"@@ -103,7 +103,7 @@ func setupFederatedCredentialServiceTestDBInternal(t *testing.T) *database.DB {t.Helper()dsn := fmt.Sprintf("file:%s?mode=memory&cache=shared", strings.NewReplacer("/", "_", " ", "_").Replace(t.Name()))- db, err := gorm.Open(glsqlite.Open(dsn), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(dsn), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.SettingVariable{},diff --git a/backend/internal/services/git_repository_service_test.go b/backend/internal/services/git_repository_service_test.goindex 58c5a5e87..a233e8597 100644--- a/backend/internal/services/git_repository_service_test.go+++ b/backend/internal/services/git_repository_service_test.go@@ -6,7 +6,7 @@ import ("strings""testing"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/assert""github.com/stretchr/testify/require""gorm.io/gorm"@@ -21,7 +21,7 @@ func setupGitRepositoryServiceTestInternal(t *testing.T) (*GitRepositoryService,t.Helper()dsn := fmt.Sprintf("file:%s?mode=memory&cache=shared", strings.NewReplacer("/", "_", " ", "_").Replace(t.Name()))- db, err := gorm.Open(glsqlite.Open(dsn), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(dsn), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.GitRepository{},diff --git a/backend/internal/services/image_service_test.go b/backend/internal/services/image_service_test.goindex b8afa9e65..5858dec3f 100644--- a/backend/internal/services/image_service_test.go+++ b/backend/internal/services/image_service_test.go@@ -12,7 +12,7 @@ import ("testing""time"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm"@@ -62,7 +62,7 @@ func TestApplyVulnerabilitySummariesToItemsInternal(t *testing.T) {}func TestImageService_GetUpdateInfoByImageRefs_MatchesCanonicalAndFamiliarRepos(t *testing.T) {- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.ImageUpdateRecord{}))@@ -112,7 +112,7 @@ func TestImageService_GetUpdateInfoByImageRefs_MatchesCanonicalAndFamiliarRepos(func setupImageServiceAuthTest(t *testing.T) (*ImageService, *database.DB) {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.ContainerRegistry{}, &models.KVEntry{}))diff --git a/backend/internal/services/image_update_service_test.go b/backend/internal/services/image_update_service_test.goindex 4e51794c1..f63597d7f 100644--- a/backend/internal/services/image_update_service_test.go+++ b/backend/internal/services/image_update_service_test.go@@ -18,7 +18,7 @@ import ("github.com/getarcaneapp/arcane/backend/v2/internal/models""github.com/getarcaneapp/arcane/backend/v2/pkg/utils""github.com/getarcaneapp/arcane/types/v2/imageupdate"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite"dockertypescontainer "github.com/moby/moby/api/types/container"dockertypesimage "github.com/moby/moby/api/types/image"dockerregistry "github.com/moby/moby/api/types/registry"@@ -365,7 +365,7 @@ func TestStringToPtr(t *testing.T) {func setupImageUpdateTestDB(t *testing.T) *database.DB {t.Helper()dsn := fmt.Sprintf("file:image-update-test-%d?mode=memory&cache=shared", time.Now().UnixNano())- db, err := gorm.Open(glsqlite.Open(dsn), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(dsn), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.ImageUpdateRecord{}, &models.Event{}))return &database.DB{DB: db}diff --git a/backend/internal/services/lifecycle_service_test.go b/backend/internal/services/lifecycle_service_test.goindex 706359958..787fecf9b 100644--- a/backend/internal/services/lifecycle_service_test.go+++ b/backend/internal/services/lifecycle_service_test.go@@ -8,7 +8,7 @@ import ("testing""time"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/assert""github.com/stretchr/testify/require""gorm.io/gorm"@@ -19,7 +19,7 @@ import (func setupLifecycleTestDB(t *testing.T) *database.DB {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.SettingVariable{},diff --git a/backend/internal/services/notification_service_test.go b/backend/internal/services/notification_service_test.goindex d40301aee..1a0f30997 100644--- a/backend/internal/services/notification_service_test.go+++ b/backend/internal/services/notification_service_test.go@@ -14,7 +14,7 @@ import ("testing""time"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm"@@ -30,7 +30,7 @@ import (func setupNotificationTestDB(t *testing.T) *database.DB {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.NotificationSettings{}, &models.SettingVariable{}, &models.Environment{}, &models.Event{}))diff --git a/backend/internal/services/project_service_test.go b/backend/internal/services/project_service_test.goindex 2b390ee25..4d4ede6a0 100644--- a/backend/internal/services/project_service_test.go+++ b/backend/internal/services/project_service_test.go@@ -30,7 +30,7 @@ import ("github.com/getarcaneapp/arcane/types/v2/containerregistry"imagetypes "github.com/getarcaneapp/arcane/types/v2/image"projecttypes "github.com/getarcaneapp/arcane/types/v2/project"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/moby/moby/api/types/container"dockertypesimage "github.com/moby/moby/api/types/image"dockerregistry "github.com/moby/moby/api/types/registry"@@ -72,7 +72,7 @@ var _ buildtypes.Builder = testBuildBuilder{}func setupProjectTestDB(t *testing.T) *database.DB {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.Project{}, &models.SettingVariable{}, &models.ImageUpdateRecord{}, &models.Event{}))return &database.DB{DB: db}diff --git a/backend/internal/services/settings_service_test.go b/backend/internal/services/settings_service_test.goindex c60344a70..8e6e04065 100644--- a/backend/internal/services/settings_service_test.go+++ b/backend/internal/services/settings_service_test.go@@ -5,7 +5,7 @@ import ("path/filepath""testing"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm"@@ -18,7 +18,7 @@ import (func setupSettingsTestDB(t *testing.T) *database.DB {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.SettingVariable{}))return &database.DB{DB: db}@@ -388,7 +388,7 @@ func TestSettingsService_UpdateSettings_ScheduledPruneScheduleTriggersCallback(tfunc BenchmarkSettingsService_GetSettings(b *testing.B) {ctx := context.Background()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})if err != nil {b.Fatal(err)}diff --git a/backend/internal/services/system_upgrade_update_all_test.go b/backend/internal/services/system_upgrade_update_all_test.goindex 1e9b24d6c..84c115188 100644--- a/backend/internal/services/system_upgrade_update_all_test.go+++ b/backend/internal/services/system_upgrade_update_all_test.go@@ -7,7 +7,7 @@ import ("github.com/getarcaneapp/arcane/backend/v2/internal/database""github.com/getarcaneapp/arcane/backend/v2/internal/models"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm")@@ -111,7 +111,7 @@ func TestUpsertPendingResult(t *testing.T) {func TestUpdateAllFailedJobMarksUpdatingResultsFailed(t *testing.T) {ctx := context.Background()- gormDB, err := gorm.Open(glsqlite.Open("file:"+t.Name()+"?mode=memory&cache=shared"), &gorm.Config{})+ gormDB, err := gorm.Open(sqlite.Open("file:"+t.Name()+"?mode=memory&cache=shared"), &gorm.Config{})require.NoError(t, err)db := &database.DB{DB: gormDB}@@ -160,7 +160,7 @@ func TestUpdateAllFailedJobMarksUpdatingResultsFailed(t *testing.T) {// and complete the job, NOT re-run the agents phase.func TestResumeUpdateAllFinalizesManagerWithoutRerunningAgents(t *testing.T) {ctx := context.Background()- gormDB, err := gorm.Open(glsqlite.Open("file:"+t.Name()+"?mode=memory&cache=shared"), &gorm.Config{})+ gormDB, err := gorm.Open(sqlite.Open("file:"+t.Name()+"?mode=memory&cache=shared"), &gorm.Config{})require.NoError(t, err)db := &database.DB{DB: gormDB}diff --git a/backend/internal/services/template_service_test.go b/backend/internal/services/template_service_test.goindex 1647a2f52..ddef6d153 100644--- a/backend/internal/services/template_service_test.go+++ b/backend/internal/services/template_service_test.go@@ -13,7 +13,7 @@ import ("testing""time"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm"@@ -29,7 +29,7 @@ import (func setupTemplateServiceTestDB(t *testing.T) *database.DB {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.TemplateRegistry{}, &models.ComposeTemplate{}))@@ -491,7 +491,7 @@ func TestGetTemplate_ForceRefreshesRemoteCacheOnMiss(t *testing.T) {func minimalSettingsServiceForTest(t *testing.T) *SettingsService {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.SettingVariable{}))svc, err := NewSettingsService(context.Background(), &database.DB{DB: db})@@ -502,7 +502,7 @@ func minimalSettingsServiceForTest(t *testing.T) *SettingsService {func TestUpdateGlobalVariables_RejectsNewlineInjectionKey(t *testing.T) {projectsDir := t.TempDir()- db, err := gorm.Open(glsqlite.Open("file:"+t.Name()+"?mode=memory&cache=shared"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open("file:"+t.Name()+"?mode=memory&cache=shared"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.SettingVariable{}))dbWrap := &database.DB{DB: db}diff --git a/backend/internal/services/vulnerability_service_test.go b/backend/internal/services/vulnerability_service_test.goindex 396487db0..fd0855f32 100644--- a/backend/internal/services/vulnerability_service_test.go+++ b/backend/internal/services/vulnerability_service_test.go@@ -18,7 +18,7 @@ import (vuln "github.com/getarcaneapp/arcane/backend/v2/pkg/libarcane/vuln""github.com/getarcaneapp/arcane/backend/v2/pkg/pagination""github.com/getarcaneapp/arcane/types/v2/vulnerability"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite"containertypes "github.com/moby/moby/api/types/container"mounttypes "github.com/moby/moby/api/types/mount"networktypes "github.com/moby/moby/api/types/network"@@ -739,7 +739,7 @@ func TestAwaitContainerWaitResponseInternal_NoStatus(t *testing.T) {func setupVulnerabilityScanTestDB(t *testing.T) *database.DB {t.Helper()dsn := fmt.Sprintf("file:vulnerability-scan-test-%d?mode=memory&cache=shared", time.Now().UnixNano())- db, err := gorm.Open(glsqlite.Open(dsn), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(dsn), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.VulnerabilityScanRecord{}, &models.VulnerabilityIgnore{}))return &database.DB{DB: db}diff --git a/backend/internal/services/webhook_service_test.go b/backend/internal/services/webhook_service_test.goindex 7aa72f46d..5697f30cc 100644--- a/backend/internal/services/webhook_service_test.go+++ b/backend/internal/services/webhook_service_test.go@@ -10,7 +10,7 @@ import ("testing""github.com/getarcaneapp/arcane/types/v2"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/assert""github.com/stretchr/testify/require"libcrypto "go.getarcane.app/sys/crypto"@@ -26,7 +26,7 @@ func setupWebhookServiceTestDB(t *testing.T) *database.DB {initWebhookTokenCryptoForTests()dsn := fmt.Sprintf("file:%s?mode=memory&cache=shared", strings.NewReplacer("/", "_", " ", "_").Replace(t.Name()))- db, err := gorm.Open(glsqlite.Open(dsn), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(dsn), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.Webhook{}))diff --git a/backend/pkg/pagination/skipcount_test.go b/backend/pkg/pagination/skipcount_test.goindex 4aea66bb0..b7dfa9767 100644--- a/backend/pkg/pagination/skipcount_test.go+++ b/backend/pkg/pagination/skipcount_test.go@@ -3,7 +3,7 @@ package paginationimport ("testing"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm""gorm.io/gorm/logger"@@ -16,7 +16,7 @@ type widget struct {func newSkipCountTestDB(t *testing.T) *gorm.DB {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{Logger: logger.Default.LogMode(logger.Silent)})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{Logger: logger.Default.LogMode(logger.Silent)})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&widget{}))for i := range 5 {diff --git a/backend/pkg/scheduler/analytics_job_test.go b/backend/pkg/scheduler/analytics_job_test.goindex b36b40136..4d5e0a60a 100644--- a/backend/pkg/scheduler/analytics_job_test.go+++ b/backend/pkg/scheduler/analytics_job_test.go@@ -11,7 +11,7 @@ import ("testing""time"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm"@@ -24,7 +24,7 @@ import (func setupAnalyticsStateServicesInternal(t *testing.T) (*database.DB, *services.SettingsService, *services.KVService) {t.Helper()ctx := context.Background()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.SettingVariable{}))require.NoError(t, db.AutoMigrate(&models.KVEntry{}))diff --git a/backend/pkg/scheduler/auto_heal_job_test.go b/backend/pkg/scheduler/auto_heal_job_test.goindex 012e852de..ad59d5e0b 100644--- a/backend/pkg/scheduler/auto_heal_job_test.go+++ b/backend/pkg/scheduler/auto_heal_job_test.go@@ -9,7 +9,7 @@ import ("github.com/getarcaneapp/arcane/backend/v2/internal/database""github.com/getarcaneapp/arcane/backend/v2/internal/models""github.com/getarcaneapp/arcane/backend/v2/internal/services"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/moby/moby/api/types/container""github.com/moby/moby/client""github.com/stretchr/testify/require"@@ -160,7 +160,7 @@ func TestAutoHeal_ResetRestartTracking(t *testing.T) {func TestAutoHeal_Run_UsesBoundedConcurrency(t *testing.T) {ctx := context.Background()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.SettingVariable{}))diff --git a/backend/pkg/scheduler/scheduled_prune_job_test.go b/backend/pkg/scheduler/scheduled_prune_job_test.goindex 7cbd9d2b9..8a291cbb8 100644--- a/backend/pkg/scheduler/scheduled_prune_job_test.go+++ b/backend/pkg/scheduler/scheduled_prune_job_test.go@@ -4,7 +4,7 @@ import ("context""testing"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm"@@ -17,7 +17,7 @@ import (func setupScheduledPruneSettingsServiceInternal(t *testing.T) *services.SettingsService {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&models.SettingVariable{}))diff --git a/backend/pkg/utils/dbutil/dbutil_test.go b/backend/pkg/utils/dbutil/dbutil_test.goindex b7fce4264..52bc2433c 100644--- a/backend/pkg/utils/dbutil/dbutil_test.go+++ b/backend/pkg/utils/dbutil/dbutil_test.go@@ -5,7 +5,7 @@ import ("errors""testing"- glsqlite "github.com/glebarez/sqlite"+ sqlite "github.com/libtnb/sqlite""github.com/stretchr/testify/require""gorm.io/gorm")@@ -19,7 +19,7 @@ var errWidgetNotFound = errors.New("widget not found")func newTestDB(t *testing.T) *gorm.DB {t.Helper()- db, err := gorm.Open(glsqlite.Open(":memory:"), &gorm.Config{})+ db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})require.NoError(t, err)require.NoError(t, db.AutoMigrate(&widget{}))return db