Skip to content

Commit 8f53e48

Browse files
committed
only assert go package if generating go types
1 parent f1188cb commit 8f53e48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,10 @@ fn override_configuration(mut config: Config, options: &Args) -> anyhow::Result<
256256
if let Some(go_package) = options.go_package.as_ref() {
257257
config.go.package = go_package.to_string();
258258
}
259-
assert_go_package_present(&config)?;
259+
260+
if let Some(go_lang) = options.language {
261+
assert_go_package_present(&config)?;
262+
}
260263
}
261264

262265
config.target_os = options.target_os.as_deref().unwrap_or_default().to_vec();

0 commit comments

Comments
 (0)