Skip to content

Justfile issues #250

Description

@sanzoghenzo

Hi there!
I've started to use the template, and I'm trying to build and test it on my current system, that is NixOS.

To make things work, I had to make some ajdustments to the Justfile:

  • change each shebang from #!/usr/bin/bash to #!/usr/bin/env bash
  • change each occurence of /usr/bin/sudo to just sudo; the same with find and numfmt
  • since the primary group of my user has not the same name of the user itself, I had to change the chown command in _build-bib to
    GROUP=$(id -gn $USER)
    sudo chown -R $USER:$GROUP output/

I didn't test this on other distributions, so I'm not 100% sure this is a global fix.

Also, if jq isn't installed the build task errors with a weird issue caused by podman trying to pull the image from localhost.
The other missing commands errors are more clear, but it may be useful to state in the readme that the tasks needs:

  • jq
  • shellcheck
  • shfmt
    and of course podman and qemu + qemu-utils

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions