unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: Martin Becze <mjbecze@riseup.net>
Cc: 44969@debbugs.gnu.org
Subject: [bug#44969] [PATCH 2/7] gnu: Added go-github-com-felixge-httpsnoop.
Date: Tue, 08 Dec 2020 09:01:54 +0000	[thread overview]
Message-ID: <87r1o0iscd.fsf@cbaines.net> (raw)
In-Reply-To: <20201130202408.27437-2-mjbecze@riseup.net>

[-- Attachment #1: Type: text/plain, Size: 2253 bytes --]


Martin Becze <mjbecze@riseup.net> writes:

> * gnu/packages/golang.scm (go-github-com-felixge-httpsnoop): New variable.

So, the commit message should say Add rather than Added. This is both
for consistency, and because it makes more sense for commits to say what
they will do when applied, rather than reading like something's already
happened.

> ---
>  gnu/packages/golang.scm | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
>
> diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
> index fed32d65ec..e72d7026de 100644
> --- a/gnu/packages/golang.scm
> +++ b/gnu/packages/golang.scm
> @@ -22,6 +22,7 @@
>  ;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
>  ;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
>  ;;; Copyright © 2020 raingloom <raingloom@riseup.net>
> +;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -6039,3 +6040,27 @@ JSON data to the machine.")
>  systems can import this package to enable running programs as services without
>  modifying them.")
>      (license license:zlib)))
> +
> +(define-public go-github-com-felixge-httpsnoop
> +  (package
> +    (name "go-github-com-felixge-httpsnoop")
> +    (version "1.0.1")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/felixge/httpsnoop")
> +             (commit (string-append "v" version))))
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32
> +         "0ncd8lar5zxiwjhsp315s4hsl4bhnm271h49jhyxc66r5yffgmac"))))
> +    (build-system go-build-system)
> +    (arguments
> +     '(#:import-path "github.com/felixge/httpsnoop"))
> +    (home-page "https://github.com/felixge/httpsnoop/")
> +    (synopsis "Capture http related metric")
> +    (description "Httpsnoop provides an easy way to capture http
> +related metrics (i.e. response time, bytes written, and http status
> + code) from your application's http.Handlers.")
> +    (license license:expat)))

Adding packages at the bottom of modules is something to try and
avoid. When other patches do the same thing, it causes merge conflicts.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

  reply	other threads:[~2020-12-08  9:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-30 20:17 [bug#44969] [PATCH 0/7] Update trezord to 2.0.30 Martin Becze
2020-11-30 20:24 ` [bug#44969] [PATCH 1/7] gnu: go-github-com-gorilla-mux: Update to 1.8.0 Martin Becze
2020-11-30 20:24   ` [bug#44969] [PATCH 2/7] gnu: Added go-github-com-felixge-httpsnoop Martin Becze
2020-12-08  9:01     ` Christopher Baines [this message]
2020-11-30 20:24   ` [bug#44969] [PATCH 3/7] gnu: Added go-github-com-gorilla-handlers Martin Becze
2020-11-30 20:24   ` [bug#44969] [PATCH 4/7] gnu: Added go-github-com-gorilla-securecookie Martin Becze
2020-11-30 20:24   ` [bug#44969] [PATCH 5/7] gnu: Added go-github-com-gorilla-csrf Martin Becze
2020-11-30 20:24   ` [bug#44969] [PATCH 6/7] gnu: Added go-gopkg-in-natefinch-lumberjack.v2 Martin Becze
2020-11-30 20:24   ` [bug#44969] [PATCH 7/7] gnu: trezord: Updated to 2.0.30 Martin Becze
2020-12-08  8:59   ` [bug#44969] [PATCH 1/7] gnu: go-github-com-gorilla-mux: Update to 1.8.0 Christopher Baines
2020-12-08  8:55 ` bug#44969: [PATCH 0/7] Update trezord to 2.0.30 Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r1o0iscd.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=44969@debbugs.gnu.org \
    --cc=mjbecze@riseup.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).