Coder Social home page Coder Social logo

pingd's People

Contributors

ericyan avatar

Watchers

 avatar  avatar

pingd's Issues

Building the docker image throws an error due to not found dependencies

Building the docker image throws an error due to not found dependencies:

# docker build .
Sending build context to Docker daemon  2.165MB
Step 1/9 : FROM golang:1.10 as builder
 ---> 6fd1f7edb6ab
Step 2/9 : ENV DEP_VERSION=0.4.1
 ---> Using cache
 ---> 4e50b57992ef
Step 3/9 : RUN set -x  && curl -fSL -o dep "https://github.com/golang/dep/releases/download/v$DEP_VERSION/dep-linux-amd64"  && echo "31144e465e52ffbc0035248a10ddea61a09bf28b00784fd3fdd9882c8cbb2315 dep" | sha256sum -c -  && chmod +x dep  && mv dep $GOPATH/bin/
 ---> Using cache
 ---> fa1c3d5a74bf
Step 4/9 : COPY . $GOPATH/src/github.com/ericyan/ping/
 ---> Using cache
 ---> 4e221b457a4c
Step 5/9 : WORKDIR $GOPATH/src/github.com/ericyan/ping/
 ---> Using cache
 ---> 063042d822d5
Step 6/9 : RUN set -x  && dep ensure -v -vendor-only  && go install ./cmd/pingd/
 ---> Running in 731475c38b69
+ dep ensure -v -vendor-only
(1/8) Wrote github.com/matttproud/[email protected]
(2/8) Wrote github.com/beorn7/perks@master
(3/8) Wrote github.com/prometheus/client_model@master
(4/8) Wrote github.com/prometheus/procfs@master
(5/8) Wrote github.com/prometheus/common@master
(6/8) Wrote golang.org/x/net@master
(7/8) Wrote github.com/prometheus/[email protected]
(8/8) Wrote github.com/golang/[email protected]
+ go install ./cmd/pingd/
cmd/pingd/main.go:14:2: cannot find package "github.com/ericyan/iputil" in any of:
	/go/src/github.com/ericyan/ping/vendor/github.com/ericyan/iputil (vendor tree)
	/usr/local/go/src/github.com/ericyan/iputil (from $GOROOT)
	/go/src/github.com/ericyan/iputil (from $GOPATH)
cmd/pingd/main.go:15:2: cannot find package "github.com/ericyan/pingd/pkg/ping" in any of:
	/go/src/github.com/ericyan/ping/vendor/github.com/ericyan/pingd/pkg/ping (vendor tree)
	/usr/local/go/src/github.com/ericyan/pingd/pkg/ping (from $GOROOT)
	/go/src/github.com/ericyan/pingd/pkg/ping (from $GOPATH)
The command '/bin/sh -c set -x  && dep ensure -v -vendor-only  && go install ./cmd/pingd/' returned a non-zero code: 1

panic: icmp.MessageBody is not *icmp.Echo

panic: interface conversion: icmp.MessageBody is *icmp.DefaultMessageBody, not *icmp.Echo

goroutine 47 [running]:
github.com/ericyan/ping.parseMessage(0x67cf, 0xc42029c000, 0x3c, 0x5dc, 0x3c)
	/home/eric/Workspace/src/github.com/ericyan/ping/pinger.go:50 +0xfaf
github.com/ericyan/ping.NewPinger.func1(0xc42026cba0)
	/home/eric/Workspace/src/github.com/ericyan/ping/pinger.go:146 +0x231
created by github.com/ericyan/ping.NewPinger
	/home/eric/Workspace/src/github.com/ericyan/ping/pinger.go:126 +0x25c

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.