GNU bug report logs - #55701
[PATCH] gnu: Add go-github-com-google-go-jsonnet

Previous Next

Package: guix-patches;

Reported by: JOULAUD François <Francois.JOULAUD <at> radiofrance.com>

Date: Sun, 29 May 2022 09:37:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55701 in the body.
You can then email your comments to 55701 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#55701; Package guix-patches. (Sun, 29 May 2022 09:37:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to JOULAUD François <Francois.JOULAUD <at> radiofrance.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 29 May 2022 09:37:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: JOULAUD François <Francois.JOULAUD <at> radiofrance.com>
To: "guix-patches <at> gnu.org" <guix-patches <at> gnu.org>
Subject: [PATCH] gnu: Add go-github-com-google-go-jsonnet
Date: Sun, 29 May 2022 09:36:17 +0000
[Message part 1 (text/plain, inline)]
This adds the jsonnet command. I would like to add too the jsonnet-fmt
command and the Python bindings but I struggle to understand how to do
it. I begin with the easy part using guix import.

I found that #:unpack-path and #:import-path are unintuitive, there is
room for better interface here, or at least some documentation.

* gnu/packages/golang.scm (go-github-com-google-go-jsonnet): New variable.
* gnu/packages/golang.scm (go-sigs-k8s-io-yaml): New variable.

Signed-off-by: François Joulaud <francois.joulaud <at> radiofrance.com>
---
gnu/packages/golang.scm | 52 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 820e6b54ab..ad34bd345f 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9775,3 +9775,55 @@ (define-public go-github-com-go-chi-chi-v5
      "@code{go-github-com-go-chi-chi-v5} is an HTTP router that lets the user
decompose request handling into many smaller layers.")
     (license license:expat)))
+
+(define-public go-sigs-k8s-io-yaml
+  (package
+    (name "go-sigs-k8s-io-yaml")
+    (version "1.3.0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/kubernetes-sigs/yaml")
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32 "0qxs0ppqwqrfqs4aywyn1h28xh1qlj5ds4drmygaz1plrxj02dqn"))))
+    (build-system go-build-system)
+    (arguments '(#:import-path "sigs.k8s.io/yaml"))
+    (propagated-inputs
+      `(("go-gopkg-in-yaml-v2" ,go-gopkg-in-yaml-v2)
+        ("go-github-com-davecgh-go-spew" ,go-github-com-davecgh-go-spew)))
+    (home-page "https://sigs.k8s.io/yaml")
+    (synopsis "YAML marshaling and unmarshaling support for Go")
+    (description
+      "kubernetes-sigs/yaml is a permanent fork of
+@url{https://github.com/ghodss/yaml,ghodss/yaml}.")
+    (license (list license:expat license:bsd-3))))
+
+(define-public go-github-com-google-go-jsonnet
+  (package
+    (name "go-github-com-google-go-jsonnet")
+    (version "0.18.0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/google/go-jsonnet")
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32 "1dghqygag123zkgh2vrnq82cdag5z0p03v3489pwhs06r5g27wm3"))))
+    (build-system go-build-system)
+    (arguments '(#:import-path "github.com/google/go-jsonnet/cmd/jsonnet"
+                 #:unpack-path "github.com/google/go-jsonnet"))
+    (propagated-inputs
+      `(("go-sigs-k8s-io-yaml" ,go-sigs-k8s-io-yaml)
+        ("go-gopkg-in-yaml-v2" ,go-gopkg-in-yaml-v2)
+        ("go-github-com-sergi-go-diff" ,go-github-com-sergi-go-diff)
+        ("go-github-com-fatih-color" ,go-github-com-fatih-color)))
+    (home-page "https://github.com/google/go-jsonnet")
+    (synopsis "go-jsonnet")
+    (description
+      "Package jsonnet implements a parser and evaluator for jsonnet.")
+    (license license:asl2.0)))
--
2.36.1
[Message part 2 (text/html, inline)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Fri, 10 Jun 2022 21:04:02 GMT) Full text and rfc822 format available.

Notification sent to JOULAUD François <Francois.JOULAUD <at> radiofrance.com>:
bug acknowledged by developer. (Fri, 10 Jun 2022 21:04:02 GMT) Full text and rfc822 format available.

Message #10 received at 55701-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: JOULAUD François <Francois.JOULAUD <at> radiofrance.com>
Cc: 55701-done <at> debbugs.gnu.org
Subject: Re: bug#55701: [PATCH] gnu: Add go-github-com-google-go-jsonnet
Date: Fri, 10 Jun 2022 23:02:57 +0200
Hi François,

JOULAUD François <Francois.JOULAUD <at> radiofrance.com> skribis:

> This adds the jsonnet command. I would like to add too the jsonnet-fmt
> command and the Python bindings but I struggle to understand how to do
> it. I begin with the easy part using guix import.
>
> I found that #:unpack-path and #:import-path are unintuitive, there is
> room for better interface here, or at least some documentation.

Noted.  I’m not familiar with ‘go-build-system’; could you bring this up
on guix-devel <at> gnu.org?

> * gnu/packages/golang.scm (go-github-com-google-go-jsonnet): New variable.
> * gnu/packages/golang.scm (go-sigs-k8s-io-yaml): New variable.

I split it into two patches and improved descriptions, as per:

  https://guix.gnu.org/manual/devel/en/html_node/Submitting-Patches.html

Thank you!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 09 Jul 2022 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 290 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.