diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cb9675..d1c46c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 2.0.8 (2026-06-29) + +### Features + +- Set a `stackql-deploy/{version}` User-Agent on the stackql binary download client (and the template-scaffolding client used by `init`). + ## 2.0.7 (2026-04-19) ### Fixes diff --git a/Cargo.lock b/Cargo.lock index 42be9f4..82b3240 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1809,7 +1809,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "stackql-deploy" -version = "2.0.7" +version = "2.0.8" dependencies = [ "base64", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 594abf1..1de764e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "stackql-deploy" -version = "2.0.7" +version = "2.0.8" edition = "2021" rust-version = "1.75" description = "Infrastructure-as-code framework for declarative cloud resource management using StackQL" diff --git a/src/commands/init.rs b/src/commands/init.rs index 833aca0..89c4241 100644 --- a/src/commands/init.rs +++ b/src/commands/init.rs @@ -159,7 +159,10 @@ fn validate_provider(provider: Option<&str>) -> String { /// Fetches template content from a given URL. fn fetch_template(url: &str) -> Result { - let client = Client::new(); + let client = Client::builder() + .user_agent(concat!("stackql-deploy/", env!("CARGO_PKG_VERSION"))) + .build() + .map_err(|e| format!("Failed to create HTTP client: {}", e))?; let response = client .get(url) .send() diff --git a/src/utils/download.rs b/src/utils/download.rs index 78c859c..9843392 100644 --- a/src/utils/download.rs +++ b/src/utils/download.rs @@ -83,6 +83,7 @@ pub fn download_binary() -> Result { // Download the file with progress bar debug!("Downloading from {}", download_url); let client = Client::builder() + .user_agent(concat!("stackql-deploy/", env!("CARGO_PKG_VERSION"))) .timeout(std::time::Duration::from_secs(300)) .build() .map_err(|e| AppError::CommandFailed(format!("Failed to create HTTP client: {}", e)))?;