#!/bin/bash
# This script is used to ensure that the go.mod file is up to date.

set -euo pipefail

go mod tidy

if [ ! -z "$(git status --porcelain)" ]; then
    git status
    echo
    echo "The go.mod is not up to date."
    exit 1
fi
