mirror of
https://github.com/r-darwish/topgrade
synced 2024-07-08 20:16:24 +00:00
parent
5a78d09300
commit
c9161687d5
|
@ -65,7 +65,8 @@ pub fn run_flutter_upgrade(run_type: RunType) -> Result<()> {
|
|||
|
||||
pub fn run_go(run_type: RunType) -> Result<()> {
|
||||
let go = utils::require("go")?;
|
||||
let gopath = run_type.execute(&go).args(&["env", "GOPATH"]).check_output()?;
|
||||
let go_output = run_type.execute(&go).args(&["env", "GOPATH"]).check_output()?;
|
||||
let gopath = go_output.trim();
|
||||
|
||||
let go_global_update = utils::require("go-global-update")
|
||||
.unwrap_or_else(|_| PathBuf::from(gopath).join("bin/go-global-update"))
|
||||
|
|
Loading…
Reference in New Issue
Block a user