GithubHelp home page GithubHelp logo

Comments (7)

cf-gitbot avatar cf-gitbot commented on August 16, 2024

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/74589666.

from loggregator-release.

dliebreich avatar dliebreich commented on August 16, 2024

@zhongcy we were able to build loggregator successfully by setting our GOPATH to the loggregator main directory. What did you have GOPATH set to when you tried your build?

@DanLavine and @dliebreich
CF Community Pair

from loggregator-release.

zhongcy avatar zhongcy commented on August 16, 2024

@dliebreich I set the GOPATH to the loggregator main directory, and exe the shell in $GOPATH/bin/build.

In the beginning, build fail because that there are some package can't find, so I [go get] it. But at last, the build is also fail with the info:
loggregator/sinks/websocket
loggregator/store
../src/loggregator/store/app_service_store_watcher.go:77: cannot use event.Node (type *storeadapter.StoreNode) as type storeadapter.StoreNode in argument to appServiceFromStoreNode
../src/loggregator/store/app_service_store_watcher.go:79: cannot use event.Node (type *storeadapter.StoreNode) as type storeadapter.StoreNode in argument to w.deleteEvent
../src/loggregator/store/app_service_store_watcher.go:81: cannot use event.Node (type *storeadapter.StoreNode) as type storeadapter.StoreNode in argument to w.deleteEvent
github.com/cloudfoundry/loggregatorlib/server

from loggregator-release.

zhongcy avatar zhongcy commented on August 16, 2024

@dliebreich loggregator build success after I modify the code in /src/loggregator/store/app_service_store_watcher.go:

w.Add(appServiceFromStoreNode(event.Node)) => w.Add(appServiceFromStoreNode(_event.Node))
w.deleteEvent(event.Node) => w.deleteEvent(_event.Node)
w.deleteEvent(event.Node) => w.deleteEvent(*event.Node)

and my go version is : go1.3 linux/amd64

from loggregator-release.

 avatar commented on August 16, 2024

@zhongcy We are wondering why the build succeeds in our build environment and fails in your build environment - what could be different?

  • What is the SHA of the checked-out loggregator repository and all of its submodules?
  • What is your exact GOPATH? (We had an issue where there was an incompatible version of github.com/cloudfoundry/storeadapter somewhere else in the GOPATH)
  • If you go to a new directory, check out the latest code on the master branch, do a git submodule update --init, go get the other required packages, and try to build, does it still fail?

@DanLavine and @dliebreich
CF Community Pair

from loggregator-release.

drich10 avatar drich10 commented on August 16, 2024

@zhongcy Is this still an issue? We'll assume all is well and we will close this issue in 3 days if we don't hear otherwise.

Cheers,
@krishicks && @drich10
CF Community Pair

from loggregator-release.

zhongcy avatar zhongcy commented on August 16, 2024

@drich10
@DanLavine
@dliebreich
Fially, I checked out the new version of the codes , the code in /src/loggregator/store/app_service_store_watcher.go is changed like :w.deleteEvent(event.Node) => w.deleteEvent(*event.Node), so It built success.
So you can close this issue.

from loggregator-release.

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.