summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSebastian Holmin <sebastian.holmin@mullvad.net>2024-05-13 10:38:41 +0200
committerSebastian Holmin <sebastian.holmin@mullvad.net>2024-05-16 02:04:19 +0200
commit8ef7e68411362b0685b6af4e1d371ec143f131d1 (patch)
tree14873b3c39c9d2b51180b122aada58d6a0070ff8
parent7f7b95ba115a2edc8e3c66639ce9babecbce483c (diff)
downloadmullvadvpn-8ef7e68411362b0685b6af4e1d371ec143f131d1.tar.xz
mullvadvpn-8ef7e68411362b0685b6af4e1d371ec143f131d1.zip
Clarify side-effect in docstring
-rw-r--r--mullvad-version/build.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/mullvad-version/build.rs b/mullvad-version/build.rs
index 5d89044869..1714d54d9f 100644
--- a/mullvad-version/build.rs
+++ b/mullvad-version/build.rs
@@ -44,8 +44,9 @@ fn main() {
.unwrap();
}
-/// Returns the Mullvad product version from the corresponding metadata files,
-/// depending on target platform.
+/// Computes the Mullvad product version using the latest release on the given platform and the git
+/// hash pointed to by `HEAD`. Also triggers a rebuild of this crate when the information becomes
+/// outdated.
fn get_product_version(target: Target) -> String {
let version_file_path = match target {
Target::Android => ANDROID_VERSION_FILE_PATH,