GithubHelp home page GithubHelp logo

go-demo-2's People

Contributors

svalevka avatar vfarcic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

go-demo-2's Issues

Possibly depriacted code in go example causes go test fail in docker image

While building the docker image directly inside the kluster (Chapter 8 Page 158) the following error message appears:


/go-demo-2 # docker image build -t vfarcic/go-demo-2:beta .
Sending build context to Docker daemon  106.5kB
Step 1/15 : FROM golang:1.9 AS build
 ---> ef89ef5c42a9
Step 2/15 : ADD . /src
 ---> Using cache
 ---> 65c29cf1b0b7
Step 3/15 : WORKDIR /src
 ---> Using cache
 ---> 99679df1b2ef
Step 4/15 : RUN go get -d -v -t
 ---> Using cache
 ---> ea45068d5f65
Step 5/15 : RUN go test --cover -v ./... --run UnitTest
 ---> Running in 68e693711e38
# _/src
/tmp/go-build021239558/_/src/_test/_obj_test/main.go:173:9: undefined: prometheus.Handler
FAIL	_/src [build failed]
The command '/bin/sh -c go test --cover -v ./... --run UnitTest' returned a non-zero code: 2

I have looked up the issue in Go forums, and maybe the library packages pulled during the build do not support this usage of Prometheus.

Cheers

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.