Comments (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.
What happens if you try to "go get" those packages individually?
from golang-samples.
I'm remove all packages and reinstall.
from golang-samples.
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)
- media/videostitcher: TestListLiveAdTagDetails failed HOT 1
- run/testing: TestRendererService failed HOT 1
- Provide a golang example to pass data out of firestore transaction
- pubsublite/admin: TestTopicAdmin failed HOT 1
- container_registry/container_analysis: TestPubSub failed HOT 1
- storagetransfer: TestDownloadToPosix failed HOT 2
- storage/notifications: TestNotifications failed HOT 3
- container_registry/container_analysis: TestCreateNote failed HOT 1
- run/testing: TestEditorService failed HOT 1
- cloudsql/mysql/database-sql: TestGetVotes failed HOT 1
- securitycenter/muteconfig: TestSetUnmuteFinding failed HOT 2
- securitycenter/muteconfig: TestBulkMuteFinding failed HOT 2
- `context.TODO()` --> `context.Background()`, for consistency
- pubsub/subscriptions: TestPullMsgsAsync failed HOT 1
- storagetransfer: TestGetLatestTransferOperation failed HOT 1
- storage/service_account/hmac: TestDeleteKey failed HOT 2
- storage: add object retention samples
- healthcare: TestDICOMStore failed HOT 1
- media/videostitcher: TestListSlates failed HOT 1
- datacatalog/datacatalog_quickstart: TestApp failed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from golang-samples.