We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ffbe91 + 68934d0 commit 36c2c1fCopy full SHA for 36c2c1f
.gitignore
@@ -70,4 +70,5 @@ fabric.properties
70
tags
71
72
trygolang
73
-.target
+.target
74
+chinook.db
Makefile
@@ -31,11 +31,20 @@ endif
31
all: clean build test
32
33
.PHONY: prepare
34
-prepare:
35
-# GO111MODULE=off go get golang.org/dl/go1.16
36
-# go1.16 download
+prepare: \
+ _go_get \
+ _download_sqlite3_database
37
+
38
+_go_get:
39
$(GOCMD) get -d ./...
40
41
+_download_sqlite3_database:
42
+ @if [ ! -e "chinook.db" ]; then\
43
+ wget https://www.sqlitetutorial.net/wp-content/uploads/2018/03/chinook.zip;\
44
+ unzip -o chinook.zip;\
45
+ rm -f chinook.zip;\
46
+ fi
47
48
.PHONY: build
49
build: prepare
50
$(GOBUILD) -race -o $(BIN_NAME) $(CMD_PKG)
0 commit comments