-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
* Migrated to go mod as fsnotify has moved away from gopkg.in * Updated vendor folder so it works with go version <= 1.11 * Added extra Dockerfile to test building with go 1.9 as that is the lowest, working version now
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.git/ | ||
.idea/ | ||
.test/ | ||
*.iml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.test | ||
.go | ||
|
||
.idea/ | ||
*.iml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM golang:1.9 | ||
|
||
RUN mkdir -p $GOPATH/src/github.com/hpcloud/tail/ | ||
ADD . $GOPATH/src/github.com/hpcloud/tail/ | ||
|
||
# expecting to fetch dependencies successfully. | ||
RUN go get -v github.com/hpcloud/tail | ||
|
||
# expecting to run the test successfully. | ||
RUN go test -race -v github.com/hpcloud/tail | ||
|
||
# expecting to install successfully | ||
RUN go install -v github.com/hpcloud/tail | ||
RUN go install -v github.com/hpcloud/tail/cmd/gotail | ||
|
||
RUN $GOPATH/bin/gotail -h || true | ||
|
||
ENV PATH $GOPATH/bin:$PATH | ||
CMD ["gotail"] |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module github.com/hpcloud/tail | ||
|
||
go 1.11 | ||
|
||
require ( | ||
github.com/fsnotify/fsnotify v1.4.9 | ||
golang.org/x/sys v0.0.0-20200316230553-a7d97aace0b0 // indirect | ||
gopkg.in/tomb.v1 v1.0.0-20140529071818-c131134a1947 | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.