With this upgrade our codebase adopts the stricter handling of `os/exec` command lookup in it that it doesn't allow shelling out to a command in the current directory.
Added missing directive (bash) to ensure dnf has config-manager command correctly loaded, prior to adding a repo. Usually missing e.g., in a Docker container.
gh-cli has entered fedora's official repository and can be installed directly without adding a third-party repository.
Co-authored-by: Mislav Marohnić <mislav@github.com>
Following the Debian [documentation](https://wiki.debian.org/SecureApt) the keyring should be stored in `/etc/apt/trusted.gpg.d/.
> In more recent Debian GNU/Linux versions (Wheezy, for example), the keyrings are stored in specific files all located in the `/etc/apt/trusted.gpg.d` directory.
The main build script for this project is `script/build.go` which
implements Makefile-like building of the `gh` binary and associated man
pages. Our Makefile defers to the Go script.
However, when setting GOOS, GOARCH, and other environment variables to
modify the target for the resulting binary, these environment variables
would affect the execution of `build.go` as well, which was unintended.
This tweaks our Makefile to reset variables like GOOS and GOARCH when
building the `build.go` script itself, ensuring that the built script
runs on the same platform, and adds the ability to pass environment
variables as arguments to `go run script/build.go`. This allows the
following usage on platforms without `make`:
go run script/build.go GOOS=linux
With this style of invocation, the GOOS setting does not actually affect
`go run` itself; just the `go build` that is executed in a child process.
The AUR is a community-based location for PKGBUILDs, Arch's Install scripts.
There is a unofficial PKGBUILD for building and installing `gh` from the git repo.
https://aur.archlinux.org/packages/github-cli-git