-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: deleted deprecated proto top-level folder
- Migrated hipcheck-common/proto to the top-level proto folder - Enabled running "buf lint" in CI Signed-off-by: Patrick Casey <[email protected]>
- Loading branch information
1 parent
a02ceea
commit b9f7c01
Showing
20 changed files
with
26 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
version: v2 | ||
# tell buf to look in proto for .proto files | ||
modules: | ||
- path: proto | ||
lint: | ||
use: | ||
- STANDARD | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 0 additions & 12 deletions
12
proto/hipcheck/v1/messages/default_policy_expr_request.proto
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
proto/hipcheck/v1/messages/default_policy_expr_response.proto
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
proto/hipcheck/v1/messages/explain_default_query_request.proto
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
proto/hipcheck/v1/messages/explain_default_query_response.proto
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
use crate::workspace; | ||
use anyhow::{Context, Result}; | ||
use pathbuf::pathbuf; | ||
use which::which; | ||
use xshell::{cmd, Shell}; | ||
use xshell::Shell; | ||
|
||
use super::ci::run_buf_lint; | ||
|
||
/// Run the `buf lint` command | ||
pub fn run() -> Result<()> { | ||
let sh = Shell::new().context("could not init shell")?; | ||
which("buf").context("could not find 'buf'")?; | ||
|
||
let root = workspace::root()?; | ||
let config = pathbuf![&root, ".buf.yaml"]; | ||
let target = pathbuf![&root, "hipcheck", "proto"]; | ||
|
||
cmd!(sh, "buf lint --config {config} {target}").run()?; | ||
|
||
run_buf_lint(&sh)?; | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters