# farmOS version showing 3.x vs 3.2.1

**URL:** https://farmos.discourse.group/t/farmos-version-showing-3-x-vs-3-2-1/1987
**Category:** Hosting farmOS
**Created:** [April 24, 2024, 1:51pm UTC](https://farmos.discourse.group/t/farmos-version-showing-3-x-vs-3-2-1/1987 "2024-04-24T13:51:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jorblad](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/jorblad/32/1361_2.png) [@jorblad](https://farmos.discourse.group/u/jorblad)
#### Post date: [April 24, 2024, 1:51pm UTC](https://farmos.discourse.group/t/farmos-version-showing-3-x-vs-3-2-1/1987/1 "2024-04-24T13:51:18Z")

</div>

Looks great, but for some reason it says that I run version 3.x instead of 3.2.1.

---

<div class="post-metadata">

### Author: ![Symbioquine](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/symbioquine/32/284_2.png) [@Symbioquine](https://farmos.discourse.group/u/Symbioquine)
#### Post date: [April 24, 2024, 2:07pm UTC](https://farmos.discourse.group/t/farmos-version-showing-3-x-vs-3-2-1/1987/2 "2024-04-24T14:07:35Z")

</div>

That means that, however you’re hosting farmOS, [this line](https://github.com/farmOS/farmOS/blob/3b21346937cb48e54bfd280984c12399dfe54d95/docker/build-farmOS.sh#L73) isn’t coming into play.

For instance, if you were using a development image or following the [hosting with composer docs](https://farmos.org/hosting/composer/) prior to [this change](https://github.com/farmOS/farmOS/commit/a1b315c9026e1dca54d31fb1a20e69c4e3eb59e8), you would encounter that.

---

<div class="post-metadata">

### Author: ![jorblad](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/jorblad/32/1361_2.png) [@jorblad](https://farmos.discourse.group/u/jorblad)
#### Post date: [April 24, 2024, 2:11pm UTC](https://farmos.discourse.group/t/farmos-version-showing-3-x-vs-3-2-1/1987/3 "2024-04-24T14:11:22Z")

</div>

> [@▣🔗 Asset Link dev log](https://farmos.discourse.group/t/asset-link-dev-log/1175/50):
>
> TestMap.alink.vue

I do a combination of composer and the docker image, I install modules with composer but the farmos installation is done with the docker image.  
So that might be why it says that but that is not really a problem, more of a observation.

---

<div class="post-metadata">

### Author: ![Symbioquine](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/symbioquine/32/284_2.png) [@Symbioquine](https://farmos.discourse.group/u/Symbioquine)
#### Post date: [April 25, 2024, 2:15pm UTC](https://farmos.discourse.group/t/farmos-version-showing-3-x-vs-3-2-1/1987/4 "2024-04-25T14:15:01Z")

</div>

Perhaps I should have also mentioned that this value comes directly from the API (`/api` @ `.meta.farm.version`) so my answers above aren’t really specific to Asset Link. i.e. They are also applicable to any (most?) other places the farmOS version is displayed - like the “Installation profile” line from `/admin/reports/status`.

---

<div class="post-metadata">

### Author: ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)
#### Post date: [April 25, 2024, 3:13pm UTC](https://farmos.discourse.group/t/farmos-version-showing-3-x-vs-3-2-1/1987/5 "2024-04-25T15:13:04Z")

</div>

Yes, the farmOS version is set by this line in `farm.info.yml`: [farmOS/farm.info.yml at 3b21346937cb48e54bfd280984c12399dfe54d95 · farmOS/farmOS · GitHub](https://github.com/farmOS/farmOS/blob/3b21346937cb48e54bfd280984c12399dfe54d95/farm.info.yml#L10)

That is always set to `3.x` in the Git repository code, and our packaging scripts replace it with the actual version (from the Git tag). @Symbioquine linked to the relevant line in our `build-farmOS.sh` script.

However, if you are installing farmOS via Composer then that does not happen, so it always says `3.x`.

We might be able to move that command to a Composer script that runs after `composer install`. That would probably solve this for all contexts. 🤔
