Commit Graph

14 Commits

Author SHA1 Message Date
Joshua Humphries b953ea196a
use newer goreleaser (#293) 2022-02-15 20:31:31 -05:00
Joshua Humphries b9d2d8cfa8
cleanup deps; pin versions of tools using 'go install' instead of in go.mod; tidy up go.sum (#260)
Addresses two depend-a-bot security warnings for libraries previously references in go.sum.
2021-10-06 20:58:00 -04:00
Joshua Humphries 0162fa9726
go.mod and Makefile tweaks; move import of xds package to cmd/grpcurl (#170) 2020-07-14 12:20:32 -04:00
Joshua Humphries 5ad5edb29c
pin goreleaser in go.mod; fix config file so latest version accepts it; allow using go modules in 'make release' (#161) 2020-06-01 18:56:18 -04:00
Joshua Humphries b58182a88d
get travis CI green again (#157)
* fix test to work w/ newer grpc repo; run 'make ci' to have it update go.mod and go.sum, trying to repro ci failure locally
* vet w/ go 1.13; use normal go proxy instead of direct in CI
2020-05-12 13:06:14 -04:00
Joshua Humphries 5631bba117
add official Dockerfile (#104) 2019-07-03 15:57:24 -04:00
Joshua Humphries fe97274a1b
staticcheck no longer runs on Go 1.10 (#92)
* staticcheck no longer runs on Go 1.10, so run it on Go 1.11 in CI
* be explicit about default make target in .travis.yml
2019-03-22 14:35:01 -04:00
Joshua Humphries 0f9e76c978
ignore deprecated check for now (#75) 2018-12-17 10:47:17 -05:00
Joshua Humphries 70e9bba1b8
fix typo in Makefile (#72) 2018-12-12 10:10:23 -05:00
Joshua Humphries 554e69be2c
use correct package name for golint (#53) 2018-10-12 09:06:35 -04:00
Leigh McCulloch 79a550b858 add goreleaser (#49)
* add goreleaser

Add a goreleaser configuration file that builds binaries for Linux,
MacOS and Windows, for 32bit (x86/386) and 64bit (x64/amd64). The
binaries will be archived into a tar.gz/zip file along with the LICENSE
file.

The `dist/` directory will be written to by goreleaser with the binaries
during the build process, so it's also been added to .gitignore.

To build all the binaries and release them to GitHub:
1. Tag the release. e.g. `git tag -a v1.0.0 -m 'First release'`
2. Generate a GitHub Personal Access Token. See https://github.com/settings/tokens.
3. Push the release to GitHub. e.g. `git push origin v1.0.0`
4. Make the release, which will publish binaries to the GitHub "Releases" page. e.g.  `GITHUB_TOKEN=xxxxxxx... make release`

* add -version flag

Run `grpcurl -version` to see the release version. Use `make install` to build a binary that shows the version based on current git hash (which will show a version number if HEAD is a release tag and otherwise uses `git describe` to summarize the version).
2018-09-25 09:34:02 -04:00
Joshua Humphries 09a863d763
fix Makefile to run predeclared check (#24) 2018-03-25 16:27:08 -04:00
Joshua Humphries 224c3acd1d
enable more linters in CI; fix some issues caught by them (#23) 2018-03-24 10:33:21 -04:00
Peter Edge 9f7485fd04 Add Makefile (#5)
Replaces ci.sh, provides add'l static analysis (which isn't yet enabled in CI since the code doesn't yet pass them all)
2018-02-17 18:15:13 -05:00