Skip to content

Commit

Permalink
edit go mod based on version
Browse files Browse the repository at this point in the history
  • Loading branch information
eternal-flame-AD committed Apr 23, 2021
1 parent 8e04e63 commit 4f8a752
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ update-go-mod: create-build-dir
gomod-cap -from ${BUILDDIR}/gotify-server.mod -to go.mod
rm ${BUILDDIR}/gotify-server.mod || true
cp internal/ensure/ensure.go.$(shell echo ${GOTIFY_VERSION} | egrep -o "^v[0-9]+") internal/ensure/ensure.go
go mod edit -require=github.com/gotify/server$(shell echo "/${GOTIFY_VERSION}" | egrep -o "^/v[2-9][0-9]*")@${GOTIFY_VERSION}
go mod tidy

get-gotify-server-go-version: create-build-dir
Expand Down

0 comments on commit 4f8a752

Please sign in to comment.