mirror of https://github.com/jlelse/GoBlog
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
451 B
Bash
25 lines
451 B
Bash
#!/bin/bash
|
|
|
|
FLAGS="-tags=linux,libsqlite3,sqlite_fts5"
|
|
EXTRA="
|
|
github.com/cretz/bine@master
|
|
github.com/tkrajina/gpxgo@master
|
|
github.com/yuin/goldmark-emoji@master
|
|
"
|
|
|
|
# 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 |