Skip to content

Commit

Permalink
compile_go.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo committed Oct 22, 2024
1 parent 1483307 commit 6f5d48e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/install/compile_go.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn run(app: &dyn CompileGoSource, platform: Platform, version: &Version, con
let go_path = if let Ok(system_go_path) = which("go") {
system_go_path
} else {
let Some(rta_path) = load_system_go(platform, config_file, yard, log)? else {
let Some(rta_path) = load_rta_go(platform, config_file, yard, log)? else {
return Ok(Outcome::NotInstalled);
};
rta_path
Expand Down Expand Up @@ -54,7 +54,7 @@ pub fn run(app: &dyn CompileGoSource, platform: Platform, version: &Version, con
Ok(Outcome::Installed)
}

fn load_system_go(platform: Platform, config_file: &config::File, yard: &Yard, log: Log) -> Result<Option<PathBuf>> {
fn load_rta_go(platform: Platform, config_file: &config::File, yard: &Yard, log: Log) -> Result<Option<PathBuf>> {
let go = apps::go::Go {};
let requested_go_versions = if let Some(versions) = config_file.lookup(&go.name()) {
versions
Expand Down

0 comments on commit 6f5d48e

Please sign in to comment.