Bug 2010367 - Review Request: gh - GitHub's official command line tool
Summary: Review Request: gh - GitHub's official command line tool
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Alejandro Sáez Morollón
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1803302 (view as bug list)
Depends On: 2009418 2009419 2009487 2009494 2009496 2009498 2009520 2009526 2029331 2029336
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-04 14:02 UTC by Mikel Olasagasti Uranga
Modified: 2021-12-20 23:12 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-20 23:12:22 UTC
Type: ---
Embargoed:
asm: fedora-review+


Attachments (Terms of Use)

Description Mikel Olasagasti Uranga 2021-10-04 14:02:09 UTC
Spec URL: https://mikel.olasagasti.info/tmp/fedora/gh.spec
SRPM URL: https://mikel.olasagasti.info/tmp/fedora/gh-2.0.0-1.fc34.src.rpm
Description: GitHub's official command line tool
Fedora Account System Username: mikelo2

Comment 1 Maxwell G 2021-12-05 04:18:14 UTC
Thank you for taking this on! I am also interested in seeing gh packaged in Fedora. I approved one of the dependencies and left comments on two of the others. It looks like this ticket supersedes https://bugzilla.redhat.com/show_bug.cgi?id=1803302. If that's the case, can you mark that ticket as CLOSED and leave a comment pointing to this one?

Maxwell

Comment 3 Mikel Olasagasti Uranga 2021-12-06 09:25:07 UTC
*** Bug 1803302 has been marked as a duplicate of this bug. ***

Comment 4 Maxwell G 2021-12-12 06:00:00 UTC
I have a lot going on right now. I will do my best to get on this ASAP. Any help from others is also appreciated.

Comment 5 Alejandro Sáez Morollón 2021-12-16 16:39:39 UTC
LGTM, although there's a typo in the description.


Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated


===== MUST items =====

Generic:
[X]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
     Note: Using prebuilt packages
[X]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[X]: License field in the package spec file matches the actual license.
     Note: There is no build directory. Running licensecheck on vanilla
     upstream sources. Licenses found: "Unknown or generated", "*No
     copyright* MIT License", "MIT License". 527 files have unknown
     license. They are generated and tests.
[X]: License file installed when any subpackage combination is installed.
[X]: %build honors applicable compiler flags or justifies otherwise.
[X]: Package contains no bundled libraries without FPC exception.
[X]: Changelog in prescribed format.
[X]: Sources contain only permissible code or content.
[X]: Package contains desktop file if it is a GUI application.
[X]: Development files must be in a -devel package
[X]: Package uses nothing in %doc for runtime.
[X]: Package consistently uses macros (instead of hard-coded directory
     names).
[X]: Package is named according to the Package Naming Guidelines.
[X]: Package does not generate any conflict.
[X]: Package obeys FHS, except libexecdir and /usr/target.
[X]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[X]: Requires correct, justified where necessary.
[X]: Spec file is legible and written in American English.
[X]: Package contains systemd file(s) if in need.
[X]: Useful -debuginfo package or justification otherwise.
[X]: Package is not known to require an ExcludeArch tag.
[X]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 20480 bytes in 2 files.
[X]: Package complies to the Packaging Guidelines
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: If (and only if) the source package includes the text of the
     license(s) in its own file, then that file, containing the text of the
     license(s) for the package is included in %license.
[x]: Package requires other packages for directories it uses.
[x]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package must not depend on deprecated() packages.
[x]: Package use %makeinstall only when make install DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package does not use a name that already exists.
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as
     provided in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Packages must not store files under /srv, /opt or /usr/local

===== SHOULD items =====

Generic:
[X]: Reviewer should test that the package builds in mock.
[X]: It includes license text(s) as a separate files.
[X]: Final provides and requires are sane (see attachments).
[X]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in golang-
     github-cli-devel
[X]: Package functions as described.
[X]: Latest version is packaged.
[X]: Package does not include license text files separate from upstream.
[X]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[X]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[X]: Package should compile and build into binary rpms on all supported
     architectures.
[X]: %check is present and all tests pass.
[X]: Packages should try to preserve timestamps of original installed
     files.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== EXTRA items =====

Generic:
[x]: Rpmlint is run on debuginfo package(s).
     Note: No rpmlint messages.
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.


Rpmlint
-------
Checking: gh-2.3.0-1.fc36.x86_64.rpm
          golang-github-cli-devel-2.3.0-1.fc36.noarch.rpm
          gh-2.3.0-1.fc36.src.rpm
gh.x86_64: W: no-manual-page-for-binary gh
golang-github-cli-devel.noarch: W: hidden-file-or-dir /usr/share/gocode/src/github.com/cli/cli/.goipath
gh.src:84: W: macro-in-%changelog %autochangelog
3 packages and 0 specfiles checked; 0 errors, 3 warnings.




Rpmlint (debuginfo)
-------------------
Checking: gh-debuginfo-2.3.0-1.fc36.x86_64.rpm
1 packages and 0 specfiles checked; 0 errors, 0 warnings.





Rpmlint (installed packages)
----------------------------
Cannot parse rpmlint output:


Source checksums
----------------
https://github.com/cli/cli/archive/v2.3.0/cli-2.3.0.tar.gz :
  CHECKSUM(SHA256) this package     : 56bcf353adc17c386377ffcdfc980cbaff36123a1c1132ba09c3c51a7d1c9b82
  CHECKSUM(SHA256) upstream package : 56bcf353adc17c386377ffcdfc980cbaff36123a1c1132ba09c3c51a7d1c9b82


Requires
--------
gh (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)

golang-github-cli-devel (rpmlib, GLIBC filtered):
    go-filesystem
    golang(github.com/AlecAivazis/survey/v2)
    golang(github.com/AlecAivazis/survey/v2/core)
    golang(github.com/AlecAivazis/survey/v2/terminal)
    golang(github.com/MakeNowJust/heredoc)
    golang(github.com/briandowns/spinner)
    golang(github.com/charmbracelet/glamour)
    golang(github.com/cli/browser)
    golang(github.com/cli/oauth)
    golang(github.com/cli/safeexec)
    golang(github.com/cli/shurcooL-graphql)
    golang(github.com/cpuguy83/go-md2man/v2/md2man)
    golang(github.com/gabriel-vasile/mimetype)
    golang(github.com/google/shlex)
    golang(github.com/gorilla/websocket)
    golang(github.com/hashicorp/go-version)
    golang(github.com/henvic/httpretty)
    golang(github.com/itchyny/gojq)
    golang(github.com/kballard/go-shellquote)
    golang(github.com/mattn/go-colorable)
    golang(github.com/mattn/go-isatty)
    golang(github.com/mgutz/ansi)
    golang(github.com/muesli/reflow/ansi)
    golang(github.com/muesli/reflow/truncate)
    golang(github.com/muesli/termenv)
    golang(github.com/muhammadmuzzammil1998/jsonc)
    golang(github.com/opentracing/opentracing-go)
    golang(github.com/shurcooL/githubv4)
    golang(github.com/sourcegraph/jsonrpc2)
    golang(github.com/spf13/cobra)
    golang(github.com/spf13/pflag)
    golang(github.com/stretchr/testify/mock)
    golang(golang.org/x/crypto/nacl/box)
    golang(golang.org/x/crypto/ssh)
    golang(golang.org/x/sync/errgroup)
    golang(golang.org/x/term)
    golang(gopkg.in/yaml.v3)



Provides
--------
gh:
    gh
    gh(x86-64)

golang-github-cli-devel:
    golang(github.com/cli/cli/api)
    golang(github.com/cli/cli/context)
    golang(github.com/cli/cli/git)
    golang(github.com/cli/cli/internal/authflow)
    golang(github.com/cli/cli/internal/build)
    golang(github.com/cli/cli/internal/codespaces)
    golang(github.com/cli/cli/internal/codespaces/api)
    golang(github.com/cli/cli/internal/config)
    golang(github.com/cli/cli/internal/docs)
    golang(github.com/cli/cli/internal/ghinstance)
    golang(github.com/cli/cli/internal/ghrepo)
    golang(github.com/cli/cli/internal/httpunix)
    golang(github.com/cli/cli/internal/run)
    golang(github.com/cli/cli/internal/update)
    golang(github.com/cli/cli/pkg/cmd/actions)
    golang(github.com/cli/cli/pkg/cmd/alias)
    golang(github.com/cli/cli/pkg/cmd/alias/delete)
    golang(github.com/cli/cli/pkg/cmd/alias/expand)
    golang(github.com/cli/cli/pkg/cmd/alias/list)
    golang(github.com/cli/cli/pkg/cmd/alias/set)
    golang(github.com/cli/cli/pkg/cmd/api)
    golang(github.com/cli/cli/pkg/cmd/auth)
    golang(github.com/cli/cli/pkg/cmd/auth/gitcredential)
    golang(github.com/cli/cli/pkg/cmd/auth/login)
    golang(github.com/cli/cli/pkg/cmd/auth/logout)
    golang(github.com/cli/cli/pkg/cmd/auth/refresh)
    golang(github.com/cli/cli/pkg/cmd/auth/setupgit)
    golang(github.com/cli/cli/pkg/cmd/auth/shared)
    golang(github.com/cli/cli/pkg/cmd/auth/status)
    golang(github.com/cli/cli/pkg/cmd/browse)
    golang(github.com/cli/cli/pkg/cmd/codespace)
    golang(github.com/cli/cli/pkg/cmd/completion)
    golang(github.com/cli/cli/pkg/cmd/config)
    golang(github.com/cli/cli/pkg/cmd/config/get)
    golang(github.com/cli/cli/pkg/cmd/config/list)
    golang(github.com/cli/cli/pkg/cmd/config/set)
    golang(github.com/cli/cli/pkg/cmd/extension)
    golang(github.com/cli/cli/pkg/cmd/factory)
    golang(github.com/cli/cli/pkg/cmd/gist)
    golang(github.com/cli/cli/pkg/cmd/gist/clone)
    golang(github.com/cli/cli/pkg/cmd/gist/create)
    golang(github.com/cli/cli/pkg/cmd/gist/delete)
    golang(github.com/cli/cli/pkg/cmd/gist/edit)
    golang(github.com/cli/cli/pkg/cmd/gist/list)
    golang(github.com/cli/cli/pkg/cmd/gist/shared)
    golang(github.com/cli/cli/pkg/cmd/gist/view)
    golang(github.com/cli/cli/pkg/cmd/gpg-key)
    golang(github.com/cli/cli/pkg/cmd/gpg-key/add)
    golang(github.com/cli/cli/pkg/cmd/gpg-key/list)
    golang(github.com/cli/cli/pkg/cmd/issue)
    golang(github.com/cli/cli/pkg/cmd/issue/close)
    golang(github.com/cli/cli/pkg/cmd/issue/comment)
    golang(github.com/cli/cli/pkg/cmd/issue/create)
    golang(github.com/cli/cli/pkg/cmd/issue/delete)
    golang(github.com/cli/cli/pkg/cmd/issue/edit)
    golang(github.com/cli/cli/pkg/cmd/issue/list)
    golang(github.com/cli/cli/pkg/cmd/issue/reopen)
    golang(github.com/cli/cli/pkg/cmd/issue/shared)
    golang(github.com/cli/cli/pkg/cmd/issue/status)
    golang(github.com/cli/cli/pkg/cmd/issue/transfer)
    golang(github.com/cli/cli/pkg/cmd/issue/view)
    golang(github.com/cli/cli/pkg/cmd/pr)
    golang(github.com/cli/cli/pkg/cmd/pr/checkout)
    golang(github.com/cli/cli/pkg/cmd/pr/checks)
    golang(github.com/cli/cli/pkg/cmd/pr/close)
    golang(github.com/cli/cli/pkg/cmd/pr/comment)
    golang(github.com/cli/cli/pkg/cmd/pr/create)
    golang(github.com/cli/cli/pkg/cmd/pr/diff)
    golang(github.com/cli/cli/pkg/cmd/pr/edit)
    golang(github.com/cli/cli/pkg/cmd/pr/list)
    golang(github.com/cli/cli/pkg/cmd/pr/merge)
    golang(github.com/cli/cli/pkg/cmd/pr/ready)
    golang(github.com/cli/cli/pkg/cmd/pr/reopen)
    golang(github.com/cli/cli/pkg/cmd/pr/review)
    golang(github.com/cli/cli/pkg/cmd/pr/shared)
    golang(github.com/cli/cli/pkg/cmd/pr/status)
    golang(github.com/cli/cli/pkg/cmd/pr/view)
    golang(github.com/cli/cli/pkg/cmd/release)
    golang(github.com/cli/cli/pkg/cmd/release/create)
    golang(github.com/cli/cli/pkg/cmd/release/delete)
    golang(github.com/cli/cli/pkg/cmd/release/download)
    golang(github.com/cli/cli/pkg/cmd/release/list)
    golang(github.com/cli/cli/pkg/cmd/release/shared)
    golang(github.com/cli/cli/pkg/cmd/release/upload)
    golang(github.com/cli/cli/pkg/cmd/release/view)
    golang(github.com/cli/cli/pkg/cmd/repo)
    golang(github.com/cli/cli/pkg/cmd/repo/archive)
    golang(github.com/cli/cli/pkg/cmd/repo/clone)
    golang(github.com/cli/cli/pkg/cmd/repo/create)
    golang(github.com/cli/cli/pkg/cmd/repo/credits)
    golang(github.com/cli/cli/pkg/cmd/repo/delete)
    golang(github.com/cli/cli/pkg/cmd/repo/fork)
    golang(github.com/cli/cli/pkg/cmd/repo/garden)
    golang(github.com/cli/cli/pkg/cmd/repo/list)
    golang(github.com/cli/cli/pkg/cmd/repo/rename)
    golang(github.com/cli/cli/pkg/cmd/repo/sync)
    golang(github.com/cli/cli/pkg/cmd/repo/view)
    golang(github.com/cli/cli/pkg/cmd/root)
    golang(github.com/cli/cli/pkg/cmd/run)
    golang(github.com/cli/cli/pkg/cmd/run/cancel)
    golang(github.com/cli/cli/pkg/cmd/run/download)
    golang(github.com/cli/cli/pkg/cmd/run/list)
    golang(github.com/cli/cli/pkg/cmd/run/rerun)
    golang(github.com/cli/cli/pkg/cmd/run/shared)
    golang(github.com/cli/cli/pkg/cmd/run/view)
    golang(github.com/cli/cli/pkg/cmd/run/watch)
    golang(github.com/cli/cli/pkg/cmd/secret)
    golang(github.com/cli/cli/pkg/cmd/secret/list)
    golang(github.com/cli/cli/pkg/cmd/secret/remove)
    golang(github.com/cli/cli/pkg/cmd/secret/set)
    golang(github.com/cli/cli/pkg/cmd/secret/shared)
    golang(github.com/cli/cli/pkg/cmd/ssh-key)
    golang(github.com/cli/cli/pkg/cmd/ssh-key/add)
    golang(github.com/cli/cli/pkg/cmd/ssh-key/list)
    golang(github.com/cli/cli/pkg/cmd/version)
    golang(github.com/cli/cli/pkg/cmd/workflow)
    golang(github.com/cli/cli/pkg/cmd/workflow/disable)
    golang(github.com/cli/cli/pkg/cmd/workflow/enable)
    golang(github.com/cli/cli/pkg/cmd/workflow/list)
    golang(github.com/cli/cli/pkg/cmd/workflow/run)
    golang(github.com/cli/cli/pkg/cmd/workflow/shared)
    golang(github.com/cli/cli/pkg/cmd/workflow/view)
    golang(github.com/cli/cli/pkg/cmdutil)
    golang(github.com/cli/cli/pkg/export)
    golang(github.com/cli/cli/pkg/extensions)
    golang(github.com/cli/cli/pkg/findsh)
    golang(github.com/cli/cli/pkg/githubsearch)
    golang(github.com/cli/cli/pkg/githubtemplate)
    golang(github.com/cli/cli/pkg/httpmock)
    golang(github.com/cli/cli/pkg/iostreams)
    golang(github.com/cli/cli/pkg/jsoncolor)
    golang(github.com/cli/cli/pkg/liveshare)
    golang(github.com/cli/cli/pkg/liveshare/test)
    golang(github.com/cli/cli/pkg/markdown)
    golang(github.com/cli/cli/pkg/prompt)
    golang(github.com/cli/cli/pkg/set)
    golang(github.com/cli/cli/pkg/surveyext)
    golang(github.com/cli/cli/pkg/text)
    golang(github.com/cli/cli/test)
    golang(github.com/cli/cli/utils)
    golang-github-cli-devel
    golang-ipath(github.com/cli/cli)



Generated by fedora-review 0.7.6 (b083f91) last change: 2020-11-10
Command line :/usr/bin/fedora-review --no-colors --prebuilt --rpm-spec --name gh --mock-config /var/lib/copr-rpmbuild/results/configs/child.cfg
Buildroot used: fedora-rawhide-x86_64
Active plugins: Generic, Shell-api
Disabled plugins: C/C++, PHP, Perl, Python, SugarActivity, Haskell, Ocaml, Java, fonts, R
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 6 Maxwell G 2021-12-17 03:30:51 UTC
Thanks for helping out with this, Alejandro!

> %dir %{_datadir}/bash-completion
> %dir %{_datadir}/bash-completion/completions

I would remove these lines from the `%files` section. They are already owned by the `filesystem` package, so it's not necessary to do so here. Please keep the lines for the toplevel zsh and fish completions directories, though.

Comment 7 Tomas Hrcka 2021-12-17 12:16:20 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/gh

Comment 8 Fedora Update System 2021-12-20 23:10:28 UTC
FEDORA-2021-cf8106cc87 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-cf8106cc87

Comment 9 Fedora Update System 2021-12-20 23:12:22 UTC
FEDORA-2021-cf8106cc87 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.