Code Monkey home page Code Monkey logo

Comments (4)

strican avatar strican commented on May 28, 2024 4

Okay, for anyone coming across this issue, what I did was delete all the packages in my GOPATH (I moved everything under $GOPATH/src to a backup directory) and built again. This pulled everything back down and it seemed to resolve the issue. Not sure what it was but at least there's a good workaround.

from golang-samples.

broady avatar broady commented on May 28, 2024

What happens if you try to "go get" those packages individually?

from golang-samples.

jeffersonsc avatar jeffersonsc commented on May 28, 2024

I'm remove all packages and reinstall.

from golang-samples.

strican avatar strican commented on May 28, 2024

I'm hitting this issue just by including cloud.google.com/go/longrunning. Here's the build output:

..\cloud.google.com\go\longrunning\autogen\operations_client.go:26:2: cannot find package "google.golang.org/api/iterator" in any of:
	C:\Go\src\google.golang.org\api\iterator (from $GOROOT)
	C:\Users\steventricanowicz\go\src\google.golang.org\api\iterator (from $GOPATH)
..\cloud.google.com\go\longrunning\autogen\operations_client.go:27:2: cannot find package "google.golang.org/api/option" in any of:
	C:\Go\src\google.golang.org\api\option (from $GOROOT)
	C:\Users\steventricanowicz\go\src\google.golang.org\api\option (from $GOPATH)
..\cloud.google.com\go\longrunning\autogen\operations_client.go:28:2: cannot find package "google.golang.org/api/transport" in any of:
	C:\Go\src\google.golang.org\api\transport (from $GOROOT)
	C:\Users\steventricanowicz\go\src\google.golang.org\api\transport (from $GOPATH)

I'm running

  • Windows 10 1803 (Build 17134.648)
  • go version go1.11.5 windows/amd64

When I try to go get those packages individually, I get

> go get -u google.golang.org/api/iterator
# cd C:\Users\steventricanowicz\go\src\google.golang.org\api; git pull --ff-only
fatal: not a git repository (or any of the parent directories): .git
package google.golang.org/api/iterator: exit status 128

It seems weird that this is a bad install problem considering it's the exact same packages missing. But if that were the case, what's the best way to remove all the packages as @jeffersonsc did?

from golang-samples.

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.