Skip to content

Commit 4298a61

Browse files
committed
switch to Go Modules
1 parent fe5a472 commit 4298a61

File tree

7 files changed

+155
-214
lines changed

7 files changed

+155
-214
lines changed

.travis.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
language: go
22

3-
cache:
4-
directories:
5-
- "vendor"
6-
73
go:
8-
- "1.10"
9-
- "1.11"
4+
- "1.11.4"
105

116
script:
12-
- make dep
137
- make build
148
- make lint

Gopkg.lock

Lines changed: 0 additions & 162 deletions
This file was deleted.

Gopkg.toml

Lines changed: 0 additions & 27 deletions
This file was deleted.

Makefile

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
11
PKG := github.com/michael1011/lightningtip
22

3-
GOBUILD := go build -v
4-
GOINSTALL := go install -v
3+
GOBUILD := GO111MODULE=on go build -v
4+
GOINSTALL := GO111MODULE=on go install -v
55

66
GO_BIN := ${GOPATH}/bin
7-
DEP_BIN := $(GO_BIN)/dep
87
LINT_BIN := $(GO_BIN)/gometalinter.v2
98

10-
HAVE_DEP := $(shell command -v $(DEP_BIN) 2> /dev/null)
119
HAVE_LINTER := $(shell command -v $(LINT_BIN) 2> /dev/null)
1210

13-
default: dep build
11+
default: build
1412

1513
$(LINT_BIN):
1614
@$(call print, "Fetching gometalinter.v2")
1715
go get -u gopkg.in/alecthomas/gometalinter.v2
1816

19-
$(DEP_BIN):
20-
@$(call print, "Fetching dep")
21-
go get -u github.com/golang/dep/cmd/dep
22-
2317
GREEN := "\\033[0;32m"
2418
NC := "\\033[0m"
2519

@@ -39,12 +33,6 @@ LINT = $(LINT_BIN) \
3933
grep -v 'ALL_CAPS\|OP_' 2>&1 | \
4034
tee /dev/stderr
4135

42-
# Dependencies
43-
44-
dep: $(DEP_BIN)
45-
@$(call print, "Compiling dependencies")
46-
dep ensure -v
47-
4836
# Building
4937

5038
build:

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# LightningTip
2+
23
A simple way to accept tips via the Lightning Network on your website. If want to tip me you can find my instance of LightningTip [here](https://michael1011.at/lightning.html).
34

45
[robclark56](https://github.com/robclark56) forked LightningTip and rewrote the backend in **PHP**. His fork is called [LightningTip-PHP](https://github.com/robclark56/lightningtip) and is a great alternative if you are not able to run the executable.
@@ -33,9 +34,9 @@ That's it! The only two things you need to take care about is keeping the LND no
3334

3435
## How to build
3536

36-
First of all make sure [Golang](https://golang.org/) and [Dep](https://github.com/golang/dep) are both correctly installed. Golang version 1.10 or newer is recommended.
37+
First of all make sure [Golang](https://golang.org/) version 1.11 or newer is correctly installed.
3738

38-
```
39+
```bash
3940
go get -d github.com/michael1011/lightningtip
4041
cd $GOPATH/src/github.com/michael1011/lightningtip
4142

@@ -48,7 +49,7 @@ To start run `$GOPATH/bin/lightningtip` or follow the instructions below to setu
4849

4950
Make sure you stop any running LightningTip process before upgrading, then pull from source as follows:
5051

51-
```
52+
```bash
5253
cd $GOPATH/src/github.com/michael1011/lightningtip
5354
git pull
5455

go.mod

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
module github.com/michael1011/lightningtip
2+
3+
require (
4+
4d63.com/gochecknoglobals v0.0.0-20190118042838-abbdf6ec0afb // indirect
5+
4d63.com/gochecknoinits v0.0.0-20180528051558-14d5915061e5 // indirect
6+
github.com/BurntSushi/toml v0.3.1 // indirect
7+
github.com/alecthomas/gocyclo v0.0.0-20150208221726-aa8f8b160214 // indirect
8+
github.com/alexflint/go-arg v1.0.0 // indirect
9+
github.com/alexkohler/nakedret v0.0.0-20171106223215-c0e305a4f690 // indirect
10+
github.com/client9/misspell v0.3.4 // indirect
11+
github.com/donovanhide/eventsource v0.0.0-20171031113327-3ed64d21fb0b
12+
github.com/golang/lint v0.0.0-20181217174547-8f45f776aaf1 // indirect
13+
github.com/gordonklaus/ineffassign v0.0.0-20180909121442-1003c8bd00dc // indirect
14+
github.com/grpc-ecosystem/grpc-gateway v0.0.0-20170724004829-f2862b476edc // indirect
15+
github.com/jessevdk/go-flags v1.4.0
16+
github.com/jgautheron/goconst v0.0.0-20170703170152-9740945f5dcb // indirect
17+
github.com/kisielk/errcheck v1.2.0 // indirect
18+
github.com/lightningnetwork/lnd v0.0.0-20180827212353-73af09a06ae9
19+
github.com/mattn/go-sqlite3 v1.9.0
20+
github.com/mdempsky/maligned v0.0.0-20180708014732-6e39bd26a8c8 // indirect
21+
github.com/mdempsky/unconvert v0.0.0-20190117010209-2db5a8ead8e7 // indirect
22+
github.com/mibk/dupl v1.0.0 // indirect
23+
github.com/op/go-logging v0.0.0-20160211212156-b2cb9fa56473
24+
github.com/opennota/check v0.0.0-20180911053232-0c771f5545ff // indirect
25+
github.com/securego/gosec v0.0.0-20190206233452-e2752bc191b3 // indirect
26+
github.com/stripe/safesql v0.0.0-20171221195208-cddf355596fe // indirect
27+
github.com/tsenart/deadcode v0.0.0-20160724212837-210d2dc333e9 // indirect
28+
github.com/urfave/cli v1.20.0
29+
github.com/walle/lll v0.0.0-20160702150637-8b13b3fbf731 // indirect
30+
golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1 // indirect
31+
golang.org/x/net v0.0.0-20180311174755-ae89d30ce0c6 // indirect
32+
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 // indirect
33+
golang.org/x/text v0.3.0 // indirect
34+
golang.org/x/tools v0.0.0-20190211224914-44bee7e801e4 // indirect
35+
google.golang.org/genproto v0.0.0-20180306020942-df60624c1e9b // indirect
36+
google.golang.org/grpc v1.5.2
37+
honnef.co/go/tools v0.0.0-20190128043916-71123fcbb8fe // indirect
38+
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed // indirect
39+
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b // indirect
40+
mvdan.cc/unparam v0.0.0-20190209190245-fbb59629db34 // indirect
41+
)

0 commit comments

Comments
 (0)