mozilla-services / heka

DEPRECATED: Data collection and processing made easy.
http://hekad.readthedocs.org/
Other
3.4k stars 531 forks source link

[Windows] Packaging and cleaning do not work #1577

Closed aensidhe closed 8 years ago

aensidhe commented 9 years ago

I built latest release and trying to make a package for redistribution.

cpack emits something about *.nuspec and does not work, because there are no *.nuspec files:

C:\Users\popov_a\Source\Repos\misc\heka>cpack
Error serializing type chocolatey.infrastructure.app.configuration.ConfigFileSettings:
 Access to the path 'C:\ProgramData\chocolatey\config\chocolatey.config' is denied.
Error updating 'C:\ProgramData\chocolatey\config\chocolatey.config'. Please ensure you have permissions to do so:
 Access to the path 'C:\ProgramData\chocolatey\config\chocolatey.config' is denied.
Chocolatey v0.9.9.5
No .nuspec files (or more than 1) were found to build in 'C:\Users\popov_a\Source\Repos\misc\heka'. Please specify the .nuspec file or try in a different directory.

Other option with mingw32-make does not work also:

C:\Users\popov_a\Source\Repos\misc\heka>mingw32-make package
mingw32-make.EXE: *** No rule to make target 'package'.  Stop.
tianlin commented 9 years ago

Please run mingw32-make package at C:\Users\popov_a\Source\Repos\misc\heka\build

aensidhe commented 9 years ago

Ok, I had to install some go packages, old versions of some of them:

$ go get code.google.com/p/gogoprotobuf/proto
$ go get code.google.com/p/gogoprotobuf/gogoproto
$ go get code.google.com/p/gogoprotobuf/protoc-gen-gogo
$ go get github.com/rafrombrc/gomock/mockgen
$ go get github.com/mozilla-services/heka/cmd/hekad
# github.com/mozilla-services/heka/message
C:\Users\popov_a\Gopath\src\github.com\mozilla-services\heka\message\message_matcher.go:21: undefined: tree

It seems that this is an error, because mingw32-make package fails with the same message:

C:\Users\popov_a\Source\Repos\misc\heka\build>mingw32-make package
[  4%] Built target gogoprotobuf
[  9%] Built target raw
[ 13%] Built target slices
[ 18%] Built target sets
[ 22%] Built target go-ircevent
[ 26%] Built target gospec
[ 30%] Built target go-simplejson
[ 35%] Built target goamz
[ 40%] Built target g2s
[ 45%] Built target xmlpath
[ 50%] Built target go-notify
[ 54%] Built target go-uuid
[ 59%] Built target toml
[ 63%] Built target snappy-go
[ 67%] Built target amqp
[ 71%] Built target sarama
[ 75%] Built target whisper-go
[ 80%] Built target gomock
[ 80%] Built target GoPackages
[ 84%] Built target lua_sandbox
Install dll's for the mock generation and unit tests
[ 85%] Built target heka_source
[ 85%] Built target message_matcher_parser
[100%] Built target mocks
# github.com/mozilla-services/heka/message
..\..\..\..\..\Gopath\src\github.com\mozilla-services\heka\message\message_matcher.go:21: undefined: tree
CMakeFiles\hekad.dir\build.make:56: recipe for target 'CMakeFiles/hekad' failed
mingw32-make.EXE[2]: *** [CMakeFiles/hekad] Error 2
CMakeFiles\Makefile2:1530: recipe for target 'CMakeFiles/hekad.dir/all' failed
mingw32-make.EXE[1]: *** [CMakeFiles/hekad.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
mingw32-make.EXE: *** [all] Error 2
rafrombrc commented 9 years ago

You have to set the appropriate environment variables to point to your Go environment before any of the mingw32-make commands will work. On Windows the build.bat script does this for you, or you can do it without building by running the env.bat script. Are you doing this?

aensidhe commented 8 years ago

I'm sorry for non-answering. We discarded windows builds of heka. Our logs on windows are parsed now by heka in docker container. So, I close issue now.

Thanks for help to anyone.