Skip to content

Commit

Permalink
switch to Go Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Feb 12, 2019
1 parent fe5a472 commit 4298a61
Show file tree
Hide file tree
Showing 7 changed files with 155 additions and 214 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
language: go

cache:
directories:
- "vendor"

go:
- "1.10"
- "1.11"
- "1.11.4"

script:
- make dep
- make build
- make lint
162 changes: 0 additions & 162 deletions Gopkg.lock

This file was deleted.

27 changes: 0 additions & 27 deletions Gopkg.toml

This file was deleted.

18 changes: 3 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
PKG := github.com/michael1011/lightningtip

GOBUILD := go build -v
GOINSTALL := go install -v
GOBUILD := GO111MODULE=on go build -v
GOINSTALL := GO111MODULE=on go install -v

GO_BIN := ${GOPATH}/bin
DEP_BIN := $(GO_BIN)/dep
LINT_BIN := $(GO_BIN)/gometalinter.v2

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

default: dep build
default: build

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

$(DEP_BIN):
@$(call print, "Fetching dep")
go get -u github.com/golang/dep/cmd/dep

GREEN := "\\033[0;32m"
NC := "\\033[0m"

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

# Dependencies

dep: $(DEP_BIN)
@$(call print, "Compiling dependencies")
dep ensure -v

# Building

build:
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# LightningTip

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).

[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.
Expand Down Expand Up @@ -33,9 +34,9 @@ That's it! The only two things you need to take care about is keeping the LND no

## How to build

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.
First of all make sure [Golang](https://golang.org/) version 1.11 or newer is correctly installed.

```
```bash
go get -d github.com/michael1011/lightningtip
cd $GOPATH/src/github.com/michael1011/lightningtip

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

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

```
```bash
cd $GOPATH/src/github.com/michael1011/lightningtip
git pull

Expand Down
41 changes: 41 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
module github.com/michael1011/lightningtip

require (
4d63.com/gochecknoglobals v0.0.0-20190118042838-abbdf6ec0afb // indirect
4d63.com/gochecknoinits v0.0.0-20180528051558-14d5915061e5 // indirect
github.com/BurntSushi/toml v0.3.1 // indirect
github.com/alecthomas/gocyclo v0.0.0-20150208221726-aa8f8b160214 // indirect
github.com/alexflint/go-arg v1.0.0 // indirect
github.com/alexkohler/nakedret v0.0.0-20171106223215-c0e305a4f690 // indirect
github.com/client9/misspell v0.3.4 // indirect
github.com/donovanhide/eventsource v0.0.0-20171031113327-3ed64d21fb0b
github.com/golang/lint v0.0.0-20181217174547-8f45f776aaf1 // indirect
github.com/gordonklaus/ineffassign v0.0.0-20180909121442-1003c8bd00dc // indirect
github.com/grpc-ecosystem/grpc-gateway v0.0.0-20170724004829-f2862b476edc // indirect
github.com/jessevdk/go-flags v1.4.0
github.com/jgautheron/goconst v0.0.0-20170703170152-9740945f5dcb // indirect
github.com/kisielk/errcheck v1.2.0 // indirect
github.com/lightningnetwork/lnd v0.0.0-20180827212353-73af09a06ae9
github.com/mattn/go-sqlite3 v1.9.0
github.com/mdempsky/maligned v0.0.0-20180708014732-6e39bd26a8c8 // indirect
github.com/mdempsky/unconvert v0.0.0-20190117010209-2db5a8ead8e7 // indirect
github.com/mibk/dupl v1.0.0 // indirect
github.com/op/go-logging v0.0.0-20160211212156-b2cb9fa56473
github.com/opennota/check v0.0.0-20180911053232-0c771f5545ff // indirect
github.com/securego/gosec v0.0.0-20190206233452-e2752bc191b3 // indirect
github.com/stripe/safesql v0.0.0-20171221195208-cddf355596fe // indirect
github.com/tsenart/deadcode v0.0.0-20160724212837-210d2dc333e9 // indirect
github.com/urfave/cli v1.20.0
github.com/walle/lll v0.0.0-20160702150637-8b13b3fbf731 // indirect
golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1 // indirect
golang.org/x/net v0.0.0-20180311174755-ae89d30ce0c6 // indirect
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 // indirect
golang.org/x/text v0.3.0 // indirect
golang.org/x/tools v0.0.0-20190211224914-44bee7e801e4 // indirect
google.golang.org/genproto v0.0.0-20180306020942-df60624c1e9b // indirect
google.golang.org/grpc v1.5.2
honnef.co/go/tools v0.0.0-20190128043916-71123fcbb8fe // indirect
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed // indirect
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b // indirect
mvdan.cc/unparam v0.0.0-20190209190245-fbb59629db34 // indirect
)
Loading

0 comments on commit 4298a61

Please sign in to comment.