commit vgrep for openSUSE:Factory
Hello community, here is the log from the commit of package vgrep for openSUSE:Factory checked in at 2020-09-01 20:10:35 Comparing /work/SRC/openSUSE:Factory/vgrep (Old) and /work/SRC/openSUSE:Factory/.vgrep.new.3399 (New) Package is "vgrep" Tue Sep 1 20:10:35 2020 rev:6 rq:831050 version:2.4.0 Changes: --- /work/SRC/openSUSE:Factory/vgrep/vgrep.changes 2020-05-13 22:56:09.115017157 +0200 +++ /work/SRC/openSUSE:Factory/.vgrep.new.3399/vgrep.changes2020-09-01 20:10:50.592689624 +0200 @@ -1,0 +2,48 @@ +Mon Aug 31 20:55:12 UTC 2020 - Dirk Mueller + +- update to 2.4.0: + * selectors: add a "all" selector to process all results + * splitMatch: fail gracefully on failure to parse output + * (new) grep: add filename completion + * (new) grep: add a command to trigger a new search from interactive shell + * refine: add a command to refine match list based on a regular expression + * keep: add a new command to keep selected indices + * show: fix a typo ("douldn't" -> "couldn't") + * colwriter: prevent panic on --no-header and no result found + * interactive: close command-line editor on early os.Exit() + * interactive: switch from bufio Scanner to (readline-like) liner + * delete: fix index update for multi-line deletions + * git grep: Run 'git rev-parse' only if not selecting ripgrep + * grep output: expect no more than 2 substrings when splitting on NUL-byte + * grep output: force printing filename for grep/ripgrep + * grep commands: Do not pass '.' as an argument to grep/ripgrep + * README: mention Homebrew package on Mac OS + +--- +Tue Jul 28 09:57:37 UTC 2020 - Martin Rey + +- Update to version 2.3.3: + * When using emacs, also make sure to account for emacs in +daemon mode and check for emacsclient as an editor. + +- Changes from version 2.3.2: + * emacs support + * remove requirement to load cache from the same dir + +- Changes from version 2.3.1: + * README: clarify search/show + * README: add install instructions + * replace string literals with constants + * remove redundant flags + * gnu uses different format than bsd and git grep + * linter error fix for regex + * fix #79, define a new greptype bsd to select : seperator + * use golangci-lint v1.26.0 + * CI: use golang:1.14 + * update dependencies + * build(deps): bump github.com/sirupsen/logrus from 1.5.0 to +1.6.0 + * Update chmod command + * Cross-platform make install + +--- Old: v2.3.0.tar.gz New: v2.4.0.tar.gz Other differences: -- ++ vgrep.spec ++ --- /var/tmp/diff_new_pack.NZnCy7/_old 2020-09-01 20:10:51.264689907 +0200 +++ /var/tmp/diff_new_pack.NZnCy7/_new 2020-09-01 20:10:51.268689909 +0200 @@ -21,7 +21,7 @@ # Project name when using go tooling. %define project github.com/vrothberg/vgrep Name: vgrep -Version:2.3.0 +Version:2.4.0 Release:0 Summary:Frontend for git-grep and grep License:GPL-3.0-only @@ -29,7 +29,7 @@ URL:https://github.com/vrothberg/vgrep Source0:https://github.com/vrothberg/vgrep/archive/v%{version}.tar.gz BuildRequires: fdupes -BuildRequires: golang(API) >= 1.6 +BuildRequires: golang(API) >= 1.13 Requires: git-core Requires: grep @@ -55,7 +55,7 @@ # Build the binary. cd $HOME/go/src/%{project} -go build -o ./build/vgrep -buildmode=pie -ldflags "-s -w -X main.version=%{version}" +go build -mod=vendor -o ./build/vgrep -buildmode=pie -ldflags "-s -w -X main.version=%{version}" %install # Install the binary. ++ v2.3.0.tar.gz -> v2.4.0.tar.gz ++ 7078 lines of diff (skipped)
commit vgrep for openSUSE:Factory
Hello community, here is the log from the commit of package vgrep for openSUSE:Factory checked in at 2020-05-13 22:56:07 Comparing /work/SRC/openSUSE:Factory/vgrep (Old) and /work/SRC/openSUSE:Factory/.vgrep.new.2738 (New) Package is "vgrep" Wed May 13 22:56:07 2020 rev:5 rq:804909 version:2.3.0 Changes: --- /work/SRC/openSUSE:Factory/vgrep/vgrep.changes 2020-04-18 00:33:49.998475095 +0200 +++ /work/SRC/openSUSE:Factory/.vgrep.new.2738/vgrep.changes2020-05-13 22:56:09.115017157 +0200 @@ -1,0 +2,13 @@ +Wed May 13 07:21:21 UTC 2020 - Martin Pluskal + +- Update to version 2.3.0: + * pin golangci-lint version + * Use a standard variable for setting the installation path + * Ripgrep support + * Cache file mode 0644 + * drop interactive -i short flag + * Enable basic functionality on windows + * build(deps): bump github.com/sirupsen/logrus from 1.4.2 to 1.5.0 + * resolve symlinks in cache + +--- Old: v2.2.0.tar.gz New: v2.3.0.tar.gz Other differences: -- ++ vgrep.spec ++ --- /var/tmp/diff_new_pack.HL5w06/_old 2020-05-13 22:56:09.811018515 +0200 +++ /var/tmp/diff_new_pack.HL5w06/_new 2020-05-13 22:56:09.815018523 +0200 @@ -21,7 +21,7 @@ # Project name when using go tooling. %define project github.com/vrothberg/vgrep Name: vgrep -Version:2.2.0 +Version:2.3.0 Release:0 Summary:Frontend for git-grep and grep License:GPL-3.0-only ++ v2.2.0.tar.gz -> v2.3.0.tar.gz ++ 112353 lines of diff (skipped)
commit vgrep for openSUSE:Factory
Hello community, here is the log from the commit of package vgrep for openSUSE:Factory checked in at 2020-04-18 00:33:04 Comparing /work/SRC/openSUSE:Factory/vgrep (Old) and /work/SRC/openSUSE:Factory/.vgrep.new.2738 (New) Package is "vgrep" Sat Apr 18 00:33:04 2020 rev:4 rq:794928 version:2.2.0 Changes: --- /work/SRC/openSUSE:Factory/vgrep/vgrep.changes 2019-02-19 11:58:10.221209490 +0100 +++ /work/SRC/openSUSE:Factory/.vgrep.new.2738/vgrep.changes2020-04-18 00:33:49.998475095 +0200 @@ -1,0 +2,10 @@ +Fri Apr 17 14:05:43 UTC 2020 - Martin Pluskal + +- Update to version 2.2.0: + * Changed yellow to magenta to improve readability on light color +schemes (e.g., tango). + * Auto-detect VSCode terminal and print line column in a +clickable format for easy browing. + * Vgrep has a logo. + +--- Old: v2.1.0.tar.gz New: v2.2.0.tar.gz Other differences: -- ++ vgrep.spec ++ --- /var/tmp/diff_new_pack.C3jbdM/_old 2020-04-18 00:33:50.702476553 +0200 +++ /var/tmp/diff_new_pack.C3jbdM/_new 2020-04-18 00:33:50.706476561 +0200 @@ -1,7 +1,7 @@ # # spec file for package vgrep # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,12 +21,12 @@ # Project name when using go tooling. %define project github.com/vrothberg/vgrep Name: vgrep -Version:2.1.0 +Version:2.2.0 Release:0 Summary:Frontend for git-grep and grep License:GPL-3.0-only Group: Productivity/Text/Utilities -Url:https://github.com/vrothberg/vgrep +URL:https://github.com/vrothberg/vgrep Source0:https://github.com/vrothberg/vgrep/archive/v%{version}.tar.gz BuildRequires: fdupes BuildRequires: golang(API) >= 1.6 ++ v2.1.0.tar.gz -> v2.2.0.tar.gz ++ 126521 lines of diff (skipped)
commit vgrep for openSUSE:Factory
Hello community, here is the log from the commit of package vgrep for openSUSE:Factory checked in at 2019-02-19 11:58:02 Comparing /work/SRC/openSUSE:Factory/vgrep (Old) and /work/SRC/openSUSE:Factory/.vgrep.new.28833 (New) Package is "vgrep" Tue Feb 19 11:58:02 2019 rev:3 rq:676803 version:2.1.0 Changes: --- /work/SRC/openSUSE:Factory/vgrep/vgrep.changes 2018-01-29 15:00:11.470859152 +0100 +++ /work/SRC/openSUSE:Factory/.vgrep.new.28833/vgrep.changes 2019-02-19 11:58:10.221209490 +0100 @@ -1,0 +2,9 @@ +Sun Feb 17 12:06:38 UTC 2019 - Valentin Rothberg + +- Update vgrep to v2.1.0: + https://github.com/vrothberg/vgrep/releases/tag/2.1.0 + This update includes some bug fixes concurrent accesses to the cache + can corrupt data. It also improves parsing of commands and fixes + some minor bugs related to parsing. + +--- Old: 2.0.2.tar.gz New: v2.1.0.tar.gz Other differences: -- ++ vgrep.spec ++ --- /var/tmp/diff_new_pack.W9UHUU/_old 2019-02-19 11:58:10.789209185 +0100 +++ /var/tmp/diff_new_pack.W9UHUU/_new 2019-02-19 11:58:10.793209183 +0100 @@ -1,7 +1,7 @@ # # spec file for package vgrep # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -21,13 +21,13 @@ # Project name when using go tooling. %define project github.com/vrothberg/vgrep Name: vgrep -Version:2.0.2 +Version:2.1.0 Release:0 Summary:Frontend for git-grep and grep -License:GPL-3.0 +License:GPL-3.0-only Group: Productivity/Text/Utilities Url:https://github.com/vrothberg/vgrep -Source0:https://github.com/vrothberg/vgrep/archive/%{version}.tar.gz +Source0:https://github.com/vrothberg/vgrep/archive/v%{version}.tar.gz BuildRequires: fdupes BuildRequires: golang(API) >= 1.6 Requires: git-core
commit vgrep for openSUSE:Factory
Hello community, here is the log from the commit of package vgrep for openSUSE:Factory checked in at 2018-01-29 14:58:29 Comparing /work/SRC/openSUSE:Factory/vgrep (Old) and /work/SRC/openSUSE:Factory/.vgrep.new (New) Package is "vgrep" Mon Jan 29 14:58:29 2018 rev:2 rq:570379 version:2.0.2 Changes: --- /work/SRC/openSUSE:Factory/vgrep/vgrep.changes 2018-01-19 11:51:18.277035764 +0100 +++ /work/SRC/openSUSE:Factory/.vgrep.new/vgrep.changes 2018-01-29 15:00:11.470859152 +0100 @@ -1,0 +2,6 @@ +Sat Jan 27 11:54:17 UTC 2018 - vrothb...@suse.com + +- Update vgrep v2.0.1 to v2.0.2 + https://github.com/vrothberg/vgrep/releases/tag/2.0.2 + +--- Old: 2.0.1.tar.gz New: 2.0.2.tar.gz Other differences: -- ++ vgrep.spec ++ --- /var/tmp/diff_new_pack.dCiOs9/_old 2018-01-29 15:00:12.762798790 +0100 +++ /var/tmp/diff_new_pack.dCiOs9/_new 2018-01-29 15:00:12.762798790 +0100 @@ -1,7 +1,7 @@ # # spec file for package vgrep # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,13 +21,13 @@ # Project name when using go tooling. %define project github.com/vrothberg/vgrep Name: vgrep -Version:2.0.1 +Version:2.0.2 Release:0 Summary:Frontend for git-grep and grep License:GPL-3.0 Group: Productivity/Text/Utilities -URL:https://github.com/vrothberg/vgrep -Source0:https://github.com/vrothberg/%{name}/archive/%{version}.tar.gz +Url:https://github.com/vrothberg/vgrep +Source0:https://github.com/vrothberg/vgrep/archive/%{version}.tar.gz BuildRequires: fdupes BuildRequires: golang(API) >= 1.6 Requires: git-core ++ 2.0.1.tar.gz -> 2.0.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vgrep-2.0.1/Makefile new/vgrep-2.0.2/Makefile --- old/vgrep-2.0.1/Makefile2017-12-05 09:13:42.0 +0100 +++ new/vgrep-2.0.2/Makefile2018-01-27 12:33:06.0 +0100 @@ -13,11 +13,11 @@ .PHONY: build build: $(GO_SRC) -$(GO) build -o $(BUILD_DIR)/$(NAME) -ldflags "-s -w -X main.version=${VERSION}-$(COMMIT)-dev" +$(GO) build -buildmode=pie -o $(BUILD_DIR)/$(NAME) -ldflags "-s -w -X main.version=${VERSION}-$(COMMIT)-dev" .PHONY: release release: $(GO_SRC) -$(GO) build -o $(BUILD_DIR)/$(NAME) -ldflags "-s -w -X main.version=${VERSION}" +$(GO) build -buildmode=pie -o $(BUILD_DIR)/$(NAME) -ldflags "-s -w -X main.version=${VERSION}" .PHONY: clean clean: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vgrep-2.0.1/VERSION new/vgrep-2.0.2/VERSION --- old/vgrep-2.0.1/VERSION 2017-12-05 09:13:42.0 +0100 +++ new/vgrep-2.0.2/VERSION 2018-01-27 12:33:06.0 +0100 @@ -1 +1 @@ -2.0.1 +2.0.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vgrep-2.0.1/vgrep.go new/vgrep-2.0.2/vgrep.go --- old/vgrep-2.0.1/vgrep.go2017-12-05 09:13:42.0 +0100 +++ new/vgrep-2.0.2/vgrep.go2018-01-27 12:33:06.0 +0100 @@ -12,6 +12,7 @@ "io/ioutil" "os" "os/exec" + "path/filepath" "regexp" "sort" "strconv" @@ -213,8 +214,25 @@ } // cachePath returns the path to the user-specific vgrep cache. -func cachePath() string { - return os.Getenv("HOME") + "/.cache/vgrep-go" +func cachePath() (string, error) { + cache := filepath.Join(os.Getenv("HOME"), ".cache/") + exists := true + + if _, err := os.Stat(cache); err != nil { + if os.IsNotExist(err) { + exists = false + } else { + return "", err + } + } + + if !exists { + if err := os.Mkdir(cache, 0700); err != nil { + return "", err + } + } + + return filepath.Join(cache, "vgrep-go"), nil } // cacheWrite uses cacheWriterHelper to write to the user-specific vgrep cache. @@ -236,7 +254,11 @@ return fmt.Errorf("error getting working dir: %v", err) } - file, err := os.OpenFile(cachePath(), os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0755) + cache, err := cachePath() + if err != nil { + return fmt.Errorf("error getting cache path: %v", err) + } + file, err := os.OpenFile(cache, os.O_WRONLY|os.O_CREATE|os.O_TRUNC,