Add note in code so one does not forget next time

This commit is contained in:
Louis Dureuil 2023-02-10 15:50:21 +01:00
parent e1ed4bc750
commit 54240db495
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
use vergen::{vergen, Config, SemverKind};
fn main() {
// Note: any code that needs VERGEN_ environment variables should take care to define them manually in the Dockerfile and pass them
// in the corresponding GitHub workflow (publish_docker.yml).
// This is due to the Dockerfile building the binary outside of the git directory.
let mut config = Config::default();
// allow using non-annotated tags
*config.git_mut().semver_kind_mut() = SemverKind::Lightweight;