Coder Social home page Coder Social logo

Error: Cant find package about grpcui HOT 9 CLOSED

fullstorydev avatar fullstorydev commented on May 9, 2024
Error: Cant find package

from grpcui.

Comments (9)

jhump avatar jhump commented on May 9, 2024 3

@ameetchhatwal, looks like the issue is the go get step. You are only doing go get for the base package, not for the cmd/grpcui sub-package. That means that go get is not crawling and installing the deps for the command, only for the github.com/fullstorydev/grpcui package (which does not depend on those two items, hence they are not present).

Either get the right package:

go get -d github.com/fullstorydev/grpcui/cmd/grpcui

Or get all of 'em:

go get -d github.com/fullstorydev/grpcui/...

from grpcui.

jhump avatar jhump commented on May 9, 2024

What version of Go/image are you using? Are you using Go modules? It would be more helpful if you could provide enough details for me to repro.

from grpcui.

ameetchhatwal avatar ameetchhatwal commented on May 9, 2024

I am using this Dockerfile to build a container and launch the grpcui

FROM golang:1.12.4-stretch
ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
#Just Download the GO package
RUN go get -d github.com/fullstorydev/grpcui
# Copy the bindata for custom header and query param support
COPY grpcui/webform/bindata.go /go/src/github.com/fullstorydev/grpcui/internal/resources/webform/
# Install the updated GO package
RUN go install github.com/fullstorydev/grpcui
# Install the cmd line binary
RUN go install github.com/fullstorydev/grpcui/cmd/grpcui
COPY grpcui/scripts/ /usr/local/scripts/
RUN chmod +x /usr/local/scripts/*.sh
ENV PATH /usr/local/scripts/:$PATH
EXPOSE 31415
ENTRYPOINT ["/tini", "-s", "--"]
CMD ["start.sh"]

This use to work, until last week and was throwing error I posted above in the step
RUN go install github.com/fullstorydev/grpcui/cmd/grpcui
and upon looking there was a change made, and it seem related to the new imports in grpcui cmd.
FYI I am adding some default headers to i change the webform.js, which is why I am copying the bindata.go

Please let me know if you need more info. My go local machine go version is 1.14.3. I am not using go modules.

from grpcui.

ameetchhatwal avatar ameetchhatwal commented on May 9, 2024

That makes sense. I will try that. Thanks a lot.

from grpcui.

josephharrington avatar josephharrington commented on May 9, 2024

I ran into this as well. Should the install doc be updated to reflect this?
https://github.com/fullstorydev/grpcui#installation

from grpcui.

plunkettscott avatar plunkettscott commented on May 9, 2024

Followed the installation and had the same problem too. I think the docs should be updated to reflect the proper go get command for those looking for a copy/paste install.

from grpcui.

plunkettscott avatar plunkettscott commented on May 9, 2024

I can PR it if you want.

from grpcui.

jhump avatar jhump commented on May 9, 2024

@plunkettscott, thanks for the offer. But it is a tiny change, so I just made it. Sorry for the confusion.

from grpcui.

plunkettscott avatar plunkettscott commented on May 9, 2024

Thanks @jhump

from grpcui.

Related Issues (20)

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.