diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-03-21 23:53:21 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-04-09 22:41:31 -0400 |
commit | 6aee902eaf9e38d5f41f568ef787fa0cc5203318 (patch) | |
tree | 706c5c64d6a3796a85bef9c99e0d80126408ef2f /guix/build/python-build-system.scm | |
parent | 2446a112dfb79e851449b832006c1160bf818504 (diff) |
import: go: Improve synopsis and description parsing.
* guix/import/go.scm (%strict-tokenizer?): Set parameter to #t.
(go-path-escape): Redefine to prevent inlining.
(http-get*): Replace by ...
(http-fetch*): this ...
(json-fetch*): New procedure.
(go.pkg.dev-info): Use http-fetch*.
(go-package-licenses): Rewrite in terms of go.pkg.dev-info.
(go-package-description): Likewise.
(go-package-synopsis): Likewise.
(fetch-go.mod): Use the memoized http-fetch*.
(parse-go.mod): Adjust to receive content as a string.
(fetch-module-meta-data): Adjust to use http-fetch*.
(go-module->guix-package): Adjust to the modified fetch-go.mod return value.
[inputs]: Use propagated inputs, which is the most common situations for Go
libraries.
[description]: Beautify description.
[licenses]: Do no check for #f. The result of the license parsing is always a
list.
* tests/go.scm: Adjust following above changes.
Diffstat (limited to 'guix/build/python-build-system.scm')
0 files changed, 0 insertions, 0 deletions