Compare commits

...

2 Commits

Author SHA1 Message Date
Icedream 975d38192d
Add submodules for dependencies. 2018-06-03 01:07:32 +02:00
Icedream fa3004e525
Fix binary name and root import path. 2018-06-03 01:04:33 +02:00
6 changed files with 16 additions and 4 deletions

9
.gitmodules vendored
View File

@ -14,3 +14,12 @@
[submodule "vendor/github.com/patrickmn/go-cache"] [submodule "vendor/github.com/patrickmn/go-cache"]
path = vendor/github.com/patrickmn/go-cache path = vendor/github.com/patrickmn/go-cache
url = https://github.com/patrickmn/go-cache.git url = https://github.com/patrickmn/go-cache.git
[submodule "vendor/github.com/dustin/go-humanize"]
path = vendor/github.com/dustin/go-humanize
url = https://github.com/dustin/go-humanize.git
[submodule "vendor/github.com/olekukonko/tablewriter"]
path = vendor/github.com/olekukonko/tablewriter
url = https://github.com/olekukonko/tablewriter.git
[submodule "vendor/github.com/alecthomas/kingpin"]
path = vendor/github.com/alecthomas/kingpin
url = https://github.com/alecthomas/kingpin.git

View File

@ -3,7 +3,7 @@ FROM golang:1.10 AS builder
RUN mkdir -p /go/src/app RUN mkdir -p /go/src/app
WORKDIR /go/src/app WORKDIR /go/src/app
ARG ROOT_IMPORT_PATH=github.com/icedream/embot ARG ROOT_IMPORT_PATH=git.icedream.tech/icedream/soccer-bot
COPY . /go/src/app COPY . /go/src/app
RUN \ RUN \
mkdir -p "$GOPATH/src/$(dirname "$ROOT_IMPORT_PATH")" &&\ mkdir -p "$GOPATH/src/$(dirname "$ROOT_IMPORT_PATH")" &&\
@ -13,5 +13,5 @@ RUN \
### ###
FROM scratch FROM scratch
COPY --from=builder /soccerbot / COPY --from=builder /soccer-bot /
ENTRYPOINT ["/soccerbot"] ENTRYPOINT ["/soccer-bot"]

View File

@ -12,11 +12,11 @@ import (
"net/http" "net/http"
"github.com/alecthomas/kingpin"
"github.com/dustin/go-humanize" "github.com/dustin/go-humanize"
"github.com/icedream/go-footballdata" "github.com/icedream/go-footballdata"
"github.com/olekukonko/tablewriter" "github.com/olekukonko/tablewriter"
"github.com/thoj/go-ircevent" "github.com/thoj/go-ircevent"
"gopkg.in/alecthomas/kingpin.v2"
"git.icedream.tech/icedream/soccer-bot/antispam" "git.icedream.tech/icedream/soccer-bot/antispam"
"git.icedream.tech/icedream/soccer-bot/manager" "git.icedream.tech/icedream/soccer-bot/manager"

1
vendor/github.com/alecthomas/kingpin generated vendored Submodule

@ -0,0 +1 @@
Subproject commit a39589180ebd6bbf43076e514b55f20a95d43086

1
vendor/github.com/dustin/go-humanize generated vendored Submodule

@ -0,0 +1 @@
Subproject commit 02af3965c54e8cacf948b97fef38925c4120652c

1
vendor/github.com/olekukonko/tablewriter generated vendored Submodule

@ -0,0 +1 @@
Subproject commit d4647c9c7a84d847478d890b816b7d8b62b0b279