diff --git a/CHANGELOG.md b/CHANGELOG.md index 11e31a1a..a7e39c93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v0.11.3 - 2022-05-11 + +## Fixed + +- incorrectly silenced stdin + ## v0.11.2 - 2022-05-11 ## Fixed diff --git a/Cargo.lock b/Cargo.lock index 25975abe..16cf6102 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1616,7 +1616,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "squawk" -version = "0.11.1" +version = "0.11.3" dependencies = [ "atty", "base64 0.12.3", diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 180f779e..242d475d 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "squawk" -version = "0.11.1" +version = "0.11.3" authors = ["Steve Dignam "] edition = "2018" license = "GPL-3.0" diff --git a/cli/src/reporter.rs b/cli/src/reporter.rs index 5edd71ce..67688ddd 100644 --- a/cli/src/reporter.rs +++ b/cli/src/reporter.rs @@ -147,10 +147,10 @@ pub fn check_files( let sql = get_sql_from_stdin()?; // ignore stdin if it's empty. if sql.trim().is_empty() { + info!("ignoring empty stdin"); + } else { let path = stdin_path.unwrap_or_else(|| "stdin".into()); process_violations(&sql, &path)?; - } else { - info!("ignoring empty stdin"); } } diff --git a/package.json b/package.json index be106179..4fa59eda 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "0.11.1", + "version": "0.11.3", "description": "linter for PostgreSQL, focused on migrations", "repository": "git@github.com:sbdchd/squawk.git", "author": "Steve Dignam ",