# Redis: errors.Join is undefined (#YG4)

**URL:** <https://forum.codecrafters.io/t/redis-errors-join-is-undefined-yg4/157>\
**Category:** Challenges\
**Tags:** challenge:redis\
**Created:** [April 19, 2024, 2:17pm UTC](https://forum.codecrafters.io/t/redis-errors-join-is-undefined-yg4/157 "2024-04-19T14:17:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![xunterr](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/xunterr/32/43_2.png) [@xunterr](https://forum.codecrafters.io/u/xunterr)\
**Post date:** [April 19, 2024, 2:17pm UTC](https://forum.codecrafters.io/t/redis-errors-join-is-undefined-yg4/157/1 "2024-04-19T14:17:30Z")

</div>

I’m going through the Redis challenge using Go, I’m currently in the 13 stage of the replication part. Tests were running perfectly, but today after pushing new changes, it can’t find a function inside the module “errors”. The module is imported and this code works perfectly on my machine. It works even if I clone the repo from a remote. I would really appreciate any suggestions you might have.

Logs:

```auto
[stage-1] $ ./spawn_redis_server.sh
[stage-1] Connecting to port 6379...
[your_program] # github.com/codecrafters-io/redis-starter-go/pkg/client
[your_program] pkg/client/client.go:42:18: undefined: errors.Join

```

My code:

```auto
package client

import (
	"errors"
	"log"
	"net"
)

//...
		if err != nil {
			errs = errors.Join(errs, err) // <-- undefined: errors.Join
		}
//...

```

---

<div class="post-metadata">

**Author:** ![xunterr](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/xunterr/32/43_2.png) [@xunterr](https://forum.codecrafters.io/u/xunterr)\
**Post date:** [April 19, 2024, 2:20pm UTC](https://forum.codecrafters.io/t/redis-errors-join-is-undefined-yg4/157/2 "2024-04-19T14:20:08Z")

</div>

It’s also worth noting that my local repository broke recently, I just did a backup, cloned the remote repository, and replaced the files with the files from the backup.

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [April 21, 2024, 12:50am UTC](https://forum.codecrafters.io/t/redis-errors-join-is-undefined-yg4/157/3 "2024-04-21T00:50:33Z")

</div>

Hey @xunterr,

It looks like your repository was created a while ago, before we upgraded to the latest Go version. errors.Join was introduced in Go 1.20, and your repository is currently running 1.19.

We don’t have an automatic way to upgrade via the app, but I’ve processed the upgrade manually for you so you should be good! We’ll have a more self-serve flow for this available soon 🙂

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [April 21, 2024, 12:51am UTC](https://forum.codecrafters.io/t/redis-errors-join-is-undefined-yg4/157/4 "2024-04-21T00:51:29Z")

</div>

Note to others reading this: If you’re seeing the same error before we ship the upgrade flow, you can either:

- Create a new repository, that’ll automatically pick the latest version
- Tag me here and I’ll process a manual upgrade on your account

---

<div class="post-metadata">

**Author:** ![xunterr](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/xunterr/32/43_2.png) [@xunterr](https://forum.codecrafters.io/u/xunterr)\
**Post date:** [April 21, 2024, 10:41am UTC](https://forum.codecrafters.io/t/redis-errors-join-is-undefined-yg4/157/5 "2024-04-21T10:41:31Z")

</div>

Thank you for your reply! Running the tests, I now get the following error:

```auto
remote: Detected changes to language_pack (old: go-1.22, new: go-1.19).
remote: This isn't supported. If you're trying to upgrade to a new language version, please try creating a new repository.
remote: If you think this is a CodeCrafters bug, please contact us at hello@codecrafters.io.
remote: 
remote: Looks like your codebase failed to build.
remote: If you think this is a CodeCrafters error, please let us know at hello@codecrafters.io.

```

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [April 21, 2024, 11:31am UTC](https://forum.codecrafters.io/t/redis-errors-join-is-undefined-yg4/157/6 "2024-04-21T11:31:39Z")

</div>

Ah, sorry forgot to mention - you’ll need to change the value of “language\_pack” in codecrafters.yml.

@xunterr could you give this a try, let me know if it works?

---

<div class="post-metadata">

**Author:** ![xunterr](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/xunterr/32/43_2.png) [@xunterr](https://forum.codecrafters.io/u/xunterr)\
**Post date:** [April 21, 2024, 12:24pm UTC](https://forum.codecrafters.io/t/redis-errors-join-is-undefined-yg4/157/7 "2024-04-21T12:24:34Z")

</div>

Yes, it works. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [April 26, 2024, 12:25pm UTC](https://forum.codecrafters.io/t/redis-errors-join-is-undefined-yg4/157/8 "2024-04-26T12:25:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [June 4, 2024, 5:43am UTC](https://forum.codecrafters.io/t/redis-errors-join-is-undefined-yg4/157/9 "2024-06-04T05:43:31Z")

</div>

Note: I’ve updated the title of this post to include the stage ID (#YG4). You can learn about the stages rename here: [Upcoming change: Stages overhaul](https://forum.codecrafters.io/t/upcoming-change-stages-overhaul/375)
