From 7d5a852e915799891aae66eb4a7248e0fcc82ee1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 11 Sep 2025 13:00:12 +0100 Subject: [PATCH] gnu: go-ariga-io-atlas: Update to 0.36.1. * gnu/packages/golang-xyz.scm (go-ariga-io-atlas): Update to 0.36.1. [arguments] : Rework skipped tests. [propagated-inputs]: Remove go-github-com-data-dog-go-sqlmock. [native-inputs]: Add go-github-com-data-dog-go-sqlmock and go-github-com-mattn-go-sqlite3. Change-Id: Ieaed1fda9254973960f5812b7e3ad895ec7d3115 --- gnu/packages/golang-xyz.scm | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index afa89f1513e7d666645c832d5e23c3fab1cdf240..49c9d59e7e6e97f2af06afd634a572978f860cfc 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -183,16 +183,16 @@ interacting with Acme windows of the Plan 9 text editor.") (define-public go-ariga-io-atlas (package (name "go-ariga-io-atlas") - (version "0.35.0") + (version "0.36.1") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/ariga/atlas") - (commit (string-append "v" version)))) + (url "https://github.com/ariga/atlas") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "09lh0j5w85xm0rli4cqifn5qkwdb1vnmwfdf5kymsf2w4qz3f82i")) + (base32 "1x3rchcm3c0ixpgx8wvz71a9mbb4flqcsjrkqhj4aa24wik5p5h2")) (modules '((guix build utils))) (snippet #~(begin @@ -209,8 +209,23 @@ interacting with Acme windows of the Plan 9 text editor.") #:import-path "ariga.io/atlas" #:test-flags #~(list "-skip" (string-join - (list "TestValidate" - "TestDriver_LockAcquired") + ;; Tests requiring atlas-cli in PATH. + (list "TestAtlasMigrate_Apply" + "TestAtlasMigrate_ApplyBroken" + "TestAtlasMigrate_ApplyWithRemote" + "TestAtlasMigrate_Lint" + "TestAtlasMigrate_LintWithLogin" + "TestAtlasMigrate_Push" + "TestAtlasSchema_Apply" + "TestAtlasSchema_Lint" + "TestDriver_LockAcquired" + "TestMaintainOriginalWorkingDir" + "TestMigrateHash" + "TestMigrateRebase" + "TestMigrate_Diff" + "TestMigrate_Status" + "TestNewClient" + "TestValidate") "|")) #:phases #~(modify-phases %standard-phases @@ -220,10 +235,11 @@ interacting with Acme windows of the Plan 9 text editor.") (lambda _ (setenv "HOME" "/tmp")))))) (native-inputs - (list go-github-com-stretchr-testify)) + (list go-github-com-data-dog-go-sqlmock + go-github-com-mattn-go-sqlite3 + go-github-com-stretchr-testify)) (propagated-inputs (list go-github-com-bmatcuk-doublestar - go-github-com-data-dog-go-sqlmock go-github-com-go-openapi-inflect go-github-com-hashicorp-hcl-v2 go-github-com-zclconf-go-cty