Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,16 +383,16 @@ pub fn pick_go(resolve: &Resolve, world: WorldId, go_path: Option<&Path>) -> Res
};

if let Some(go) = go {
if check_go_version(&go).is_err() {
eprintln!(
"Note: {} is not a compatible version of Go; will use downloaded version.",
go.display()
);
} else if world_needs_async(resolve, world) && check_go_async_support(&go).is_none() {
if world_needs_async(resolve, world) && check_go_async_support(&go).is_none() {
eprintln!(
"Note: {} does not support async operation; will use downloaded version.\n\
See https://github.com/golang/go/pull/76775 for details.",
go.display()
)
} else if check_go_version(&go).is_err() {
eprintln!(
"Note: {} is not a compatible version of Go; will use downloaded version.",
go.display()
);
} else {
return Ok(go);
Expand Down
Loading