From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YUhKGnGsX2HgDQAAgWs5BA (envelope-from ) for ; Fri, 08 Oct 2021 04:26:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IIVeFXGsX2E9SwAAbx9fmQ (envelope-from ) for ; Fri, 08 Oct 2021 02:26:57 +0000 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 A2CCC959B for ; Fri, 8 Oct 2021 04:26:56 +0200 (CEST) Received: from localhost ([::1]:49382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYfb5-0008O9-Mc for larch@yhetil.org; Thu, 07 Oct 2021 22:26:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYfap-0008Nd-OI for guix-devel@gnu.org; Thu, 07 Oct 2021 22:26:41 -0400 Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]:45635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYfan-00052b-1p; Thu, 07 Oct 2021 22:26:39 -0400 Received: by mail-qt1-x836.google.com with SMTP id r1so8218528qta.12; Thu, 07 Oct 2021 19:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=CNlYBnNPMTBRTxiKifRKugJyNzgIxpOiYWQq0Xex3mU=; b=ZXG4TJJOdaCsYr69H/4tC7KJag/8XeFo3ayDO7A2Jvt9qPA5Pgu4wP9hWXPRh6d+e6 lH+Py+TWLHyroE5g+U57rdv+u2ZKVxr7VKf7W9AdeUH1nF1yzE+J0XaXu1xb3OF+tjLd NLRkZchenzbaLCAL7vucSKxx8NAxpPI4GgBF/ZB5ed6iSu5iTGsQsManyesf1Ne3aUxb nJ225vhJ2uS6lki1tyyOsMnMtgCYu/KCQtUEb3e3N0MMezyQteuDJyp+1+yLvzT0x1R4 7gjDjw9lagG2KJJbvnBIDR3cWbIhzcwwEM0Z7ZdYOh+f5cRSei9vNsO5Y8wWB2nnnpIO rNfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=CNlYBnNPMTBRTxiKifRKugJyNzgIxpOiYWQq0Xex3mU=; b=qitTqJG5Ys7kMDYoek4jnxBpg5hLvCHc+/zfg92TJJB2e49jrPbcfjVZJtHoPjQWTS fsvJg739WrYnGrC+Y18exXQRjARN1M9yil27c9VSfX9jS25ThiDkSP1R2x+R8uQZEmRK BPqprvZgV9HExUUo8tcjES3kEBv8Ya/PGVm45X2p3YhAlrercIh6fBexPxsFy8e4kf/f r8pNZ00QPH05PGfOKw82o2f4S8OtBg5OuE8pKw2eTZocMvZbn3iEwyF94JvNGXQvjVYS uewhMsLrbTWwwbtOldSCoewmcW8xz+eXUx1RWJRWHP7FqkOyIUZGDxi5ZscoaeMP8ZTc EVPw== X-Gm-Message-State: AOAM531W5AK7QSTEaZfxKqkqmes1YTY5Tr6VBUocIW1Yddl3aAIDZSP0 BUB1A6aAh7hK2oRNqJfxYD4jNg+8EjU= X-Google-Smtp-Source: ABdhPJxyR9hY2Zjo1QWJ2tyu0R54ZGBm0TlnM8seFF4zqN5bu82zM2LYkQDMZn+PlrvaxPH7Q/ohPg== X-Received: by 2002:ac8:5752:: with SMTP id 18mr9470251qtx.203.1633659995358; Thu, 07 Oct 2021 19:26:35 -0700 (PDT) Received: from hurd (dsl-152-183.b2b2c.ca. [66.158.152.183]) by smtp.gmail.com with ESMTPSA id v3sm1024162qkd.20.2021.10.07.19.26.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 19:26:34 -0700 (PDT) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Dealing with interface deprecation References: <87r1d8amce.fsf@gnu.org> Date: Thu, 07 Oct 2021 22:26:33 -0400 In-Reply-To: <87r1d8amce.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Tue, 28 Sep 2021 14:58:09 +0200") Message-ID: <87y2742qw6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::836; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x836.google.com 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633660016; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CNlYBnNPMTBRTxiKifRKugJyNzgIxpOiYWQq0Xex3mU=; b=gyj+gMlaY9QaEmrFOk0Q2zZ/DG4GaVjHNZjAGLzNKtHi5Q3HiPAk/fTXe5Xp/SdtDdMGfk r1/LDtmSKFcO+vxc0y3fPcAfVr3SoMkVcOggSSmx53PikGEa90pozL7FNsYArhOF5YZHa8 pKYjKh7YJI6A+aXwblzOYrRxWW8gliwcrpfUwEIDaUSv6e6bv+qvAGcqt0olBffPZse9h6 WkGNNgf9I04bQIfZ82AqFoBlx4VOJQqwwTUqU/pcO+kDx1DLXeCy1nHd/bdn1JbCSYR5Q4 sEG/3rNDz2nMnoEYEiHElRrs6aMPGYyTak2qAKaGzasOSG3aFDqHrzqDGgUSHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633660016; a=rsa-sha256; cv=none; b=DH1PPHMTmGeFKU6WV9cDL50RkuJJ8kkTDdUhB+px0Q8r2fxs5XcPTSRDqsRdl1C2YUmymg 2/dWxVL3gVmDcczcS9pJsU0f5Q9DduzF63fuHxL1N5yWyzOYx5rndcVBI9fwY8TqlLcMly 72agkR5v9IjMoXkA/dcwvvY6j2du5Z36OHK4BfOaH2GWFhZbf5NOCGVkuh9dbwnrYh7ngM wRiypYEIXdsQEhUJDDx1dXkVwewysr7ki7P9wkgVyPY+C4zzHxUfla78zfEKjASEXBfpq1 wagZzFHbcHpD4b4VuSQGdIepjCXMtzCH6RPhVu9EeFe+BDdnrLc9XkhabDVYJw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZXG4TJJO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -1.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZXG4TJJO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: A2CCC959B X-Spam-Score: -1.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: qFdq1nAy2zX8 Hello! Ludovic Court=C3=A8s writes: > Hello Guix! > > In Guix, configuration is code, which is great! But that also means > users occasionally have to deal with things like =E2=80=9CAPI deprecation= =E2=80=9D, > which never sounds exciting, especially when all you want is to get your > system upgraded Right Now. > > So I think it=E2=80=99s important to be very careful in how we deal with = API > deprecation, in particular in Guix System (and in Guix Home once we=E2=80= =99ve > removed the =E2=80=9Ctechnology preview=E2=80=9D label). > > There were two examples where, with my =E2=80=9Cregular user=E2=80=9D hat= on (which I > particularly enjoy), I got deprecation messages that were not actionable > for me because they lacked source location info. This was addressed by > these changes: > > https://git.savannah.gnu.org/cgit/guix.git/commit?id=3De0bd47b4fd5eb009= f34004242e16b976e58756b0 > https://git.savannah.gnu.org/cgit/guix.git/commit?id=3Dbaf4272df2350a40= bfa198f5cdb42e707e32ad71 > > As you can see, providing good actionable messages for record field > deprecation is a bit of a craft, but hopefully that gives an idea of how > to get there; maybe we=E2=80=99ll eventually come up with a high-level wa= y to > express that. > > Packages may also be part of the =E2=80=9CAPI=E2=80=9D. On =E2=80=98core= -updates=E2=80=99, several TeX > Live packages were deprecated but still used because there wasn=E2=80=99t= any > warning. This is how I addressed it: > > https://git.savannah.gnu.org/cgit/guix.git/commit?id=3D3dc8052b51241fe7= 857059d3300dad3a0f9f68fd > > Thoughts? Tips and tricks? Wow! Thanks a lot for sharing these tips on the art of making better deprecation! I'll keep these commits bookmarked for the next time :-). Maxim