[GH-ISSUE #213] Build with docker. #140

Closed
opened 2026-02-28 14:25:43 +03:00 by kerem · 1 comment
Owner

Originally created by @ceck90 on GitHub (Sep 17, 2025).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/213

In reference to CROSSCOMPILE.md how I can compile with specific version? Because it compile with version 0.0.0

Thanks

Originally created by @ceck90 on GitHub (Sep 17, 2025). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/213 In reference to CROSSCOMPILE.md how I can compile with specific version? Because it compile with version 0.0.0 Thanks
kerem closed this issue 2026-02-28 14:25:44 +03:00
Author
Owner

@devgianlu commented on GitHub (Sep 17, 2025):

By default the Dockerfile.build sets the commit to dev and the version to 0.0.0 because it cannot get git info inside the docker container. You can set those envs to the correct value if you want them to be accurate.

Anyways, when building that way it always builds the code you have checked out locally, the version and commit is just a formality.

<!-- gh-comment-id:3303320071 --> @devgianlu commented on GitHub (Sep 17, 2025): By default the [Dockerfile.build](https://github.com/devgianlu/go-librespot/blob/8d888e4e46e3966c9c1750bcaec3478f24e521b3/Dockerfile.build#L4) sets the commit to `dev` and the version to `0.0.0` because it cannot get git info inside the docker container. You can set those envs to the correct value if you want them to be accurate. Anyways, when building that way it always builds the code you have checked out locally, the version and commit is just a formality.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-librespot#140
No description provided.