# What's up with dev in the version number?

**URL:** https://meta.discourse.org/t/whats-up-with-dev-in-the-version-number/273483
**Category:** Support
**Created:** [August 1, 2023, 1:16pm UTC](https://meta.discourse.org/t/whats-up-with-dev-in-the-version-number/273483 "2023-08-01T13:16:38Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 1, 2023, 1:16pm UTC](https://meta.discourse.org/t/whats-up-with-dev-in-the-version-number/273483/1 "2023-08-01T13:16:38Z")

</div>

```plaintext
    <meta name="generator" content="Discourse 3.2.0.beta1-dev - https://github.com/discourse/discourse version 20481abefcd025fec5f7c586aacc9354bdad94ec">

```

Version now has `dev` appended. Is this on purpose?

---

<div class="post-metadata">

### Author: ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)
#### Post date: [August 1, 2023, 2:01pm UTC](https://meta.discourse.org/t/whats-up-with-dev-in-the-version-number/273483/2 "2023-08-01T14:01:39Z")

</div>

It is on purpose 🙂

But we should probably explain the reasoning behind it, somewhere in the near future..

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 1, 2023, 2:08pm UTC](https://meta.discourse.org/t/whats-up-with-dev-in-the-version-number/273483/3 "2023-08-01T14:08:50Z")

</div>

I think it broke my code that compared version numbers to decide whether to run a bootstrap, but I haven’t had time to figure out exactly how. 😿

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [August 1, 2023, 2:18pm UTC](https://meta.discourse.org/t/whats-up-with-dev-in-the-version-number/273483/4 "2023-08-01T14:18:01Z")

</div>

Here’s a summary of the changes:

> [@From Discourse 3.2: adding -dev suffix to beta versions under active development](https://meta.discourse.org/t/starting-in-discourse-3-2-were-introducing-dev-to-in-development-beta-versions/273490):
>
> On tests-passed, starting with 3.2.0.beta1-dev, Discourse core version numbers will include a -dev suffix to indicate that they’re not the final ‘release’ versions of a beta. This suffix doesn’t appear in the UI, so this is a technicality which will have no impact on the vast majority of people. For the technical details, see below: In the beta series for Discourse 3.1 and below, our versioning strategy was to ‘release’ a beta, and then leave the version number in tests-passed exactly the sam…

> [@pfaffman](#):
>
> I think it broke my code

These new version numbers are still valid semver, and are parseable by `Gem::Version.new`, so that’s the best way to compare them.

If you were trying to parse `version.rb` manually, then the relevant change might be [this one](https://github.com/discourse/discourse/commit/6222a6033592b646fae22c06984157fb64c9c767) which restructured the file to support this new suffix.

If you can share the relevant code, then I’m sure we can help to figure it out.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 1, 2023, 2:22pm UTC](https://meta.discourse.org/t/whats-up-with-dev-in-the-version-number/273483/5 "2023-08-01T14:22:27Z")

</div>

> [@david](#):
>
> If you can share the relevant code, then I’m sure we can help to figure it out.

Thanks! I"m not sure yet if it’s the Ansible code that compares the versions or my code that retrieves it. I suspect it’s my code and it’s a problem of my own making.

For the reasons that the `-dev` got added, I suspect that I should be checking for a commit hash and then figuring out whether to upgrade based on that.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 31, 2023, 2:22pm UTC](https://meta.discourse.org/t/whats-up-with-dev-in-the-version-number/273483/6 "2023-08-31T14:22:36Z")

</div>

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