emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62059: closed ('guix style' loses comments)


From: GNU bug Tracking System
Subject: bug#62059: closed ('guix style' loses comments)
Date: Thu, 16 Mar 2023 22:06:01 +0000

Your message dated Thu, 16 Mar 2023 23:05:19 +0100
with message-id <87y1nw8i8w.fsf@gnu.org>
and subject line Re: bug#62059: 'guix style' loses comments
has caused the debbugs.gnu.org bug report #62059,
regarding 'guix style' loses comments
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
62059: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62059
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: guix style looses comments Date: Wed, 08 Mar 2023 17:20:38 -0500
Hello,

Consider this package:

--8<---------------cut here---------------start------------->8---
(define-public ruby-webrick
  (package
    (name "ruby-webrick")
    (version "1.8.1")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/ruby/webrick";)
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "1xb0mk3cghdir65nmj0mblprbf21blli7267b6yyvxclh307yp6s"))))
    (build-system ruby-build-system)
    (arguments (list #:phases #~(modify-phases %standard-phases
                                  (add-after 'extract-gemspec 
'delete-problematic-tests
                                    (lambda _
                                      ;; The httresponse tests fail for
                                      ;; unknown reasons (see:
                                      ;; 
https://github.com/ruby/webrick/issues/112).
                                      (delete-file 
"test/webrick/test_httpresponse.rb"))))))
    (home-page "https://github.com/ruby/webrick";)
    (synopsis "HTTP server toolkit")
    (description "WEBrick is an HTTP server toolkit that can be configured as an
HTTPS server, a proxy server, and a virtual-host server.")
    (license license:bsd-2)))
--8<---------------cut here---------------end--------------->8---

After running ./pre-inst-env guix style ruby-webrick, it produces:

--8<---------------cut here---------------start------------->8---
(define-public ruby-webrick
  (package
    (name "ruby-webrick")
    (version "1.8.1")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/ruby/webrick";)
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "1xb0mk3cghdir65nmj0mblprbf21blli7267b6yyvxclh307yp6s"))))
    (build-system ruby-build-system)
    (arguments
     (list #:phases #~(modify-phases %standard-phases
                        (add-after 'extract-gemspec 'delete-problematic-tests
                          (lambda _
                            (delete-file 
"test/webrick/test_httpresponse.rb"))))))
    (home-page "https://github.com/ruby/webrick";)
    (synopsis "HTTP server toolkit")
    (description
     "WEBrick is an HTTP server toolkit that can be configured as an
HTTPS server, a proxy server, and a virtual-host server.")
    (license license:bsd-2)))
--8<---------------cut here---------------end--------------->8---

I.e., it lost the comment in the phase.  It also causes the longest line
to be 82 chars, while it could have easily broken the line to make it
fit under 80.

-- 
Thanks,
Maxim



--- End Message ---
--- Begin Message --- Subject: Re: bug#62059: 'guix style' loses comments Date: Thu, 16 Mar 2023 23:05:19 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Hi,

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

>      (list #:phases #~(modify-phases %standard-phases
>                         (add-after 'extract-gemspec 'delete-problematic-tests
>                           (lambda _
>                             (delete-file 
> "test/webrick/test_httpresponse.rb"))))))
>     (home-page "https://github.com/ruby/webrick";)
>     (synopsis "HTTP server toolkit")
>     (description
>      "WEBrick is an HTTP server toolkit that can be configured as an
> HTTPS server, a proxy server, and a virtual-host server.")
>     (license license:bsd-2)))
>
> I.e., it lost the comment in the phase.

Fixed in 83128f00e9149f3c1bcd4450eb0ed3620a37149c.

> It also causes the longest line to be 82 chars, while it could have
> easily broken the line to make it fit under 80.

Hmm let’s investigate that separately.

Thanks,
Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]