# Can I change pre-installed tool version?

**URL:** <https://discuss.bitrise.io/t/can-i-change-pre-installed-tool-version/17501>\
**Category:** Question & Answer\
**Tags:** ios\
**Created:** [July 23, 2021, 12:15am UTC](https://discuss.bitrise.io/t/can-i-change-pre-installed-tool-version/17501 "2021-07-23T00:15:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![oyama](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@oyama](https://discuss.bitrise.io/u/oyama)\
**Post date:** [July 23, 2021, 12:15am UTC](https://discuss.bitrise.io/t/can-i-change-pre-installed-tool-version/17501/1 "2021-07-23T00:15:47Z")

</div>

Hello,  
My ios application needs golang version v1.15.x to build. Can I change pre-installed tool version on Stack. I use following stack.

> <https://github.com/bitrise-io/bitrise.io/blob/master/system_reports/osx-xcode-12.5.x.log>

Best regards,  
Oyama

---

<div class="post-metadata">

**Author:** ![koral](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/koral/32/357_2.png) [@koral](https://discuss.bitrise.io/u/koral)\
**Post date:** [July 25, 2021, 11:14am UTC](https://discuss.bitrise.io/t/can-i-change-pre-installed-tool-version/17501/2 "2021-07-25T11:14:09Z")

</div>

Yeah, you can.  
Just like locally using commandline. Eg. homebrew on xcode stack.

---

<div class="post-metadata">

**Author:** ![oyama](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@oyama](https://discuss.bitrise.io/u/oyama)\
**Post date:** [July 26, 2021, 12:03pm UTC](https://discuss.bitrise.io/t/can-i-change-pre-installed-tool-version/17501/3 "2021-07-26T12:03:37Z")

</div>

Thank you for your help.  
I added following script to my workflow.

```auto
brew uninstall --force go
brew install go@1.15

```

After that I executed the workflow then I got following error.

```auto
ERRO[12:00:48] Step (xcode-archive@3.2) failed: Failed to prepare the step for execution through the required toolkit (go), error: Failed to select an appropriate Go installation for compiling the Step: Found Go version is older than required. Please run 'bitrise setup' to check and install the required version 

```

 ![changing_go_lang](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/7/748e07e1acd4641fba887585b7945fd396ea8c87.png)

---

<div class="post-metadata">

**Author:** ![koral](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/koral/32/357_2.png) [@koral](https://discuss.bitrise.io/u/koral)\
**Post date:** [July 26, 2021, 2:11pm UTC](https://discuss.bitrise.io/t/can-i-change-pre-installed-tool-version/17501/4 "2021-07-26T14:11:47Z")

</div>

So you have a dependency version conflict.  
Here are some of the possible solutions/workarounds:

1. build your app first (whatever step it exactly means) with old version of go, then update it to the current for the xcode-archive step (I assume that is not the same thing as “building”)
2. downgrade xcode-archive step to something supporting go 1.15

---

<div class="post-metadata">

**Author:** ![oyama](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@oyama](https://discuss.bitrise.io/u/oyama)\
**Post date:** [July 27, 2021, 12:11am UTC](https://discuss.bitrise.io/t/can-i-change-pre-installed-tool-version/17501/5 "2021-07-27T00:11:31Z")

</div>

Thank you for the solutions/workarounds. I will try to downgrade go-lang version to build.

By the way, my app was successfully built until 14 Jun, 2021 because osx-xcode-12.5.x stack used go 1.15.x.

Here is osx-xcode-12.5.x stack log on 14 Jun, 2021.

> <https://github.com/bitrise-io/bitrise.io/blob/e080ef23b262e12ab9496b472c8a8523e3f4a43c/system_reports/osx-xcode-12.5.x.log>

Here is osx-xcode-12.5.x stack log on Jul 5, 2021.

> <https://github.com/bitrise-io/bitrise.io/blob/1ffc0dd992b55f1684a5c000e951e0eb58d01cbc/system_reports/osx-xcode-12.5.x.log>

go version was changed from 1.15.x to 1.16.x.

---

<div class="post-metadata">

**Author:** ![oyama](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@oyama](https://discuss.bitrise.io/u/oyama)\
**Post date:** [July 27, 2021, 10:21am UTC](https://discuss.bitrise.io/t/can-i-change-pre-installed-tool-version/17501/6 "2021-07-27T10:21:24Z")

</div>

I solved the problem as following.

- go version in stack remain as 1.16 was.
- Install go 1.15 via goenv in workflow script step.
- Change GOHOME, PATH to use go 1.15 in my build script.

@koral, thank you so much.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [August 26, 2021, 10:22am UTC](https://discuss.bitrise.io/t/can-i-change-pre-installed-tool-version/17501/7 "2021-08-26T10:22:09Z")

</div>

Closed on August 26, 2021, 10:22am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
