guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 9f1b7e935504e56307c655ad76281beaf835cb1e
Author: David Thompson <da...@gnu.org>
AuthorDate: Mon Jun 2 14:08:25 2025 +0200

    gnu: Add go-github-com-rhysd-actionlint.
    
    * gnu/packages/golang-vcs.scm (go-github-com-rhysd-actionlint): New 
variable.
    
    Co-authored-by: Ludovic Courtès <l...@gnu.org>
    Change-Id: Ic2f93479b2bcefd2b844831726f12288cf9ed8e3
---
 gnu/packages/golang-vcs.scm | 59 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/gnu/packages/golang-vcs.scm b/gnu/packages/golang-vcs.scm
index b110d65412..c1c9b446ab 100644
--- a/gnu/packages/golang-vcs.scm
+++ b/gnu/packages/golang-vcs.scm
@@ -1,6 +1,8 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2020 Oleg Pykhalov <go.wig...@gmail.com>
 ;;; Copyright © 2024 Sharlatan Hellseher <sharlata...@gmail.com>
+;;; Copyright © 2025 David Thompson <da...@gnu.org>
+;;; Copyright © 2025 Ludovic Courtès <l...@gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -29,6 +31,8 @@
   #:use-module (gnu packages golang-crypto)
   #:use-module (gnu packages golang-web)
   #:use-module (gnu packages golang-xyz)
+  #:use-module (gnu packages haskell-apps)
+  #:use-module (gnu packages python-check)
   #:use-module (gnu packages version-control))
 
 ;;; Commentary:
@@ -157,6 +161,61 @@ using the Git pkt-line format used in various Git 
operations.")
     (description "This package provides a Git implementation library.")
     (license license:asl2.0)))
 
+(define-public go-github-com-rhysd-actionlint
+  (package
+    (name "go-github-com-rhysd-actionlint")
+    (version "1.7.7")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/rhysd/actionlint";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0xbsrcvklxn0lppikabwrizav945jk85d0mz16zc3spxc80plrvn"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/rhysd/actionlint"
+      ;; Several tests try to download stuff from raw.githubusercontent.com;
+      ;; skip them.
+      #:test-flags #~(list "-skip"
+                           (string-join
+                            '("TestMain"          ;XXX: segfaults
+                              "TestUpdate"        ;XXX: segfaults
+                              "TestFetchRemoteYAML"
+                              "TestWriteOutdatedActionAsJSONL"
+                              "TestDetectNewRelease"
+                              "TestDetectNoRelease"
+                              "TestCouldNotFetch"
+                              "TestDetectErrorBadRequest"
+                              "TestFetchOK"
+                              "TestFetchError/not_found")
+                            "|"))))
+    (native-inputs
+     ;; Test dependencies.
+     (list python-pyflakes
+           shellcheck))
+    (propagated-inputs
+     (list go-gopkg-in-yaml-v3
+           go-golang-org-x-sys
+           go-golang-org-x-sync
+           go-github-com-yuin-goldmark
+           go-github-com-robfig-cron-v3
+           go-github-com-mattn-go-shellwords
+           go-github-com-mattn-go-runewidth
+           go-github-com-mattn-go-colorable
+           go-github-com-google-go-cmp
+           go-github-com-fatih-color
+           go-github-com-bmatcuk-doublestar-v4))
+    (home-page "https://github.com/rhysd/actionlint";)
+    (synopsis "Statically check GitHub Action workflow files")
+    (description
+     "Package @code{actionlint} is the implementation of actionlint linter.
+It's a static checker for GitHub Actions workflow files.")
+    (license license:expat)))
+
 (define-public go-github-com-xanzy-go-gitlab
   (package
     (name "go-github-com-xanzy-go-gitlab")

Reply via email to