Message ID | cover.1677883649.git.th.ieong@free.fr |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C622016D3A; Fri, 3 Mar 2023 22:58:24 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1AD6B16D2F for <patchwork@mira.cbaines.net>; Fri, 3 Mar 2023 22:58:23 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1pYELl-0000UC-L1; Fri, 03 Mar 2023 17:58:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1pYELj-0000Tq-Ea for guix-patches@gnu.org; Fri, 03 Mar 2023 17:58:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1pYELi-000724-MM for guix-patches@gnu.org; Fri, 03 Mar 2023 17:58:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1pYELi-0000sL-B9 for guix-patches@gnu.org; Fri, 03 Mar 2023 17:58:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61946] [PATCH 0/6] gnu: golang: Add minify Resent-From: Thomas Ieong <th.ieong@free.fr> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 Mar 2023 22:58:02 +0000 Resent-Message-ID: <handler.61946.B.16778842293279@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61946 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61946@debbugs.gnu.org Cc: Thomas Ieong <th.ieong@free.fr> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16778842293279 (code B ref -1); Fri, 03 Mar 2023 22:58:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Mar 2023 22:57:09 +0000 Received: from localhost ([127.0.0.1]:34127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1pYEKq-0000qp-RJ for submit@debbugs.gnu.org; Fri, 03 Mar 2023 17:57:09 -0500 Received: from lists.gnu.org ([209.51.188.17]:49960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <th.ieong@free.fr>) id 1pYEKo-0000qh-Aj for submit@debbugs.gnu.org; Fri, 03 Mar 2023 17:57:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <th.ieong@free.fr>) id 1pYEKo-0000RR-1N for guix-patches@gnu.org; Fri, 03 Mar 2023 17:57:06 -0500 Received: from smtp6-g21.free.fr ([212.27.42.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <th.ieong@free.fr>) id 1pYEKm-0006qu-3Y for guix-patches@gnu.org; Fri, 03 Mar 2023 17:57:05 -0500 Received: from localhost.localdomain (unknown [91.169.131.141]) (Authenticated sender: th.ieong@free.fr) by smtp6-g21.free.fr (Postfix) with ESMTPSA id 78664780306; Fri, 3 Mar 2023 23:56:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1677884219; bh=HzV7uE/tD8AysjW3i87vOY46ui9D7oOKOoNIiCsBycc=; h=From:To:Cc:Subject:Date:From; b=OTuuH1o+53Tt1NSnUWvgS+va5TsqD54+AS3dSrJcYsi/N6dKNjxxD00G2LGfNpPyG x8j9lxDopT6T8QEY8TzIc4qD0saWdMVvFbQM5dxubZEX9Jv9cyaCnQc34gdoiHGEf1 R9prLxYc+rPLbxpY6XYIHBZprY3C1WwbpCNI6JQTTMoWQrO8v1gKSp/yvWCqkO0z0C 1S/H8SqnUh/YEcypQq9pIi3YJ7gZIbtVhjjk688ok+eeuGfG3ossFYDTAi9MrDmJRp NLLv5zl0z2rlfHdzohw/QBvvlYh1ybCxJ82R4L2hWiqXRTnvFaNgePPUIut5Aq6b9X O+yZGYnkNAbTw== From: Thomas Ieong <th.ieong@free.fr> Date: Fri, 3 Mar 2023 23:55:27 +0100 Message-Id: <cover.1677883649.git.th.ieong@free.fr> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.27.42.6; envelope-from=th.ieong@free.fr; helo=smtp6-g21.free.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
gnu: golang: Add minify
|
|
Message
Thomas Ieong
March 3, 2023, 10:55 p.m. UTC
Hello there! This is a patch series to add the golang minify package, a golang dependency needed for sourcehut. Thomas Ieong (6): gnu: Add go-github-com-djherbis-atime. gnu: Add go-github-com-matryer-try. gnu: Add go-github-com-tdewolff-parse-v2. gnu: Add go-github-com-tdewolff-test. gnu: Add go-github-com-tdewolff-minify-v2. gnu: Add minify. gnu/packages/golang.scm | 143 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) base-commit: 73cb232442a50aa00104ad739db93f44df9de073
Comments
Hi, I forgot to check for generated files in the go packages. I did just that and there is indeed one file hash.go that is generated in the parse and minify package. Taking care of this and resending later.
Hi Thomas, > I forgot to check for generated files in the go packages. > I did just that and there is indeed one file hash.go that is generated > in the parse and minify package. > > Taking care of this and resending later. go-github-com-tdewolff-minify-v2 has been available in Guix for a while (but not the minify command and its dependency). I have sent a patchset [1] to generate hash.go at build time. Can you update the series to base on it and current Guix? And I think dependencies not added to go-github-com-tdewolff-minify-v2 are only required by minify command, so there's no need to touch definition of the former, inherit and modify is sufficient. What do you think? Thanks [1]: <https://issues.guix.gnu.org/65204>
Hi Thomas and Hilton, I've tried to resolved all highlights which Hilton pointed out and from some investigation I've left with 3 pushed patches. - present [3/3] - [X] go-github-com-tdewolff-parse-v2 - [X] go-github-com-tdewolff-test - [X] go-github-com-tdewolff-minify-v2 - added to golang-xyz.scm [2/2] - [X] go-github-com-djherbis-atime - [X] go-github-com-matryer-try And the minify looks like this with inherit and modification: --8<---------------cut here---------------start------------->8--- (define-public minify (package (inherit go-github-com-tdewolff-minify-v2) (name "minify") (arguments (substitute-keyword-arguments (package-arguments go-github-com-tdewolff-minify-v2) ((#:install-source? _ #t) #f) ((#:import-path _ "github.com/tdewolff/minify/v2") "github.com/tdewolff/minify/cmd/minify"))) (inputs (list go-github-com-djherbis-atime go-github-com-dustin-go-humanize go-github-com-fsnotify-fsnotify go-github-com-matryer-try go-github-com-spf13-pflag)))) --8<---------------cut here---------------end--------------->8--- Maxim or Ricardo, Pinging you here as following, I've built it few times locally and everything passed just fine, for some reason CI feel bad. https://ci.guix.gnu.org/eval/1086875 Thanks, Oleg
Hi Sharlatan, On Wed, 31 Jan 2024 07:17:29 +0800, Sharlatan Hellseher wrote: > > [1 <text/plain (quoted-printable)>] > > Hi Thomas and Hilton, > > I've tried to resolved all highlights which Hilton pointed out and from > some investigation I've left with 3 pushed patches. > > - present [3/3] > - [X] go-github-com-tdewolff-parse-v2 > - [X] go-github-com-tdewolff-test > - [X] go-github-com-tdewolff-minify-v2 > > - added to golang-xyz.scm [2/2] > - [X] go-github-com-djherbis-atime > - [X] go-github-com-matryer-try > > And the minify looks like this with inherit and modification: > > --8<---------------cut here---------------start------------->8--- > (define-public minify > (package > (inherit go-github-com-tdewolff-minify-v2) > (name "minify") > (arguments > (substitute-keyword-arguments > (package-arguments go-github-com-tdewolff-minify-v2) > ((#:install-source? _ #t) #f) > ((#:import-path _ "github.com/tdewolff/minify/v2") > "github.com/tdewolff/minify/cmd/minify"))) I think there's no need to supply a default value to #:import-path since all Go packages should have it in their arguments list. > (inputs > (list go-github-com-djherbis-atime > go-github-com-dustin-go-humanize > go-github-com-fsnotify-fsnotify > go-github-com-matryer-try > go-github-com-spf13-pflag)))) > --8<---------------cut here---------------end--------------->8--- And we can avoid the inherited propagated-inputs. I have adjusted the definition to the following, does this look good to you? --8<---------------cut here---------------start------------->8--- (define-public minify (let ((base go-github-com-tdewolff-minify-v2)) (package (inherit base) (name "minify") (arguments (substitute-keyword-arguments (package-arguments base) ((#:install-source? _ #t) #f) ((#:import-path _) "github.com/tdewolff/minify/cmd/minify"))) (inputs (modify-inputs (package-propagated-inputs base) (prepend go-github-com-djherbis-atime go-github-com-dustin-go-humanize go-github-com-fsnotify-fsnotify go-github-com-matryer-try go-github-com-spf13-pflag))) (propagated-inputs '())))) --8<---------------cut here---------------end--------------->8--- Thanks
Hi Hilton, Base on suggestions from <https://issues.guix.gnu.org/68835> I've moved minifry into golang-web and renamed the package with manner proposed in <https://issues.guix.gnu.org/68763>. I image there would be a large verity of packages with name 'minify' in the future :-). There is alsoy Python binding we may pack as well <https://pypi.org/project/tdewolff-minify/> Pushed to go-minify as df65af45b5f2cc76ce813ca91fab9054fd807bba to master. Thanks, Oleg