1
mirror of https://github.com/jlelse/GoBlog synced 2024-07-16 00:52:58 +00:00
GoBlog/updateDeps.sh

21 lines
350 B
Bash
Executable File

#!/bin/bash
FLAGS="-tags=linux,libsqlite3,sqlite_fts5"
EXTRA=""
# Update all direct dependencies to latest version
echo "Check for updates..."
# 1. Update dependencies
GOFLAGS=$FLAGS go get -t -u ./...
# 2. Update extra packages
for e in $EXTRA
do
echo ""
echo "Update $e"
GOFLAGS=$FLAGS go get $e
done
# 4. Tidy
GOFLAGS=$FLAGS go mod tidy