Build tempo from code

I am stuck by an issue that prevent Tempo to work on Windows. While waiting for a new release with the fix, is it possible to get code and build my own version to bypass the issue?
Here is the issue: fixed the issue that windows cannot contain filenames with colons (replaced ':' with '#') by kilian-kier · Pull Request #1700 · grafana/tempo · GitHub

If you wait til after that PR is merged, we publish all commits to main to dockerhub: Docker Hub

Another option would be to run make docker-tempo from the root of the repo and publish it somewhere convenient.

Thanks, but I want to build the exe for Windows x64. Can I do that?

I believe our Makefile uses the current machine’s architecture and OS if you just run make tempo. That should build a suitable binary.

thanks @joeelliott. Let me try that.

I can build successfully on MacOS, but for Windows I got below error, build command is make tempo.

FIND: Parameter format not correct
File not found - “*.yaml”
no Go files in C:\build\tempo
process_begin: CreateProcess(NULL, uname -s, …) failed.
‘.’ is not recognized as an internal or external command,
operable program or batch file.
‘GO111MODULE’ is not recognized as an internal or external command,
operable program or batch file.
make: *** [tempo] Error 1

Yeah, I suppose that makes sense. Apologies, there’s a lot of bash stuff in there.

go build -o tempo ./cmd/tempo ?

This command works go build -o tempo ./cmd/tempo, I can build and run tempo.
Thanks.