Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use glide to handle go dependencies #934

Merged
merged 1 commit into from
Jun 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bin
src/fzf/fzf-*
gopath
pkg
Gemfile.lock
.DS_Store
doc/tags
vendor
2 changes: 0 additions & 2 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Build instructions

### Using Makefile

Makefile will set up and use its own `$GOPATH` under the project root.

```sh
# Source files are located in src directory
cd src
Expand Down
38 changes: 38 additions & 0 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package: github.com/junegunn/fzf
import:
- package: github.com/mattn/go-isatty
version: 66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb8
- package: github.com/mattn/go-runewidth
version: 14207d285c6c197daabb5c9793d63e7af9ab2d50
- package: github.com/mattn/go-shellwords
version: 02e3cf038dcea8290e44424da473dd12be796a8a
- package: github.com/gdamore/tcell
version: 44772c121bb7838819d3ba4a7e84c0c2d617328e
subpackages:
- encoding
- package: golang.org/x/crypto
version: e1a4589e7d3ea14a3352255d04b6f1a418845e5e
subpackages:
- ssh/terminal
12 changes: 2 additions & 10 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ endif
SOURCES := $(wildcard *.go */*.go)
ROOTDIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
BINDIR := $(shell dirname $(ROOTDIR))/bin
GOPATH := $(shell dirname $(ROOTDIR))/gopath
SRCDIR := $(GOPATH)/src/github.com/junegunn/fzf/src
BINARY32 := fzf-$(GOOS)_386
BINARY64 := fzf-$(GOOS)_amd64
BINARYARM5 := fzf-$(GOOS)_arm5
Expand All @@ -27,7 +25,6 @@ RELEASEARM5 := fzf-$(VERSION)-$(GOOS)_arm5
RELEASEARM6 := fzf-$(VERSION)-$(GOOS)_arm6
RELEASEARM7 := fzf-$(VERSION)-$(GOOS)_arm7
RELEASEARM8 := fzf-$(VERSION)-$(GOOS)_arm8
export GOPATH

# https://en.wikipedia.org/wiki/Uname
UNAME_M := $(shell uname -m)
Expand Down Expand Up @@ -79,13 +76,8 @@ release-all: clean test
GOOS=openbsd make release
GOOS=windows make release

$(SRCDIR):
mkdir -p $(shell dirname $(SRCDIR))
ln -s $(ROOTDIR) $(SRCDIR)

deps: $(SRCDIR) $(SOURCES)
cd $(SRCDIR) && go get -tags "$(TAGS)"
./deps
deps: $(SOURCES)
cd .. && go get -u github.com/Masterminds/glide && $(GOPATH)/bin/glide install

test: deps
SHELL=/bin/sh GOOS= go test -v -tags "$(TAGS)" ./...
Expand Down
18 changes: 0 additions & 18 deletions src/deps

This file was deleted.

2 changes: 1 addition & 1 deletion src/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/junegunn/fzf/src/tui"
"github.com/junegunn/fzf/src/util"

"github.com/junegunn/go-shellwords"
"github.com/mattn/go-shellwords"
)

const usage = `usage: fzf [options]
Expand Down
7 changes: 3 additions & 4 deletions src/tui/tcell.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ import (

"runtime"

// https://github.com/gdamore/tcell/pull/135
"github.com/junegunn/tcell"
"github.com/junegunn/tcell/encoding"
"github.com/gdamore/tcell"
"github.com/gdamore/tcell/encoding"

"github.com/junegunn/go-runewidth"
"github.com/mattn/go-runewidth"
)

func HasFullscreenRenderer() bool {
Expand Down
4 changes: 2 additions & 2 deletions src/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"time"

"github.com/junegunn/go-isatty"
"github.com/junegunn/go-runewidth"
"github.com/mattn/go-isatty"
"github.com/mattn/go-runewidth"
)

var _runeWidths = make(map[rune]int)
Expand Down
2 changes: 1 addition & 1 deletion src/util/util_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os/exec"
"syscall"

"github.com/junegunn/go-shellwords"
"github.com/mattn/go-shellwords"
)

// ExecCommand executes the given command with $SHELL
Expand Down