guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/06: gnu: vale: Update to 3.9.4.


From: guix-commits
Subject: 06/06: gnu: vale: Update to 3.9.4.
Date: Thu, 23 Jan 2025 12:29:54 -0500 (EST)

sharlatan pushed a commit to branch go-team
in repository guix.

commit 335d1d20fbf9b6a3ce0a3dd3046ba909af1ed8a7
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Jan 23 17:20:50 2025 +0000

    gnu: vale: Update to 3.9.4.
    
    * gnu/packages/textutils.scm: Add (gnu packages golang).
    (vale): Update to 3.9.4.
    [source] <snippet>: Remove it.
    [arguments] <go>: Use go-1.23.
    <test-flags>: Skip just 3 tests.
    <test-subdirs>: Test the whole code base by starting from import-path.
    [native-inputs]: Remove go-github-com-karrick-godirwalk and
    go-github-com-mholt-archiver-v3; add
    go-github-com-jdkato-go-tree-sitter-julia,
    go-github-com-pelletier-go-toml-v2,
    go-github-com-smacker-go-tree-sitter, go-github-com-stretchr-testify,
    and go-github-com-tomwright-dasel-v2.
    
    Change-Id: Ic13b52caa92f6ba2fcd2f34f74b5a599773c5254
---
 gnu/packages/textutils.scm | 44 +++++++++++++++++++-------------------------
 1 file changed, 19 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index f60a641230..229e69a2b3 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -69,6 +69,7 @@
   #:use-module (gnu packages compression)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages gettext)
+  #:use-module (gnu packages golang)
   #:use-module (gnu packages golang-build)
   #:use-module (gnu packages golang-check)
   #:use-module (gnu packages golang-compression)
@@ -1495,9 +1496,7 @@ of a Unix terminal to HTML code.")
 (define-public vale
   (package
     (name "vale")
-    ;; Newer versions requires <github.com/smacker/go-tree-sitter> which is
-    ;; quite a large project to pack.
-    (version "3.4.2")
+    (version "3.9.4")
     (source
      (origin
        (method git-fetch)
@@ -1505,17 +1504,12 @@ of a Unix terminal to HTML code.")
              (url "https://github.com/errata-ai/vale";)
              (commit (string-append "v" version))))
        (sha256
-        (base32 "15f8ggh7hpfmfpszl9qkdfz19kds6gg6x5dgcqy0v6jrcsdbgpgp"))
-       (file-name (git-file-name name version))
-       (modules '((guix build utils)))
-       (snippet
-        #~(begin
-            ;; Module name has been changed upstream.
-            (substitute* (find-files "." "\\.go$")
-              (("github.com/antonmedv/expr") "github.com/expr-lang/expr"))))))
+        (base32 "009gyrn2mi7bg10v6mqrr6c6ii5l2vbhs7mvh7g4xxgqhaqzpbhp"))
+       (file-name (git-file-name name version))))
     (build-system go-build-system)
     (arguments
      (list
+      #:go go-1.23
       #:install-source? #f
       #:embed-files #~(list ".*\\.gob")
       #:import-path "github.com/errata-ai/vale/cmd/vale"
@@ -1525,24 +1519,20 @@ of a Unix terminal to HTML code.")
       ;; dial tcp: lookup raw.githubusercontent.com on [::1]:53: read udp
       ;; [::1]:52621->[::1]:53: read: connection refused.
       #:test-flags
-      #~(list "-skip"
-              (string-join
-               (list "TestLibrary"
-                     "TestLocalComplete"
-                     "TestLocalDir"
-                     "TestLocalOnlyStyles"
-                     "TestLocalZip"
-                     "TestNoPkgFound"
-                     "TestV3Pkg")
-               "|"))
+      #~(list "-skip" (string-join
+                       (list "TestLibrary"
+                             "TestNoPkgFound"
+                             "TestSymlinkFixture")
+                       "|"))
+      #:test-subdirs
+      #~(list "../../...") ; test whole libary, starting from import-path
       #:phases
       #~(modify-phases %standard-phases
           (add-before 'check 'pre-check
             (lambda _
               (setenv "HOME" "/tmp"))))))
     (native-inputs
-     (list go-github-com-masterminds-sprig-v3
-           go-github-com-adrg-strutil
+     (list go-github-com-adrg-strutil
            go-github-com-adrg-xdg
            go-github-com-bmatcuk-doublestar-v4
            go-github-com-d5-tengo-v2
@@ -1550,16 +1540,20 @@ of a Unix terminal to HTML code.")
            go-github-com-errata-ai-regexp2
            go-github-com-expr-lang-expr
            go-github-com-gobwas-glob
+           go-github-com-jdkato-go-tree-sitter-julia
            go-github-com-jdkato-twine
-           go-github-com-karrick-godirwalk
-           go-github-com-mholt-archiver-v3
+           go-github-com-masterminds-sprig-v3
            go-github-com-mitchellh-mapstructure
            go-github-com-niklasfasching-go-org
            go-github-com-olekukonko-tablewriter
            go-github-com-otiai10-copy
+           go-github-com-pelletier-go-toml-v2
            go-github-com-pterm-pterm
            go-github-com-remeh-sizedwaitgroup
+           go-github-com-smacker-go-tree-sitter
            go-github-com-spf13-pflag
+           go-github-com-stretchr-testify
+           go-github-com-tomwright-dasel-v2
            go-github-com-yuin-goldmark
            go-golang-org-x-exp
            go-golang-org-x-net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]