From 88979b35d462516e1765524d70a41c0d26eec911 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 24 Apr 2022 12:26:22 +0200 Subject: [chore] Update bun and sqlite dependencies (#478) * update bun + sqlite versions * step bun to v1.1.3 --- vendor/github.com/uptrace/bun/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'vendor/github.com/uptrace/bun/Makefile') diff --git a/vendor/github.com/uptrace/bun/Makefile b/vendor/github.com/uptrace/bun/Makefile index 90181e9de..690958de0 100644 --- a/vendor/github.com/uptrace/bun/Makefile +++ b/vendor/github.com/uptrace/bun/Makefile @@ -1,4 +1,5 @@ ALL_GO_MOD_DIRS := $(shell find . -type f -name 'go.mod' -exec dirname {} \; | sort) +EXAMPLE_GO_MOD_DIRS := $(shell find ./example/ -type f -name 'go.mod' -exec dirname {} \; | sort) test: set -e; for dir in $(ALL_GO_MOD_DIRS); do \ @@ -10,14 +11,20 @@ test: done go_mod_tidy: - go get -u && go mod tidy + go get -u && go mod tidy -go=1.17 set -e; for dir in $(ALL_GO_MOD_DIRS); do \ echo "go mod tidy in $${dir}"; \ (cd "$${dir}" && \ go get -u ./... && \ - go mod tidy); \ + go mod tidy -go=1.17); \ done fmt: gofmt -w -s ./ goimports -w -local github.com/uptrace/bun ./ + +run-examples: + set -e; for dir in $(EXAMPLE_GO_MOD_DIRS); do \ + echo "go run . in $${dir}"; \ + (cd "$${dir}" && go run .); \ + done -- cgit v1.3