[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#47539] [PATCH 00/28] Add gh and dependencies
From: |
Xinglu Chen |
Subject: |
[bug#47539] [PATCH 00/28] Add gh and dependencies |
Date: |
Thu, 01 Apr 2021 20:16:11 +0200 |
On Thu, Apr 01 2021, Leo Prikler wrote:
> Am Donnerstag, den 01.04.2021, 20:05 +0200 schrieb Xinglu Chen:
>>
>> Thank you for the pointer, I managed to get it to work with the
>> following snippet:
>>
>> #+begin_src scheme
>> (add-after 'unpack 'remove-safeexec
>> (lambda* (#:key outputs #:allow-other-keys)
>> (let ((prefix-file (lambda (file)
>> (string-append "src/github.com/cli/cli/"
>> file))))
>> ;; 'github.com/cli/safeexec' is only used for Windows,
>> we
>> ;; replace it with the regular 'os/exec'. See
>> ;; <https://issues.guix.gnu.org/47539> for discussion.
>> (substitute* (map prefix-file
>> '("pkg/cmd/alias/expand/expand.go"
>> "script/build.go"))
>> (("github.com/cli/safeexec") "os/exec")
>> (("safeexec") "exec"))
>> ;; These files have already imported 'os/exec',
>> meaning that
>> ;; 'os/exec' would get imported twice, causing an
>> error.
>> ;; Instead, we just remove the
>> 'github.com/cli/safeexec'.
>> (substitute* (map prefix-file
>> '("cmd/gh/main.go"
>> "git/git.go"
>> "pkg/iostreams/iostreams.go"
>> "pkg/cmd/auth/shared/ssh_keys.go"
>> "pkg/cmd/pr/checkout/checkout.go"
>> "pkg/cmdutil/web_browser.go"
>> "pkg/surveyext/editor_manual.go"))
>> (("\"github.com/cli/safeexec\"") "")
>> (("safeexec") "exec")))))
>> #+end_src
> This should probably be implemented with directory excursions, but
> other than that if it works for you, then LGTM :)
Ah, I didn't know about that. Thanks for pointing this out. :)
- [bug#47539] [PATCH 16/28] gnu: Add go-github-com-gabriel-vasile-mimetype., (continued)
- [bug#47539] [PATCH 16/28] gnu: Add go-github-com-gabriel-vasile-mimetype., Xinglu Chen, 2021/04/01
- [bug#47539] [PATCH 28/28] gnu: Add gh., Xinglu Chen, 2021/04/01
- [bug#47539] [PATCH 00/28] Add gh and dependencies, Leo Prikler, 2021/04/01
- [bug#47539] [PATCH 00/28] Add gh and dependencies, Xinglu Chen, 2021/04/01
- [bug#47539] [PATCH 00/28] Add gh and dependencies, Leo Prikler, 2021/04/01
- [bug#47539] [PATCH 00/28] Add gh and dependencies, Xinglu Chen, 2021/04/01
- [bug#47539] [PATCH 00/28] Add gh and dependencies, Leo Prikler, 2021/04/01
- [bug#47539] [PATCH 00/28] Add gh and dependencies, Jack Hill, 2021/04/01
- [bug#47539] [PATCH 00/28] Add gh and dependencies, Xinglu Chen, 2021/04/01
- [bug#47539] [ SPAM? ] Re: [bug#47539] [PATCH 00/28] Add gh and dependencies, Leo Prikler, 2021/04/01
- [bug#47539] [PATCH 00/28] Add gh and dependencies,
Xinglu Chen <=
[bug#47539] [PATCH v2 00/26] Add github-cli and dependencies, Xinglu Chen, 2021/04/01
- [bug#47539] [PATCH v2 19/26] gnu: Add go-github-com-itchyny-gojq., Xinglu Chen, 2021/04/01
- [bug#47539] [PATCH v2 18/26] gnu: Add go-github-com-itchyny-timefmt-go., Xinglu Chen, 2021/04/01
- [bug#47539] [PATCH v2 21/26] gnu: Add go-github-com-rivo-uniseg., Xinglu Chen, 2021/04/01
- [bug#47539] [PATCH v2 23/26] gnu: Add go-gopkg-in-yaml-v3., Xinglu Chen, 2021/04/01
- [bug#47539] [PATCH v2 02/26] gnu: Add go-github-com-creack-pty., Xinglu Chen, 2021/04/01
- [bug#47539] [PATCH v2 03/26] gnu: Add go-github-com-kr-pty., Xinglu Chen, 2021/04/01
- [bug#47539] [PATCH v2 05/26] gnu: Add go-github-com-alecaivazis-survey-v2., Xinglu Chen, 2021/04/01
- [bug#47539] [PATCH v2 07/26] gnu: Add go-github-com-briandowns-spinner., Xinglu Chen, 2021/04/01
- [bug#47539] [PATCH v2 14/26] gnu: Add go-github-com-gabriel-vasile-mimetype., Xinglu Chen, 2021/04/01