From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id rnLUHnl/4mP4MQEAbAwnHQ (envelope-from ) for ; Tue, 07 Feb 2023 17:42:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qA7CHXl/4mOgZQEAauVa8A (envelope-from ) for ; Tue, 07 Feb 2023 17:42:33 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2EDE62D0C1 for ; Tue, 7 Feb 2023 17:42:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPR2j-0004TD-5A; Tue, 07 Feb 2023 11:42: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 ) id 1pPR2h-0004SV-Fy for guix-patches@gnu.org; Tue, 07 Feb 2023 11:42: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 ) id 1pPR2h-0001CK-7X for guix-patches@gnu.org; Tue, 07 Feb 2023 11:42:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPR2g-0001GB-Sp for guix-patches@gnu.org; Tue, 07 Feb 2023 11:42:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60904] [PATCH 05/25] gnu: Add go-github-com-google-safehtml. Resent-From: Katherine Cox-Buday Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 07 Feb 2023 16:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60904 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60904@debbugs.gnu.org Cc: paren@disroot.org X-Debbugs-Original-To: "( via Guix-patches" via X-Debbugs-Original-Cc: "\(" , 60904@debbugs.gnu.org Received: via spool by 60904-submit@debbugs.gnu.org id=B60904.16757880794761 (code B ref 60904); Tue, 07 Feb 2023 16:42:02 +0000 Received: (at 60904) by debbugs.gnu.org; 7 Feb 2023 16:41:19 +0000 Received: from localhost ([127.0.0.1]:53867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPR1y-0001Ej-K2 for submit@debbugs.gnu.org; Tue, 07 Feb 2023 11:41:18 -0500 Received: from mail-io1-f53.google.com ([209.85.166.53]:38642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPR1v-0001EF-3I for 60904@debbugs.gnu.org; Tue, 07 Feb 2023 11:41:15 -0500 Received: by mail-io1-f53.google.com with SMTP id r6so5873603ioj.5 for <60904@debbugs.gnu.org>; Tue, 07 Feb 2023 08:41:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=rnCczow9wlTtOCf16xx0lrvCg7GNCaW4l3FUwOHpf10=; b=jPR7R5vMG/aSOCKcEPXSFeN/J1yyS7wDq6HCDRRYBoUMFNh0N59kVM4BnwTKLqGdT4 gZjqF49pskQaskMv3zGeDTcN3JJVeNuIsXR6jr5ahi5/thYKbE7i/imas0L3aPt1jBbM 5QjDfcV5YBP1qttscqaZnrtztrY3wGgja7DWGqbcOkDCV0L6aCvm0A46WL6ip+Bsr0ml YBoSC/RXDdJSEldXL5LVFgFNEFJYGZj95zmJG9N87h9nU3g2oDgN3O7POzShjsIW1sSS Rujph4OP3/7R3rYCSBF083m0CF212UnD3PQ8e2d0vdi9ZwwBZxoGqZIquKP2tshLebHE Y3Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rnCczow9wlTtOCf16xx0lrvCg7GNCaW4l3FUwOHpf10=; b=uVscO3Hy90SsJB/X+idhXQAGH+vn81i1X6IRj7glpkVrfZQQYgLCTflPdwJBoWcnVS cRilMU9A4arVjX30k3ovXxKnm0FtsmR7geryHyl4wk6ilvFKe0za8AvOB9U3VsdYaMvJ 1XDQlvdSYWKuaxNEwS21nJ+G0ZWjrN9wwq6Gd3F/qO3yS6Vm2H+tOB07zD6ZiRL4M7C/ JUQ0PqhHo0NCIVyNjTBEDr+Ykk4NSYZ45+Xz0PToVDCc1fNVjIj1BYmXDE0bOxKMtbd2 fjFBBuVeVwHWWdrQ+gbJa70egxZMvDljlWtqneroD6LoSM/+cX1QOqDLPxhvHDh+Zg8z UCsw== X-Gm-Message-State: AO0yUKXA19Agj4juAYJu3lF5y5v1aUcOKj6zvG/Ek8yIYW4/9wWDuIUL I4pDkISn8qvv9kFBGwiCN/A= X-Google-Smtp-Source: AK7set93kUgyiW+5E60lvjLb/Qq4vru67DEtxc2Ea0gh0FsgiJAH5/MLWroGNzbQULMxnLznG0SYfw== X-Received: by 2002:a6b:d31a:0:b0:71e:779:a43b with SMTP id s26-20020a6bd31a000000b0071e0779a43bmr3125278iob.14.1675788069364; Tue, 07 Feb 2023 08:41:09 -0800 (PST) Received: from washu-v4 (c-174-51-139-101.hsd1.co.comcast.net. [174.51.139.101]) by smtp.gmail.com with ESMTPSA id r6-20020a922a06000000b0031093e9c7fasm4225646ile.85.2023.02.07.08.41.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 08:41:08 -0800 (PST) From: Katherine Cox-Buday References: <20230118014510.19320-1-cox.katherine.e@gmail.com> <20230118014510.19320-6-cox.katherine.e@gmail.com> Date: Tue, 07 Feb 2023 09:41:08 -0700 In-Reply-To: (guix-patches@gnu.org's message of "Mon, 06 Feb 2023 22:04:50 +0000") Message-ID: <87r0v1xwbf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jPR7R5vM; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675788153; a=rsa-sha256; cv=none; b=KkK3PE09O8sD6N09eZM+Wfjg/nK+OPk2RXPkvjZgm5C3YXQYcspReVzHcIKR4VRAV4qFQs flR7LGgQaBdjuwd4F05PJXIFOhbaAugGSBHBONofVToTGURtFtkgG1uKQ62CXcIHx5Z2WJ M95LulAr6qOhyhjFMWDihMp6vwBMYFlimito1u+RKj4imUBK+eggqKq+GzBnM7HUy1CAjh /Knwis7nQFa5bOe0eqPa2+oaMKnCDbpHYC5OAZlt6JpkABbOYQekuF8Z5Z3Abq0IoeP43P AexeYqQ1PTIQ48wuHtBJTyVVAh4y0SDJi2s9D+ZW3NAY0djuwWulhuiRSSbFgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675788153; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=rnCczow9wlTtOCf16xx0lrvCg7GNCaW4l3FUwOHpf10=; b=ZFMSgqnDBa2TuVQIbqWKEG+0oEHFcmOPuGqQIgtL3eCc11nhjxam3qkgn6uuynQ4JPBOhW yewtotj+pGxEMy0FG/s/RJalrZjCq1caYVjQ6aMns10lWOgypYFDRgejDAIIjlYGijlLiA FDO6SYNa56p2OLgcgUi5mCjRlp6NkgRKPpqy1iK7YlManqA703PeMbwMyg7nMW45lxVBfS 8QkeZCJg+j+afR8B0X1KHZ4UueIhGLW/0ufdfXxYD6sq6PB/4UgZvzcjxkz+bGWHKt272J Uub4A8ZJMcrtHx7p+Q1Vw++Nvl9Du/LnokxPNd2p+I1XSGwkbDP+k4ucrO6Cwg== X-Migadu-Queue-Id: 2EDE62D0C1 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jPR7R5vM; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-Migadu-Spam-Score: -2.49 X-Spam-Score: -2.49 X-TUID: B1y1bIN87fC2 "( via Guix-patches" via writes: > * gnu/packages/golang.scm (go-github-com-google-safehtml): New variable. > >> --- a/gnu/packages/golang.scm >> +++ b/gnu/packages/golang.scm > >> @@ -10921,6 +10921,31 @@ (define-public go-github-com-google-go-jsonnet > >> + (propagated-inputs `(("go-golang-org-x-text" ,go-golang-org-x-text))) > > Please use new-style inputs. Ugh, +1, and sorry I missed this. I don't know why the importer doesn't do this by default yet. I suppose that's another patch that needs to happen. I also don't know why `guix style` and `guix lint` didn't catch this. >> + (synopsis "Safe HTML for Go") > > (synopsis "Go type for storing HTML data") (see other response, wondering if we should take upstream synopses or not) >> + (description >> + "Package safehtml provides immutable string-like types which represent values >> +that are guaranteed to be safe, by construction or by escaping or sanitization, >> +to use in various HTML contexts and with various DOM APIs.") > > (description > "This package provides a Go library for storing HTML data as an immutable string-like > value.") I disagree with this suggestion: the extra context about construction or escaping takes me from "why would I want to store HTML data in a struct", to, "oh this is a way to preclude passing around invalid/unsafe HTML around". -- Katherine