Skip to content

Commit

Permalink
fix: make upgrade notifications point to the correct link (#1300)
Browse files Browse the repository at this point in the history
<!-- ELLIPSIS_HIDDEN -->



> [!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`.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for fc6431a. It will automatically
update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
9t8 authored Jan 9, 2025
1 parent 30a82e9 commit 992b8ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/language_client_codegen/src/version_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
(
Expand All @@ -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 {
Expand All @@ -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"
)
};

Expand Down

0 comments on commit 992b8ff

Please sign in to comment.