Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Jan 2024 12:53:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 276219] sysutils/gh-md-toc: Update to 0.9.1
Message-ID:  <bug-276219-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276219

            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=3D247543&action=
=3Dedit
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 sinc=
e 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 easi=
ly
    retrieved by sending a request like
    `https://raw.githubusercontent.com/<account>/<project>/<refName>/<readm=
e>`.
- 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` funct=
ion.
  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)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276219-7788>