Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gjbae1212/findgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.6
Choose a base ref
...
head repository: gjbae1212/findgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 6 files changed
  • 1 contributor

Commits on Sep 13, 2022

  1. Upgrade Golang 1.19.

    gjbae1212 committed Sep 13, 2022
    Copy the full SHA
    8e7c193 View commit details
Showing with 607 additions and 146 deletions.
  1. +3 −1 .gitignore
  2. +11 −4 .goreleaser.yml
  3. +1 −0 .tool-versions
  4. +65 −32 go.mod
  5. +504 −98 go.sum
  6. +23 −11 local.sh
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -2,4 +2,6 @@
local_env.sh
*.bleve
findgs
dist/
dist
vendor
gopath
15 changes: 11 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -5,8 +5,6 @@ before:
- go mod tidy
builds:
- binary: findgs
id: findgs
main: ./main.go
env:
- CGO_ENABLED=0
goos:
@@ -15,15 +13,24 @@ builds:
- linux
goarch:
- amd64
- arm64
asmflags:
- all=-trimpath={{.Env.GOPATH}}
gcflags:
- all=-trimpath={{.Env.GOPATH}}
ignore:
- goos: windows
goarch: arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
files:
- README.md
changelog:
sort: asc
filters:
@@ -36,7 +43,7 @@ release:
name: findgs
brews:
- name: findgs
github:
tap:
owner: gjbae1212
name: homebrew-findgs
commit_author:
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
golang 1.19.1
97 changes: 65 additions & 32 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,42 +1,75 @@
module github.com/gjbae1212/findgs

go 1.13
go 1.19

require (
github.com/AlecAivazis/survey/v2 v2.0.5
github.com/RoaringBitmap/roaring v0.5.0 // indirect
github.com/blevesearch/bleve v1.0.9
github.com/AlecAivazis/survey/v2 v2.3.6
github.com/blevesearch/bleve v1.0.14
github.com/boltdb/bolt v1.3.1
github.com/briandowns/spinner v1.9.0
github.com/c-bata/go-prompt v0.2.3
github.com/cznic/b v0.0.0-20181122101859-a26611c4d92d // indirect
github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 // indirect
github.com/cznic/strutil v0.0.0-20181122101858-275e90344537 // indirect
github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c // indirect
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 // indirect
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 // indirect
github.com/fatih/color v1.9.0
github.com/glycerine/go-unsnap-stream v0.0.0-20190901134440-81cf024a9e0a // indirect
github.com/golang/protobuf v1.4.2 // indirect
github.com/briandowns/spinner v1.19.0
github.com/c-bata/go-prompt v0.2.6
github.com/fatih/color v1.13.0
github.com/google/go-github/v29 v29.0.3
github.com/inancgumus/screen v0.0.0-20190314163918-06e984b86ed3
github.com/jmhodges/levigo v1.0.0 // indirect
github.com/mattn/go-colorable v0.1.4
github.com/mattn/go-runewidth v0.0.8 // indirect
github.com/mattn/go-tty v0.0.3 // indirect
github.com/mattn/go-colorable v0.1.13
github.com/mitchellh/go-homedir v1.1.0
github.com/olekukonko/tablewriter v0.0.4
github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4
github.com/pkg/term v0.0.0-20190109203006-aa71e9d9e942 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20190728182440-6a916e37a237 // indirect
github.com/spf13/cobra v0.0.5
github.com/spf13/viper v1.3.2
github.com/stretchr/testify v1.4.0
github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect
github.com/tinylib/msgp v1.1.2 // indirect
github.com/olekukonko/tablewriter v0.0.5
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
github.com/spf13/cobra v1.5.0
github.com/spf13/viper v1.13.0
github.com/stretchr/testify v1.8.0
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1
)

require (
github.com/RoaringBitmap/roaring v1.2.1 // indirect
github.com/bits-and-blooms/bitset v1.3.2 // indirect
github.com/blevesearch/go-porterstemmer v1.0.3 // indirect
github.com/blevesearch/mmap-go v1.0.4 // indirect
github.com/blevesearch/segment v0.9.0 // indirect
github.com/blevesearch/snowballstem v0.9.0 // indirect
github.com/blevesearch/zap/v11 v11.0.14 // indirect
github.com/blevesearch/zap/v12 v12.0.14 // indirect
github.com/blevesearch/zap/v13 v13.0.6 // indirect
github.com/blevesearch/zap/v14 v14.0.5 // indirect
github.com/blevesearch/zap/v15 v15.0.3 // indirect
github.com/couchbase/vellum v1.0.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/go-querystring v1.0.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mattn/go-tty v0.0.4 // indirect
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mschoch/smat v0.2.0 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
github.com/pkg/term v1.2.0-beta.2 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.4.2 // indirect
github.com/spf13/afero v1.9.2 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/steveyen/gtreap v0.1.0 // indirect
github.com/subosito/gotenv v1.4.1 // indirect
github.com/willf/bitset v1.1.11 // indirect
go.etcd.io/bbolt v1.3.5 // indirect
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be
golang.org/x/sys v0.0.0-20200812155832-6a926be9bd1d // indirect
google.golang.org/protobuf v1.25.0 // indirect
go.etcd.io/bbolt v1.3.6 // indirect
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect
golang.org/x/net v0.0.0-20220909164309-bea034e7d591 // indirect
golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect
golang.org/x/term v0.0.0-20220722155259-a9ba230a4035 // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
602 changes: 504 additions & 98 deletions go.sum

Large diffs are not rendered by default.

34 changes: 23 additions & 11 deletions local.sh
Original file line number Diff line number Diff line change
@@ -13,20 +13,32 @@ function test

function release
{
phase=$1
case "$phase" in
test)
goreleaser release --snapshot --skip-publish
;;
real)
goreleaser release --rm-dist
;;
*)
echo "unsupported phase=$phase"
sudo rm -rf $CURRENT/dist
sudo rm -rf $CURRENT/gopath
export GOPATH=$CURRENT/gopath

tag=$1
if [ -z "$tag" ]
then
echo "not found tag name"
exit 1
esac
fi

git tag -a $tag -m "Add $tag"
git push origin $tag

goreleaser release --rm-dist
}

function release_test
{
sudo rm -rf $CURRENT/dist
sudo rm -rf $CURRENT/gopath
export GOPATH=$CURRENT/gopath
goreleaser release --snapshot --rm-dist
}


function set_env
{
source $CURRENT/local_env.sh