Commit Graph

17 Commits

Author SHA1 Message Date
Tim Hockin 6e68266403
Update prometheus client
go get github.com/prometheus/client_golang@v1.14.0
go mod tidy
go mod vendor
2023-02-06 17:49:03 -08:00
Tim Hockin 45b1c5485d Move tools into a tools/ subdir
This avoids vendoring all the deps in the root.
2022-08-13 16:43:22 -07:00
Tim Hockin 5ce0b80994 Update manifest-tool to latest
Latest doesn't need gross deps hacks.
2022-07-26 11:28:48 -07:00
Tim Hockin c868972a52 deps: Bump prometheus client to 1.12.2 2022-07-03 13:47:52 -07:00
Tim Hockin 008e2673bc deps: Bump go-licenses to 1.2.1 2022-07-03 13:47:52 -07:00
Tim Hockin 034995c6c3 deps: Bump logr to 1.2.3 2022-07-03 13:47:52 -07:00
Tim Hockin 6805a43ff6 Bump go.mod to 1.18 2022-07-02 11:13:33 -07:00
Tim Hockin 6653b2c791 Bump go.mod to 1.17
run `go mod tidy` and `go mod vendor`
2022-01-28 20:12:08 -08:00
Tim Hockin 4603f559f3 Replace glogr with funcr
No difference in flags.  Log output will now be JSON.

example:

{"logger":"","ts":"2021-11-24 11:19:46.340238","caller":{"file":"main.go","line":1031},"level":0,"msg":"cloning repo","origin":"https://github.com/thockin/git-sync","path":"/tmp/gt"}
2021-11-24 11:18:07 -08:00
Tim Hockin 841b4894c7 bump to logr v1.0.0-rc1 (v4) 2021-06-13 11:02:03 -07:00
Tim Hockin 592cbcb9d0 update go.mod to 1.16 2021-03-29 21:16:23 -07:00
Tim Hockin f77e3a54fc Add infrastructure for build tools
As per discussion with Go team.  it's hacky but it works.

create tools.go
git add tools.go
go mod vendor
git add vendor
go mod tidy
go mod vendor # again
2021-03-29 16:51:08 -07:00
Tim Hockin 20696689f3 Add help and manual flags, use pflag
THIS IS A BREAKING CHANGE

Switch flags implementation to use pflag.  This means that long flags
like `-username` must now use 2 dashes: `--username`.

The `-v` flag (verbose) used to accept `-v` or `--v`.  Now it only
accepts `-v.

The `--help` and `-h` flags are new.

The `--man` flag is new (print a man-page like help message).

Several glog flags which used to be exposed (e.g. --logtostderr) are no
longer exposed.  Logs always go to stderr.
2020-10-31 00:50:51 -07:00
Tim Hockin 0057fac0a4 Clean up docs 2019-11-26 14:12:47 -08:00
Tim Hockin 831eae8f9f Use official logr rather than thockin 2019-03-25 08:54:44 -07:00
Thomas Jackson e32712b301 Add basic prometheus metrics 2019-01-22 17:26:27 -08:00
Thomas Jackson 279bbc307e Switch from godeps to `go mod` 2019-01-22 11:21:57 -08:00