GNU bug report logs - #65152
[PATCH] services: Modify cgit-configuration fields

Previous Next

Package: guix-patches;

Reported by: Thomas Albers <thomas <at> thomaslabs.org>

Date: Tue, 8 Aug 2023 16:38:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 65152 in the body.
You can then email your comments to 65152 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#65152; Package guix-patches. (Tue, 08 Aug 2023 16:38:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Albers <thomas <at> thomaslabs.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 08 Aug 2023 16:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thomas Albers <thomas <at> thomaslabs.org>
To: guix-patches <at> gnu.org
Cc: Thomas Albers <thomas <at> thomaslabs.org>
Subject: [PATCH] services: Modify cgit-configuration fields
Date: Tue,  8 Aug 2023 18:37:10 +0200
* gnu/services/cgit.scm (cgit-configuration)[root-readme]: Accept
'file-object' instead of only 'string'
---
 gnu/services/cgit.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/services/cgit.scm b/gnu/services/cgit.scm
index e33cb9e7db..684ab73f76 100644
--- a/gnu/services/cgit.scm
+++ b/gnu/services/cgit.scm
@@ -581,7 +581,7 @@ (define-configuration cgit-configuration
    (string "a fast webinterface for the git dscm")
    "Text printed below the heading on the repository index page.")
   (root-readme
-   (string "")
+   (file-object "")
    "The content of the file specified with this option will be included
 verbatim below the \"about\" link on the repository index page.")
   (root-title
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#65152; Package guix-patches. (Mon, 21 Aug 2023 17:23:02 GMT) Full text and rfc822 format available.

Message #8 received at 65152 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Thomas Albers <thomas <at> thomaslabs.org>
Cc: 65152 <at> debbugs.gnu.org
Subject: Re: bug#65152: [PATCH] services: Modify cgit-configuration fields
Date: Mon, 21 Aug 2023 19:22:18 +0200
Hi,

Thomas Albers <thomas <at> thomaslabs.org> skribis:

> * gnu/services/cgit.scm (cgit-configuration)[root-readme]: Accept
> 'file-object' instead of only 'string'

[...]

>    (root-readme
> -   (string "")
> +   (file-object "")
>     "The content of the file specified with this option will be included
>  verbatim below the \"about\" link on the repository index page.")

I think it’s a good idea but (1) we should preserve backward
compatibility for users passing a string (file contents), and (2) update
the docstrings and its copy in the manual.

Could you send a second version to address these?  Let me know if
anything’s unclear.

Thanks,
Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#65152; Package guix-patches. (Tue, 22 Aug 2023 09:19:01 GMT) Full text and rfc822 format available.

Message #11 received at 65152 <at> debbugs.gnu.org (full text, mbox):

From: Thomas Albers Raviola <thomas <at> thomaslabs.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 65152 <at> debbugs.gnu.org
Subject: Re: bug#65152: [PATCH] services: Modify cgit-configuration fields
Date: Tue, 22 Aug 2023 11:18:37 +0200
Hi,

in this context `file-object' is defined to be either a `file-like'
object or a `string'. As such this wouldn't break backward compatibility
but include a superset of possible values.

Also the original string is not used as the contents of the readme file
but as a file path.

However if you still think something should be changed I can send a
second patch addressing any further issues.

Greetings,
Thomas




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sat, 09 Sep 2023 10:33:02 GMT) Full text and rfc822 format available.

Notification sent to Thomas Albers <thomas <at> thomaslabs.org>:
bug acknowledged by developer. (Sat, 09 Sep 2023 10:33:02 GMT) Full text and rfc822 format available.

Message #16 received at 65152-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Thomas Albers Raviola <thomas <at> thomaslabs.org>
Cc: 65152-done <at> debbugs.gnu.org
Subject: Re: bug#65152: [PATCH] services: Modify cgit-configuration fields
Date: Sat, 09 Sep 2023 12:32:13 +0200
Hi,

Thomas Albers Raviola <thomas <at> thomaslabs.org> skribis:

> in this context `file-object' is defined to be either a `file-like'
> object or a `string'. As such this wouldn't break backward compatibility
> but include a superset of possible values.
>
> Also the original string is not used as the contents of the readme file
> but as a file path.

Oh right, my bad, I had misunderstood that.  So it’s all good, applied!

Eventually we should probably replace ‘file-object’ by ‘file-like’,
unless there’s a clear use case for passing out-of-band file names (a
use case would be passwords, but probably not ‘README’ files).

Thanks!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 07 Oct 2023 11:24:14 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 216 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.