diff options
author | Sean E. Russell <ser@ser1.net> | 2020-03-03 06:36:42 -0600 |
---|---|---|
committer | Sean E. Russell <ser@ser1.net> | 2020-03-03 14:19:37 -0600 |
commit | ffbd8828dc290f7ac58281ea25174f5392605ec0 (patch) | |
tree | 63bddd72a2d60808b600a99fdc86e3a34263a1b5 /docs | |
parent | 20a90672d6dc2ddf10b418deb627c7e4079cd58c (diff) |
Prevent crashes on Windows from wonky CPU values #70
Diffstat (limited to 'docs')
-rw-r--r-- | docs/releasing.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/releasing.md b/docs/releasing.md index 4c6583c..d77b6dd 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -26,3 +26,10 @@ Nix adds new and interesting complexities to the release. 6. Update the version and hash in nixpkgs/pkgs/tools/system/gotop/default.nix 8. In docker, install & run vgo2nix to update deps.nix 7. nix-build -A gotop + + +For plugin development: +``` +V=$(git show -s --format=%cI HEAD | cut -b -19 | tr -cd '[:digit:]')-$(git rev-parse HEAD | cut -b -12) +go build -ldflags "-X main.Version=$V" -o gotop ./cmd/gotop +``` |