Merge branch 'glide' of https://github.com/hinshun/fzf into hinshun-glide
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Junegunn Choi · committed by Junegunn Choi · parents 2e3dc75, 7d3575b · Browse files · 10 files·+64 added−39 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
10 files+64 added−39 removed
- other:+64 added−39 removed
Provenance
- Commit
159f30b- Tree
ca5fc53- Author
Junegunn Choi <junegunn.c@gmail.com>- Committer
Junegunn Choi <junegunn.c@gmail.com>- Parent 1
2e3dc75- Parent 2
7d3575b
10 files changed+64 added−39 removed
modified:src/tui/tcell.go+3 added-4 removed
6 unmodified lines7 "unicode/utf8"8 9 "runtime"10 11- // https://github.com/gdamore/tcell/pull/13512- "github.com/junegunn/tcell"13- "github.com/junegunn/tcell/encoding"11+ "github.com/gdamore/tcell"12+ "github.com/gdamore/tcell/encoding"13 15- "github.com/junegunn/go-runewidth"14+ "github.com/mattn/go-runewidth"15 )16 17 func HasFullscreenRenderer() bool {18 return true556 unmodified linesmodified:src/util/util_windows.go+1 added-1 removed
5 unmodified lines6 "os"7 "os/exec"8 "syscall"9 10- "github.com/junegunn/go-shellwords"10+ "github.com/mattn/go-shellwords"11 )12 13 // ExecCommand executes the given command with $SHELL14 func ExecCommand(command string) *exec.Cmd {25 unmodified linesmodified:src/util/util.go+2 added-2 removed
3 unmodified lines4 "math"5 "os"6 "time"7 8- "github.com/junegunn/go-isatty"9- "github.com/junegunn/go-runewidth"8+ "github.com/mattn/go-isatty"9+ "github.com/mattn/go-runewidth"10 )11 12 var _runeWidths = make(map[rune]int)13 100 unmodified linesdeleted:src/deps-18 removed
1-#!/usr/bin/env bash2-3-if [ -z "$GOPATH" ]; then4- echo '$GOPATH not defined'5- exit 16-fi7-8-reset() (9- cd "$GOPATH/src/$1"10- export GIT_DIR="$(pwd)/.git"11- [ "$(git rev-parse HEAD)" = "$2" ] ||12- (git fetch && git reset --hard "$2")13-)14-15-reset github.com/junegunn/go-isatty 66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb816-reset github.com/junegunn/go-runewidth 14207d285c6c197daabb5c9793d63e7af9ab2d5017-reset github.com/junegunn/go-shellwords 02e3cf038dcea8290e44424da473dd12be796a8a18-reset golang.org/x/crypto abc5fa7ad02123a41f02bf1391c9760f7586e608modified:src/Makefile+2 added-10 removed
10 unmodified lines11 12 SOURCES := $(wildcard *.go */*.go)13 ROOTDIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))14 BINDIR := $(shell dirname $(ROOTDIR))/bin15-GOPATH := $(shell dirname $(ROOTDIR))/gopath16-SRCDIR := $(GOPATH)/src/github.com/junegunn/fzf/src15 BINARY32 := fzf-$(GOOS)_38616 BINARY64 := fzf-$(GOOS)_amd6417 BINARYARM5 := fzf-$(GOOS)_arm518 BINARYARM6 := fzf-$(GOOS)_arm65 unmodified lines24 RELEASEARM5 := fzf-$(VERSION)-$(GOOS)_arm525 RELEASEARM6 := fzf-$(VERSION)-$(GOOS)_arm626 RELEASEARM7 := fzf-$(VERSION)-$(GOOS)_arm727 RELEASEARM8 := fzf-$(VERSION)-$(GOOS)_arm830-export GOPATH28 29 # https://en.wikipedia.org/wiki/Uname30 UNAME_M := $(shell uname -m)31 ifeq ($(UNAME_M),x86_64)43 unmodified lines75 GOOS=freebsd make release76 GOOS=openbsd make release77 GOOS=windows make release78 82-$(SRCDIR):83- mkdir -p $(shell dirname $(SRCDIR))84- ln -s $(ROOTDIR) $(SRCDIR)79+deps: $(SOURCES)80+ cd .. && go get -u github.com/Masterminds/glide && $(GOPATH)/bin/glide install81 86-deps: $(SRCDIR) $(SOURCES)87- cd $(SRCDIR) && go get -tags "$(TAGS)"88- ./deps89-82 test: deps83 SHELL=/bin/sh GOOS= go test -v -tags "$(TAGS)" ./...84 85 install: $(BINDIR)/fzf34 unmodified linesmodified:src/options.go+1 added-1 removed
10 unmodified lines11 "github.com/junegunn/fzf/src/algo"12 "github.com/junegunn/fzf/src/tui"13 "github.com/junegunn/fzf/src/util"14 15- "github.com/junegunn/go-shellwords"15+ "github.com/mattn/go-shellwords"16 )17 18 const usage = `usage: fzf [options]19 1230 unmodified linesmodified:.gitignore+1 added-1 removed
1 bin2 src/fzf/fzf-*3-gopath3 pkg4 Gemfile.lock5 .DS_Store6 doc/tags7+vendormodified:BUILD.md-2 removed
8 unmodified lines910111213141314151638 unmodified lines8 unmodified lines- `go` executable in $PATH
### Using Makefile
Makefile will set up and use its own `$GOPATH` under the project root.
```sh# Source files are located in src directorycd src
38 unmodified linesadded:glide.lock+38 added
1+hash: d68dd0bd779ac4ffca1e0c49ca38d85f90d5d68fa8e2d5d7db70a8ce8c662ec12+updated: 2017-06-01T15:48:41.653745249-07:003+imports:4+- name: github.com/gdamore/encoding5+ version: b23993cbb6353f0e6aa98d0ee318a34728f628b96+- name: github.com/gdamore/tcell7+ version: 44772c121bb7838819d3ba4a7e84c0c2d617328e8+ subpackages:9+ - encoding10+- name: github.com/lucasb-eyer/go-colorful11+ version: c900de9dbbc73129068f5af6a823068fc5f2308c12+- name: github.com/mattn/go-isatty13+ version: 66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb814+- name: github.com/mattn/go-runewidth15+ version: 14207d285c6c197daabb5c9793d63e7af9ab2d5016+- name: github.com/mattn/go-shellwords17+ version: 02e3cf038dcea8290e44424da473dd12be796a8a18+- name: golang.org/x/crypto19+ version: e1a4589e7d3ea14a3352255d04b6f1a418845e5e20+ subpackages:21+ - ssh/terminal22+- name: golang.org/x/sys23+ version: b90f89a1e7a9c1f6b918820b3daa7f08488c859424+ subpackages:25+ - unix26+- name: golang.org/x/text27+ version: 4ee4af566555f5fbe026368b75596286a312663a28+ subpackages:29+ - encoding30+ - encoding/charmap31+ - encoding/internal32+ - encoding/internal/identifier33+ - encoding/japanese34+ - encoding/korean35+ - encoding/simplifiedchinese36+ - encoding/traditionalchinese37+ - transform38+testImports: []added:glide.yaml+16 added
1+package: github.com/junegunn/fzf2+import:3+- package: github.com/mattn/go-isatty4+ version: 66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb85+- package: github.com/mattn/go-runewidth6+ version: 14207d285c6c197daabb5c9793d63e7af9ab2d507+- package: github.com/mattn/go-shellwords8+ version: 02e3cf038dcea8290e44424da473dd12be796a8a9+- package: github.com/gdamore/tcell10+ version: 44772c121bb7838819d3ba4a7e84c0c2d617328e11+ subpackages:12+ - encoding13+- package: golang.org/x/crypto14+ version: e1a4589e7d3ea14a3352255d04b6f1a418845e5e15+ subpackages:16+ - ssh/terminal