From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id elQlMMFYDF+sQAAA0tVLHw (envelope-from ) for ; Mon, 13 Jul 2020 12:51:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8FizK8FYDF/6FwAA1q6Kng (envelope-from ) for ; Mon, 13 Jul 2020 12:51:13 +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 DBD8C940145 for ; Mon, 13 Jul 2020 12:51:12 +0000 (UTC) Received: from localhost ([::1]:52828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juxvK-0001j3-58 for larch@yhetil.org; Mon, 13 Jul 2020 08:51:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juxvC-0001hX-84 for bug-guix@gnu.org; Mon, 13 Jul 2020 08:51:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36220) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1juxvB-0003W9-Uf for bug-guix@gnu.org; Mon, 13 Jul 2020 08:51:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1juxvB-0006bv-SG for bug-guix@gnu.org; Mon, 13 Jul 2020 08:51:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42247: Channel news raise error on `guix pull` Resent-From: Bengt Richter Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 13 Jul 2020 12:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42247 X-GNU-PR-Package: guix X-GNU-PR-Keywords: notabug To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 42247-submit@debbugs.gnu.org id=B42247.159464464325386 (code B ref 42247); Mon, 13 Jul 2020 12:51:01 +0000 Received: (at 42247) by debbugs.gnu.org; 13 Jul 2020 12:50:43 +0000 Received: from localhost ([127.0.0.1]:47766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juxus-0006bO-UN for submit@debbugs.gnu.org; Mon, 13 Jul 2020 08:50:43 -0400 Received: from imta-35.everyone.net ([216.200.145.35]:45976 helo=imta-38.everyone.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juxuq-0006bD-HL for 42247@debbugs.gnu.org; Mon, 13 Jul 2020 08:50:41 -0400 Received: from pps.filterd (m0004961.ppops.net [127.0.0.1]) by imta-38.everyone.net (8.16.0.27/8.16.0.27) with SMTP id 06DCiA80008808; Mon, 13 Jul 2020 05:50:33 -0700 X-Eon-Originating-Account: IWVEaGaHCDqRDGLEoiPxuAMyBHoE50VBqW8C9xL_R90 X-Eon-Dm: m0116953.ppops.net Received: by m0116953.mta.everyone.net (EON-AUTHRELAY2 - 5a81c051) id m0116953.5ef25221.21815b; Mon, 13 Jul 2020 05:50:32 -0700 X-Eon-Sig: AQMHrIJfDFiYhpQIKgIAAAAD,99a6e2fc0102f6d37a84ccf2180cd601 X-Eip: SM04cQcEJc9zij2YYBSC9hkwdhTN_NoV4W1KZ5D-hJc Date: Mon, 13 Jul 2020 14:50:23 +0200 From: Bengt Richter Message-ID: <20200713125023.GA2937@LionPure> References: <875zaz2x5t.fsf@ambrevar.xyz> <87imew9vfk.fsf@gnu.org> <87mu46qurv.fsf@ambrevar.xyz> <875zaru2uc.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <875zaru2uc.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-07-13_11:2020-07-13, 2020-07-13 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1034 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2007130095 X-Spam-Score: 1.3 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 0.3 (/) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bengt Richter Cc: Pierre Neidhardt , 42247@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -0.51 X-TUID: F96K9iUKDrXd On +2020-07-13 12:27:39 +0200, Ludovic Courtès wrote: > Hi, > > Pierre Neidhardt skribis: > > > Ludovic Courtès writes: > > > >> This suggests that the ‘news.scm’ file of your channel is being picked > >> up and evaluated as if it were a module, which it’s not. > >> > >> The solution is to rename it to, say, ‘news.txt’, or to move the actual > >> modules to a sub-directory and specify that in ‘.guix-channel’ (info > >> "(guix) Channels"). > > > > Thanks for the hint, this works indeed! > > > > 1. Is there anything we can do to catch this error and output a more > > intelligible error message? > > I don’t think so: Guile is just doing its job and picking up .scm > files. > You are not saying that a file extension is used as hard type data when "Guile is just doing its job ..." are you?? (unless the producer of the filename is contracted to guarantee the extension semantics in guile's environment at the run-time in question ... but where is such policy documented, if so? (I don't mean looking for .go files newer than corresponding .scm, etc)) > > 2. I suggest we document this pitfall in the documentation. > > Yup, makes sense; would you like to send a patch? > > Thanks, > Ludo’. > > > -- Regards, Bengt Richter