GNU bug report logs - #30924
[PATCH] Add cloud-foundry-cli.

Previous Next

Package: guix-patches;

Reported by: Christopher Baines <mail <at> cbaines.net>

Date: Sat, 24 Mar 2018 16:00:02 UTC

Severity: normal

Tags: moreinfo

Full log


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

From: Marius Bakke <mbakke <at> fastmail.com>
To: Christopher Baines <mail <at> cbaines.net>, 30924 <at> debbugs.gnu.org
Subject: Re: [bug#30924] [PATCH] gnu: Add cloud-foundry-cli.
Date: Mon, 26 Mar 2018 19:55:54 +0200
[Message part 1 (text/plain, inline)]
Christopher Baines <mail <at> cbaines.net> writes:

> * gnu/packages/cloud-foundry.scm: New file.

[...]

> +    (build-system go-build-system)
> +    (arguments
> +     '(#:import-path "code.cloudfoundry.org/cli"
> +       #:phases
> +       (modify-phases %standard-phases
> +         ;; This should be redundant once the vendor directory is removed from
> +         ;; this package
> +         (add-before 'reset-gzip-timestamps 'remove-readonly-gzip-files
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (for-each delete-file
> +                       (find-files
> +                        (assoc-ref outputs "out")
> +                        ".*\\.gz"))))

'for-each' has an unspecified return value, so please add #t here.

> +         (add-after 'install 'rename-binary
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (let ((out (assoc-ref outputs "out")))
> +               (rename-file (string-append out "/bin/cli")
> +                            (string-append out "/bin/cf"))))))))

Ditto for 'rename-file'.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 112 days ago.

Previous Next


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