Skip to content

Commit

Permalink
chore: migrate to go module.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jun 12, 2019
1 parent 5f4033b commit eebbcb4
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 285 deletions.
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,17 @@ go:

sudo: false

env:
- GO111MODULE=on

notifications:
email:
on_success: never
on_failure: change

before_install:
# Download and install dep
- curl -sI https://github.com/golang/dep/releases/latest | grep -Fi Location | tr -d '\r' | sed "s/tag/download/g" | awk -F " " '{ print $2 "/dep-linux-amd64"}' | wget --output-document=$GOPATH/bin/dep -i -
- chmod +x $GOPATH/bin/dep
- dep version

# Install linters and misspell
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.15.0
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.17.1
- golangci-lint --version

# Hugo - documentation
Expand Down
212 changes: 0 additions & 212 deletions Gopkg.lock

This file was deleted.

63 changes: 0 additions & 63 deletions Gopkg.toml

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: clean check test build dependencies checks fmt imports hugo-theme hugo-theme-clean hugo-build hugo
.PHONY: clean check test build dependencies fmt imports hugo-theme hugo-theme-clean hugo-build hugo

GOFILES := $(shell git ls-files '*.go' | grep -v '^vendor/')

Expand All @@ -10,7 +10,7 @@ BUILD_DATE := $(shell date -u '+%Y-%m-%d_%I:%M:%S%p')
default: clean check test build

dependencies:
dep ensure -v
go mod download

clean:
rm -rf dist/ cover.out
Expand Down
2 changes: 1 addition & 1 deletion choose/pullrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"strings"

"github.com/google/go-github/github"
"github.com/google/go-github/v26/github"
"github.com/ldez/prm/types"
survey "gopkg.in/AlecAivazis/survey.v1"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"os"

"github.com/google/go-github/github"
"github.com/google/go-github/v26/github"
"github.com/ldez/prm/choose"
"github.com/ldez/prm/config"
"github.com/ldez/prm/local"
Expand Down
25 changes: 25 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module github.com/ldez/prm

go 1.12

require (
github.com/containous/flaeg v1.4.1
github.com/davecgh/go-spew v1.1.1
github.com/golang/protobuf v1.2.0
github.com/google/go-github/v26 v26.0.2
github.com/google/go-querystring v1.0.0
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
github.com/ldez/go-git-cmd-wrapper v1.2.0
github.com/mattn/go-colorable v0.0.9
github.com/mattn/go-isatty v0.0.4
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
github.com/ogier/pflag v0.0.0-20160129220114-45c278ab3607
github.com/pkg/errors v0.8.1
github.com/pmezard/go-difflib v1.0.0
github.com/stretchr/testify v1.3.0
golang.org/x/net v0.0.0-20190311183353-d8887717615a
golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
google.golang.org/appengine v1.4.0
gopkg.in/AlecAivazis/survey.v1 v1.8.5
)
Loading

0 comments on commit eebbcb4

Please sign in to comment.