Граф коммитов

171 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić 21c4b49164 🔥 remove tracking from documentation site 2020-11-10 12:06:02 +01:00
Pierre Grimaud 2836fb90da Fix typos 2020-04-26 00:21:34 +02:00
Mike Lundy c4dfa597b8
add /v2 to the module name to resolve the module path problem 2020-04-16 16:30:07 -07:00
Mislav Marohnić 81ad4dd64b Revert "[ci] Use `gofmt` to avoid `go fmt` downloading dependencies"
This reverts commit 75c5410110.
2020-04-13 12:59:36 +02:00
Mislav Marohnić 8d91904208 Merge branch 'patch-1' 2020-03-09 02:20:55 +01:00
Mislav Marohnić fb44a7ef97 Avoid generating changelog during release
Since the CI job runs without the full git history, and since we
commonly get release notes from the annotated git tag, eliminate the
obsolete code path that tried to generate the changelog.

https://github.com/github/hub/runs/488291084
2020-03-09 02:20:51 +01:00
Mislav Marohnić 63a61d5f96 Perform case-insensitive matching on HTTP header name 2020-03-09 02:19:16 +01:00
Shohei Ueda 8e6a717387
Fix case upper to lower 2020-03-08 00:22:04 +09:00
Mislav Marohnić dcec289400 Remove support for Go < 1.11 2020-03-05 14:42:30 +01:00
Mislav Marohnić f3deae3593 Cleanup `*.zip` archive after `script/get` on Windows 2020-01-29 14:36:56 +01:00
Mislav Marohnić 2f1e6e091e OK, really try to fix `script/get` for Windows 2020-01-29 14:31:30 +01:00
Mislav Marohnić 2b28a53b5b Fix `script/get` for `MSYS_NT-*` host 2020-01-29 14:20:36 +01:00
Mislav Marohnić d92a3108f7 Put Windows help files in the correct location
Fixes #2455
2020-01-27 11:23:51 +01:00
Mislav Marohnić 40e421edd2 Add instructions for GitHub Actions 2020-01-25 15:16:14 +01:00
Mislav Marohnić b4dfe6b0a2 [build] Fix `script/build` when outside of a git repository
Fixes error `usage: link [options] main.o` when building from the
downloaded tarball
2020-01-21 15:28:41 +01:00
Mislav Marohnić 9a5cde08cc [ci] Fix auto-publishing gh-pages
24ba9063ab/checks?check_suite_id=412011825
2020-01-21 15:28:41 +01:00
Mislav Marohnić 3bb72b9567 [ci] Fix coverage report 2020-01-21 14:21:34 +01:00
Mislav Marohnić 46d12a8d7b Respect GITHUB_REF in `script/version` 2020-01-21 14:14:32 +01:00
Mislav Marohnić 5932438a4e Remove unwanted tracking from distributed HTML man pages
This was supposed to end up in the published site only
2020-01-21 14:13:17 +01:00
Mislav Marohnić 7e164d487e [changelog] Tweak script 2020-01-21 13:38:23 +01:00
Mislav Marohnić d110725515 🔥 Travis CI setup 2019-11-14 23:59:11 +01:00
Mislav Marohnić 8983c0bfbe Automatically publish tagged release from Actions 2019-11-14 23:56:24 +01:00
Mislav Marohnić 2f417730b3 Set CI environment variable when running `test-all` 2019-11-14 23:15:04 +01:00
Mislav Marohnić 4c1633fa47 Don't check for Ruby warnings in CI
We don't care about this anymore, plus it's noisy.
2019-11-14 23:15:04 +01:00
Johannes Schindelin 02642d7020 script/version: look for the correct Git information
When unpacking the release .tar.gz of `hub` into a worktree (such as
MSYS2's `MINGW-packages` one), the version obtained via `git describe`
does not make sense.

Let's force Git to look only for `hub`'s Git info, if any.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2019-11-13 10:37:42 +01:00
Mislav Marohnić d2f7211a49 [ci] Automatically bump Homebrew formula after release 2019-11-06 16:49:38 +01:00
Mislav Marohnić 1fbca9670d [test] Fix install_test
https://travis-ci.org/github/hub/jobs/605285000
2019-10-31 02:48:18 +01:00
Mislav Marohnić 875d4288bf [help] Enable `hub help --web <command>`
- `share/man/man1/*.html` now live in `share/doc/hub-doc/*.html`
- `help.format` git config values "web" & "html" now supported
2019-10-31 01:58:47 +01:00
Mislav Marohnić d492aba0de Merge branch 'docker'
Ref. https://github.com/github/hub/pull/2317#issuecomment-546765818
2019-10-29 11:50:07 +01:00
Mislav Marohnić fdcb2e1ae5 [tag-release] Tweak cleanup release notes file
[ci skip]
2019-10-29 11:11:19 +01:00
Mislav Marohnić 517be420b2 [dev] Avoid installing ruby dependencies inside project directory
This can mess up go commands such as `go fmt ./...`
2019-10-29 11:09:57 +01:00
Mislav Marohnić 2c6e4c70ce [test] Add ability to run tests in a Docker container 2019-10-29 11:06:16 +01:00
Mislav Marohnić f893b32c8f Add publish scripts
[ci skip]
2019-10-21 22:24:58 +02:00
Mislav Marohnić 61b81bd5aa [ci] Create a non-draft release from annotated tag
If a git tag was annotated, assume that it contains full release notes
and make a public release rather than a draft one.
2019-10-03 02:44:38 +02:00
Mislav Marohnić 75c5410110 [ci] Use `gofmt` to avoid `go fmt` downloading dependencies
`go fmt` doesn't seem to respect `-mod=vendor`
https://github.com/golang/go/issues/27841

Instead try using `gofmt` which doesn't trigger downloading dependencies
in the first place. However, `gofmt` affects files under `vendor/`, so
we reset that before checking for changes.
2019-10-03 01:12:53 +02:00
Mislav Marohnić 994649785d [make] Use GOFLAGS instead of manually passing `-mod=vendor` 2019-10-03 00:51:07 +02:00
Mislav Marohnić a19347a533 [ci] Include `etc` and `share` changes in automatic release notes 2019-09-21 17:29:17 +02:00
Eli Schwartz 7d915e232c
build: pass mod vendoring flag on newer versions of go
When go autodetects that it is being run as a go mod, and that there is
a vendor directory, it will still try to redownload all sources over the
network, unless you use -mod=vendor to tell it to use that. Additionally,
when using -mod=vendor the compiler will nicely avoid messing with
$GOPATH at all, since it can operate in a completely self-contained
manner.

Take advantage of this, when the detected go version is at least 1.11
(when the -mod flag was introduced).
2019-06-15 22:56:33 -04:00
Mislav Marohnić b94fbf9504 [ci] Fix uploading binaries to an existing release 2019-01-26 18:21:01 +01:00
Mislav Marohnić cdd5ce9264 Only publish HTML man pages if the tag is cut off master
[ci skip]
2019-01-18 19:01:31 +01:00
Eli Schwartz 39e1523442 build: respect environment LDFLAGS and strip the build path
golang does not natively respect LDFLAGS, but you can pass them on the
command line using -ldflags=-extldflags=...
This is important for distributions, in order to provide common
functionality such as hardening flags.

Also strip the prefixed root source directory from the embedded source
file paths. This is not important information for the debugger, which
should only care about paths relative to $GOPATH, and results in less
build environment metadata leaking into the final binary. (This also
aids in reproducible builds when using different build directories, see
e.g. https://github.com/golang/go/issues/16860)
2019-01-02 17:00:15 +01:00
Mislav Marohnić f2603ba137 Remove Ruby ronn from build toolchain 2018-12-29 14:33:12 +01:00
Mislav Marohnić cf02dd1118 Switch to new md2roff process in `make man-pages` 2018-12-29 14:33:12 +01:00
Derek P Sifford 93dad3227d add pullrequest vim syntax. #1916 2018-11-12 17:49:11 -05:00
Mislav Marohnić a81bf2bb7d Test install script in CI 2018-06-14 12:04:31 +02:00
Mislav Marohnić 1c5978f36c Extract checking of formatting to shell function 2018-06-14 11:57:23 +02:00
Stephen Gallagher 3ad950799e
Add DESTDIR support for `make install`
When packaging for distributions (particularly RPM), it is common
for the packaging tool to install all of the files into a chroot-
style directory structure as a non-privileged user. This is done
to avoid requiring root privileges for packaging (particularly to
avoid issues where the attempt to package causes changes to be
made to the packaging host.

The standard variable used for this (from autotools) is DESTDIR.
This patch adds DESTDIR before the prefix in install.sh to ensure
that when `make install` is run, it will direct output to the
proper location.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2018-06-13 09:09:26 -04:00
Mislav Marohnić 818224bfa0 Skip `go fmt` CI check for Go 1.8
`go fmt ./...` affects the `vendor/` directory before Go 1.9.
2018-06-09 18:17:54 +02:00
Mislav Marohnić f650a22525 Extract code coverage summary to its own script 2018-06-09 18:10:52 +02:00
Mislav Marohnić 00e1b9957d Remove obsolete build steps
This was from the time when we tried to have hub build even if it wasn't
checkout out within a local GOPATH. This change assumes a working Go
environment.
2018-06-08 20:57:27 +02:00