From 992b8ff0a894d5d1cc804637479ed5534a5eb0a3 Mon Sep 17 00:00:00 2001
From: David Li <63334933+9t8@users.noreply.github.com>
Date: Thu, 9 Jan 2025 08:53:14 -0800
Subject: [PATCH] fix: make upgrade notifications point to the correct link
(#1300)
> [!IMPORTANT]
> Update outdated documentation link in `version_check.rs` to the
correct BAML upgrade guide.
>
> - **Links**:
> - Update outdated documentation link in `check_version()` in
`version_check.rs` to
`https://docs.boundaryml.com/guide/development/upgrade-baml-versions`.
>
> This description was created by [](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)
for fc6431a62e02d4685e5f098464334025307d86e7. It will automatically
update as commits are pushed.
---
engine/language_client_codegen/src/version_check.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/engine/language_client_codegen/src/version_check.rs b/engine/language_client_codegen/src/version_check.rs
index cb4f6e9b7..7d4c9b38d 100644
--- a/engine/language_client_codegen/src/version_check.rs
+++ b/engine/language_client_codegen/src/version_check.rs
@@ -86,7 +86,7 @@ pub fn check_version(
GeneratorType::VSCode => format!("Update the 'version' in your BAML generator config to '{}' to match the VSCode extension version.", runtime_version),
GeneratorType::CLI | GeneratorType::VSCodeCLI => format!("Update the 'version' in your BAML generator config to '{}' to match the installed baml package version.", runtime_version),
},
- "https://docs.boundaryml.com/docs/calling-baml/generate-baml-client#troubleshooting-version-conflicts"
+ "https://docs.boundaryml.com/guide/development/upgrade-baml-versions"
)
} else if matches!(generator_language, GeneratorOutputType::OpenApi) {
(
@@ -98,7 +98,7 @@ pub fn check_version(
format!("Use BAML v{} to match the version in the BAML generator config, like so: npx @boundaryml/baml@{} generate", gen_version, gen_version)
},
},
- "https://docs.boundaryml.com/docs/calling-baml/generate-baml-client#troubleshooting-version-conflicts"
+ "https://docs.boundaryml.com/guide/development/upgrade-baml-versions"
)
} else {
let update_instruction = match generator_language {
@@ -120,7 +120,7 @@ pub fn check_version(
format!("Update your installed BAML CLI package to version '{}' to match the version in the BAML generator config: {}", gen_version, update_instruction)
},
},
- "https://docs.boundaryml.com/docs/calling-baml/generate-baml-client#troubleshooting-version-conflicts"
+ "https://docs.boundaryml.com/guide/development/upgrade-baml-versions"
)
};