Closed douaejeouit closed 8 years ago
make
does not work on my environment. Is it ok in yours?
make output:
$ make
glide update --no-recursive
[INFO] Downloading dependencies. Please wait...
[INFO] Fetching updates for github.com/elastic/beats.
[WARN] github.com/elastic/beats is an empty directory. Fetching a new copy of the dependency.
[INFO] Fetching updates for github.com/stretchr/testify.
[WARN] github.com/stretchr/testify is an empty directory. Fetching a new copy of the dependency.
[INFO] Fetching updates for github.com/fsouza/go-dockerclient.
[WARN] github.com/fsouza/go-dockerclient is an empty directory. Fetching a new copy of the dependency.
[INFO] Setting version for github.com/fsouza/go-dockerclient to e40d8323830a4ba217ba25af3b12cf9646717be9.
[INFO] Setting version for github.com/elastic/beats to 05cd6641cf6e4fa12caa6e85588e181f8eefe1e6.
[WARN] Skipping lockfile generation because full dependency tree is not being calculated
make update
make[1]: Entering directory '/home/tmarmin/.go/src/github.com/ingensi/dockerbeat'
bash ./vendor/github.com/elastic/beats/libbeat/scripts/update.sh dockerbeat github.com/ingensi/dockerbeat ./vendor/github.com/elastic/beats/libbeat
Beat name: dockerbeat
Beat path: ../dockerbeat
Start modifying beat
Update config file
Update fields
Traceback (most recent call last):
File "./vendor/github.com/elastic/beats/libbeat/scripts/generate_fields_docs.py", line 1, in <module>
import yaml
ImportError: No module named yaml
vendor/github.com/elastic/beats/libbeat/scripts/Makefile:207: recipe for target 'update' failed
make[1]: *** [update] Error 1
make[1]: Leaving directory '/home/tmarmin/.go/src/github.com/ingensi/dockerbeat'
Makefile:14: recipe for target 'init' failed
make: *** [init] Error 2
@marminthibaut ,, i think it's normal to get this error if you cloned the project from the updates branch, it said that the directores are empty and i just noticed that the vendors are empty on the branch! I don't know why it's the case. Please try to run glide update before you run the make cmd, it should fetch the right packages. I'll be on it as soon as possible and i'll keep u updated.
IMO update should be automatic...
On Tue, Aug 23, 2016, 9:16 PM Douae Jeouit notifications@github.com wrote:
@marminthibaut https://github.com/marminthibaut ,, i think it's normal to get this error if you cloned the prject on updates branch, it said that the directory is empty and i just noticed that the vendors are empty on the branch! I don't why it's the case. Please try to run glide update before you run the make cmd, it should fetch the right packages. I'll be on it tomorrow and i'll keep u updated.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/Ingensi/dockerbeat/pull/121#issuecomment-241845367, or mute the thread https://github.com/notifications/unsubscribe-auth/ABA-RxPO5U4EntzSCK1dEj2dWrwezdXFks5qi0cAgaJpZM4JokwR .
I rectify, the updates will be done automatically!! Every thing is working as expected for me. I'll se that as soon as possible.
OK so can you post here the build procedure from a clean cloned repository?
Thanks
On Tue, Aug 23, 2016, 9:20 PM Douae Jeouit notifications@github.com wrote:
Every thing is working as expected for me. I'll se it as soon as possible.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/Ingensi/dockerbeat/pull/121#issuecomment-241846502, or mute the thread https://github.com/notifications/unsubscribe-auth/ABA-RxsMJhQcvsmQNML1FAoAdpOHWYIQks5qi0fzgaJpZM4JokwR .
@marminthibaut , when you clone the project to your local machine and you run the make, it runs glide update --no-recursive, with this option, you disable updating dependencies, it only update what is indicated in glide.yaml. The problem comes from the updated version of docker client, it has some dependencies wihch have to be fetched so that the project compiles correctly. so by runing glide with that option, not all the dependencies are fetched and naturally its KO since the compilateur can't find packages the project needs !!
I'm not sure about the new version of docker client .. Are you sure you want to update it ? !
Please try with my last commit, it should be Ok for you!
it closes #118
Current coverage is 62.81% (diff: 100%)