[Bug 276219] sysutils/gh-md-toc: Update to 0.9.1
Date: Tue, 09 Jan 2024 12:53:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276219 Bug ID: 276219 Summary: sysutils/gh-md-toc: Update to 0.9.1 Product: Ports & Packages Version: Latest Hardware: Any URL: https://github.com/ekalinin/github-markdown-toc/releas es/tag/0.9.1 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: DtxdF@disroot.org Attachment #247543 maintainer-approval+ Flags: Created attachment 247543 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247543&action=edit gh-md-toc-0.9.1.patch Description: * Pet portfmt. * Add jq as runtime dependency. * Fix gh-md-toc: - Retrieving the README depends on the content of the repository and since it can change at any time, the script could break, as it did. Although scraping is still used as a method to get the README, it has only a small responsibility: to get the JSON with the repository information, so that it can be easily retrieved by sending a request like `https://raw.githubusercontent.com/<account>/<project>/<refName>/<readme>`. - Add the `--location` parameter to the curl command in the `gh_toc_load` function. Necessary for requests like `https://github.com/<account>/<project>/blob/<refName>`. - Add the `--fail` parameter to the curl command in the `gh_toc_load` function. Necessary to show errors correctly. ChangeLog: https://github.com/ekalinin/github-markdown-toc/releases/tag/0.9.1 QA: * portlint: OK (looks fine.) * testport: OK (poudriere: 14.0-RELEASE, amd64, DOCS tested) -- You are receiving this mail because: You are the assignee for the bug.