# If you're having problems with \`just\`, do an update

**URL:** <https://universal-blue.discourse.group/t/if-youre-having-problems-with-just-do-an-update/368>\
**Category:** General\
**Tags:** announcements\
**Created:** [January 4, 2024, 10:40pm UTC](https://universal-blue.discourse.group/t/if-youre-having-problems-with-just-do-an-update/368 "2024-01-04T22:40:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![j0rge](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/j0rge/32/8_2.png) [@j0rge](https://universal-blue.discourse.group/u/j0rge)\
**Post date:** [January 4, 2024, 10:40pm UTC](https://universal-blue.discourse.group/t/if-youre-having-problems-with-just-do-an-update/368/1 "2024-01-04T22:40:24Z")

</div>

> <https://github.com/ublue-os/config/issues/178>
>
> https://github.com/casey/just/pull/1779
> 
> Just 1.18.x is headed to Fedora soon,… I got pinged by the Fedora maintainer with this heads up. Looks like we need to move to \`!import\` instead of \`!include\` and then probably swap it out in the \`~/.justfile\`.
> 
> A nice bonus is the feature is stable! cc @ublue-os/approver @ublue-os/member

In Universal Blue images we use the [just](https://just.systems) tool as our command runner. This is useful for things like workarounds and stuff. We’re heavy users of the `include` subcommand, which needed an --unstable flag to support, almost since the beginning of the project. Just upstream development has really sprinted lately and the feature is now in mainline, but it’s called import now instead of include and no longer unstable.

# Important Update

The `just` command will be `just -l` or `ujust` for the foreseeable future as the new version has some complex interactions that will take some investigation.

Normal commands work, so `just update` etc. will work like before, this only changes the `just` command without arguments.

## Original Message

We had planned for this but missed a few places where we were using Just, so you might end up with a just error, something like:

```auto
❯ just
error: Failed to read justfile at `/usr/share/ublue-os/just/$(basename ${justfile})`: No such file or directory (os error 2)

```

If you get this do an `rpm-ostree update` to get on the latest image, and then reboot. There’s a good chance most of you will not see this but just a heads up. This was a onetime upgrade and we are only using stable features in `just` now, so we should be good to go. (Until next time, haha)

Also thanks to Aleksei Bavshin, the Fedora `just` maintainer for the heads up. Much love!

Here’s more docs on how we use Just here:

[https://universal-blue.discourse.group/docs?topic=315](https://universal-blue.discourse.group/docs?topic=315)

---

<div class="post-metadata">

**Author:** ![j0rge](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/j0rge/32/8_2.png) [@j0rge](https://universal-blue.discourse.group/u/j0rge)\
**Post date:** [January 5, 2024, 3:08am UTC](https://universal-blue.discourse.group/t/if-youre-having-problems-with-just-do-an-update/368/2 "2024-01-05T03:08:11Z")

</div>

Note, the recipes are working, but `just` by itself isn’t working, you can workaround by doing a `just -l` while we sort the issue, thanks for your patience!

---

<div class="post-metadata">

**Author:** ![nsmmrs](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/nsmmrs/32/2466_2.png) [@nsmmrs](https://universal-blue.discourse.group/u/nsmmrs)\
**Post date:** [July 5, 2024, 5:44pm UTC](https://universal-blue.discourse.group/t/if-youre-having-problems-with-just-do-an-update/368/4 "2024-07-05T17:44:04Z")

</div>

I’ve added this to my zshrc for now:

```sh
just () {
  if [[$# -gt 0]]; then
    /usr/bin/just "$@"
  else
    /usr/bin/just -l
  fi
}

```
