From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWK0n-0007Ig-J3 for guix-patches@gnu.org; Mon, 10 Dec 2018 06:46:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWK0g-0003Fs-A4 for guix-patches@gnu.org; Mon, 10 Dec 2018 06:46:09 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:36524) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gWK0g-0003FW-5t for guix-patches@gnu.org; Mon, 10 Dec 2018 06:46:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gWK0f-0006ml-Vd for guix-patches@gnu.org; Mon, 10 Dec 2018 06:46:02 -0500 Subject: [bug#33575] [PATCH] guix: lint: Add checker to check if inputs are sorted. Resent-Message-ID: From: iyzsong@member.fsf.org (=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?=) References: <20181202074210.31361-1-arunisaac@systemreboot.net> <87sgz8ekvk.fsf@member.fsf.org> <87efaql3hy.fsf@gmail.com> Date: Mon, 10 Dec 2018 19:45:24 +0800 In-Reply-To: <87efaql3hy.fsf@gmail.com> (Maxim Cournoyer's message of "Sun, 09 Dec 2018 17:49:45 -0500") Message-ID: <875zw1mwq3.fsf@member.fsf.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Maxim Cournoyer Cc: 33575@debbugs.gnu.org Maxim Cournoyer writes: > Hi, > > Arun Isaac writes: > >>> If they are sorted, I have to add comment for each test input: >>> >>> `(("aspell-dict-en", aspecll-dict-en) ; for test >>> ("glib" ,glib "bin") >>> ("pkg-config" ,pkg-config) >>> ("xmllint" ,libxml2) >>> ("xorg-server" ,xorg-server)) ; for test >>> >>> Which will be a little annoying... >> >> I too find this convincing. It's not a good idea to enforce sorted >> inputs all the time. If there is sufficient consensus, we can close this >> bug report. > > Maybe our test inputs should have their own field? This would make their > raison d'=C3=AAtre explicit and remove the need of using comments. Yeah, something like: (package ... (inputs ...) (test:inputs ...) (test:native-inputs ...)) If we plan to support build packages with tests disabled, this would be the way to go. And due to how build works in guix, if tests are disabled, it would be considered as a different derivation/package, so the main use case may be: - I disable substitute servers to build all packages from sources locally. - I want to disable tests for some packages as they are too slow... I don't have this use case now, and seperate package inputs will be a big change, so I think the current way is totally ok.