{"revision": {"id": "f3e1f233-2f95-11f1-80e3-e86a64d24d78", "node_id": "f3e12ab2-2f95-11f1-9e11-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Heka build environment\r\n############################\r\n\r\ndownload and install go\r\n\r\n.. code-block:: bash\r\n\r\n wget http://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz\r\n\r\n sudo tar -C /usr/local -xzf go1.2.1.linux-amd64.tar.gz\r\n\r\n # this is a hack, use soft links or install in the proper location the first time\r\n sudo mv /usr/local/go/* /usr/bin\r\n\r\n\r\n\r\n\r\nBuild heka\r\n==============\r\n\r\n.. code-block:: bash\r\n\r\n source build.sh\r\n\r\nhow I resolved regexp default delimiter defect\r\n--------------------------------------------------------\r\n\r\nThis patch resolves a defect that causes the regexp default\r\nconfig delimiter to always be clobbered, now we check before we step.\r\n\r\n\t`modified:   plugins/tcp/tcp_input.go`\r\n\r\n\r\nHere is the manual test case:\r\n\r\n.. code-block:: toml\r\n\r\n    [TcpInput]\r\n    address = \"127.0.0.1:5565\"\r\n    parser_type = \"regexp\"\r\n\r\n    [STDOUT]\r\n    type = \"LogOutput\"\r\n    message_matcher = \"TRUE\"\r\n    payload_only = true\r\n\r\nand I used netcat to test:\r\n\r\n\r\n.. code-block:: bash\r\n\r\n    nc 127.0.0.1 5565\r\n    hello, heka!\r\n\r\nI tried to run the unit tests in the code base with `go test` but I got errors about missing libraries ...\r\n\r\nOk, I learned from reviewing TravisCI output that I needed `sudo apt-get install protobuf-compiler` in order to run `go test`. ", "source_format": "rst", "revision_number": 4, "created": 1395879853000}}