From patchwork Sat Jun 8 11:44:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 65251 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BEEDE27BBE2; Sat, 8 Jun 2024 12:46:27 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 0983427BBEC for ; Sat, 8 Jun 2024 12:46:25 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFuWA-0008Jk-52; Sat, 08 Jun 2024 07:45:54 -0400 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 ) id 1sFuW3-0008Gg-5v for guix-patches@gnu.org; Sat, 08 Jun 2024 07:45:47 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sFuW2-0006vc-2G for guix-patches@gnu.org; Sat, 08 Jun 2024 07:45:46 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFuWH-0007mH-PY for guix-patches@gnu.org; Sat, 08 Jun 2024 07:46:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71433] [PATCH 2/6] gnu: Add go-github-com-cenkalti-backoff-v4. Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 08 Jun 2024 11:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71433 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71433@debbugs.gnu.org Cc: "Artyom V. Poptsov" Received: via spool by 71433-submit@debbugs.gnu.org id=B71433.171784713929802 (code B ref 71433); Sat, 08 Jun 2024 11:46:01 +0000 Received: (at 71433) by debbugs.gnu.org; 8 Jun 2024 11:45:39 +0000 Received: from localhost ([127.0.0.1]:37628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFuVv-0007kV-3s for submit@debbugs.gnu.org; Sat, 08 Jun 2024 07:45:39 -0400 Received: from mail-lj1-f175.google.com ([209.85.208.175]:56504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFuVt-0007k5-F2 for 71433@debbugs.gnu.org; Sat, 08 Jun 2024 07:45:38 -0400 Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2ebd95f136bso2278731fa.0 for <71433@debbugs.gnu.org>; Sat, 08 Jun 2024 04:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717847055; x=1718451855; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Wh8umcP+cUyWVOuzh/CGBADKWuM7frcCTDtlsjkeH/4=; b=C/psbItxyRBf2KBAXmUNTJe+/Bq0AHlP1pAIL/Sw514l/0DnIFuX3HDLqDm683xhtW YhRBDdtAelTfuZ/eRdb/4UhtzXqS+b40z6ecaExYJR7H9AjbO1TezCywoLL1XkU9ZHEs GEcgM8TpeCnpGjxHWBG9YnGUmIhlqVB8pNKfMzs5WS8pP0EwsySBlLMDzgg9h1Ox5CGH qbDYoTI63fVNsE9n6sQy348NzA/j5NgchAFflAJcQrY5QITeY6iYMp2focDr6e/QD4PB 5Oy4VeLsLBDGi066wtMcSW53VQRJPF68JEvu+F93ZJrHWnukALUAz7l2fisSSzjoWDEU 2IPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717847055; x=1718451855; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Wh8umcP+cUyWVOuzh/CGBADKWuM7frcCTDtlsjkeH/4=; b=hN2fU3U6w3vuw0Myw3EFa1C+IOROd7Rtw1F32beX44fLj4sOwKb+ZjzTRtj+qJukWM Gk2YFAq/Hiu2fhRVAo1gSCEtywA0R6EAVYsDc6cONt4hrFQfyEcFr9HN19OzgZYPW68r 19iT//PUDuQz0RUvN9ARO0QT+vVPcxH4Kl5CG0ATk5ugSqtmMwEnCeqdjVHUQF5L8TBM y8UAXmxiJxQi+TjWtkIhsA5LMXFw8uocaW5+5VvhcnvP3nGwF3BV2NjtfhjVQOSpKm3I HHq589vYrZY3ejemy/0xQTWTklFAf8NwAxz3zwzCh/Kc7ugDEk5P0/H/AutCOK4btIlX gX6g== X-Gm-Message-State: AOJu0YzXAVVEtIA5gxF93AJX8iOL5v2jMh6qDKifCfMZq7FxTjhXaaIs FnuwJGhqLHtXMBcAd1p8R4iO+h8V+2fpkbpiYb/M0dkODBBJgBQXHWk4rw== X-Google-Smtp-Source: AGHT+IEQD8Blb46sTA4ENBREU/hs5GASe108JWIU4BMa1RNsCkRrUWyfDD+e5G93jvxj64IFfelmdQ== X-Received: by 2002:a05:651c:210b:b0:2ea:ca11:eef3 with SMTP id 38308e7fff4ca-2eadce15d0bmr37863531fa.4.1717847055014; Sat, 08 Jun 2024 04:44:15 -0700 (PDT) Received: from elephant.. ([95.79.11.228]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ead41dc1fasm8063901fa.136.2024.06.08.04.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 04:44:14 -0700 (PDT) From: "Artyom V. Poptsov" Date: Sat, 8 Jun 2024 14:44:03 +0300 Message-ID: X-Mailer: git-send-email 2.45.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 * gnu/packages/golang-web.scm (go-github-com-cenkalti-backoff-v4): New variable. Change-Id: I15ea42bdb1d3ad9a16433e5c6fa689650beb15ea --- gnu/packages/golang-web.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 68534ecc9a..367ecfce71 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -456,6 +456,35 @@ (define-public go-github-com-bep-golibsass "This package provides SCSS compiler support for Go applications.") (license license:expat))) +(define-public go-github-com-cenkalti-backoff-v4 + (package + (name "go-github-com-cenkalti-backoff-v4") + (version "4.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cenkalti/backoff") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pwr7fzxgngb073q98qrz1f90bkk3pljynif6jl5a6q6kcsn7xf1")))) + (build-system go-build-system) + (arguments + (list #:go go-1.21 + #:import-path "github.com/cenkalti/backoff/v4")) + (home-page "https://github.com/cenkalti/backoff") + (synopsis "The exponential backoff algorithm in Go") + (description "This is a Go port of the exponential backoff algorithm from +@url{https://github.com/google/google-http-java-client/blob/da1aa993e90285ec18579f1553339b00e19b3ab5/google-http-client/src/main/java/com/google/api/client/util/ExponentialBackOff.java, +Google's HTTP Client Library for Java}. + +@url{http://en.wikipedia.org/wiki/Exponential_backoff, Exponential backoff} is an +algorithm that uses feedback to multiplicatively decrease the rate of some process, +in order to gradually find an acceptable rate. The retries exponentially increase +and stop increasing when a certain threshold is met.") + (license license:expat))) + (define-public go-github-com-chris-ramon-douceur (package (name "go-github-com-chris-ramon-douceur")