Skip to content

Commit

Permalink
Bump fava version to 1.27.2
Browse files Browse the repository at this point in the history
  • Loading branch information
yegle committed Feb 7, 2024
1 parent 397598b commit 32492e6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG BEANCOUNT_VERSION=2.3.6
ARG FAVA_VERSION=v1.27.1
ARG FAVA_VERSION=v1.27.2

ARG NODE_BUILD_IMAGE=16-bullseye
FROM node:${NODE_BUILD_IMAGE} as node_build_env
Expand Down
28 changes: 28 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env bash

err() { echo $1; exit 1; }

if [[ $# -ne 0 ]]
then
BEANCOUNT_VERSION=$1
else
BEANCOUNT_VERSION=$(git branch --show-current)
fi

if [[ ${BEANCOUNT_VERSION} == "master" ]]
then
err "Please run update in a non-master branch"
elif ! [[ ${BEANCOUNT_VERSION} =~ v.* ]]
then
err "Beancount version should be a string matching /v.*/, got '${BEANCOUNT_VERSION}'"
fi

BEANCOUNT_VERSION=${BEANCOUNT_VERSION#v}

REQUIREMENTS_TXT="https://raw.githubusercontent.com/beancount/beancount/${BEANCOUNT_VERSION}/requirements.txt"

TMPFILE=$(mktemp)

curl -o ${TMPFILE} ${REQUIREMENTS_TXT}

pip-compile ${TMPFILE}

0 comments on commit 32492e6

Please sign in to comment.