Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit c916168

Browse files
authored
Trim go paths (#940)
Fixes #937
1 parent 5a78d09 commit c916168

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/steps/generic.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ pub fn run_flutter_upgrade(run_type: RunType) -> Result<()> {
6565

6666
pub fn run_go(run_type: RunType) -> Result<()> {
6767
let go = utils::require("go")?;
68-
let gopath = run_type.execute(&go).args(&["env", "GOPATH"]).check_output()?;
68+
let go_output = run_type.execute(&go).args(&["env", "GOPATH"]).check_output()?;
69+
let gopath = go_output.trim();
6970

7071
let go_global_update = utils::require("go-global-update")
7172
.unwrap_or_else(|_| PathBuf::from(gopath).join("bin/go-global-update"))

0 commit comments

Comments
 (0)