Skip to content

Commit

Permalink
vendor: Switch to using go dep
Browse files Browse the repository at this point in the history
* Adding go dep to the project

* Adding lockfile and changing README Go version
  • Loading branch information
sleibrock authored and shazow committed Oct 12, 2017
1 parent 206a907 commit 2078e13
Show file tree
Hide file tree
Showing 12 changed files with 103 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ host_key.pub
ssh-chat
*.log
.*
vendor/
19 changes: 0 additions & 19 deletions .gitmodules

This file was deleted.

5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ notifications:
language: go

go:
- 1.6
- 1.7
- 1.8
- 1.9

env:
- CGO_ENABLED=0

install:
- go get -t ./...
- go get -u github.com/golang/dep
- go get github.com/gordonklaus/ineffassign

script:
Expand Down
51 changes: 51 additions & 0 deletions Gopkg.lock

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

46 changes: 46 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
branch = "master"
name = "github.com/alexcesaro/log"

[[constraint]]
branch = "master"
name = "github.com/dustin/go-humanize"

[[constraint]]
branch = "master"
name = "github.com/howeyc/gopass"

[[constraint]]
name = "github.com/jessevdk/go-flags"
version = "1.3.0"

[[constraint]]
branch = "master"
name = "github.com/shazow/rateio"

[[constraint]]
branch = "master"
name = "golang.org/x/crypto"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $(BINARY): deps **/**/*.go **/*.go *.go
go build $(BUILDFLAGS) ./cmd/ssh-chat

deps:
go get ./...
dep ensure

build: $(BINARY)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ amd64, and ARM6 for your RaspberryPi).
## Compiling / Developing

You can compile ssh-chat by using `make build`. The resulting binary is portable and
can be run on any system with a similar OS and CPU arch. Go 1.3 or higher is required to compile.
can be run on any system with a similar OS and CPU arch. Go 1.8 or higher is required to compile.

If you're developing on this repo, there is a handy Makefile that should set
things up with `make run`.
Expand Down
1 change: 0 additions & 1 deletion vendor/github.com/alexcesaro/log
Submodule log deleted from 61e686
1 change: 0 additions & 1 deletion vendor/github.com/dustin/go-humanize
Submodule go-humanize deleted from 2fcb52
1 change: 0 additions & 1 deletion vendor/github.com/howeyc/gopass
Submodule gopass deleted from 26c6e1
1 change: 0 additions & 1 deletion vendor/github.com/jessevdk/go-flags
Submodule go-flags deleted from f2785f
1 change: 0 additions & 1 deletion vendor/github.com/shazow/rateio
Submodule rateio deleted from e8e008

0 comments on commit 2078e13

Please sign in to comment.