1 parent 022c351 commit ac6a51bCopy full SHA for ac6a51b
2 files changed
Makefile
@@ -1,23 +1,13 @@
1
export GO111MODULE=on
2
3
-GOFLAGS := -v -modcacherw
4
-EXTRA_GOFLAGS ?=
5
-LDFLAGS := $(LDFLAGS)
6
GO ?= go
7
8
SOURCES ?= $(shell find . -name "*.go")
9
10
-.PHONY: default
11
-default: build
12
-
13
-.PHONY: build
14
-build:
15
- $(GO) build $(GOFLAGS) -ldflags '-s -w $(LDFLAGS)' $(EXTRA_GOFLAGS)
16
17
.PHONY: test
18
test:
19
@test -z "$$(gofmt -l *.go)" || (echo "Files need to be linted. Use make fmt" && false)
20
- $(GO) test $(GOFLAGS) .
+ $(GO) test -v .
21
22
.PHONY: fmt
23
fmt:
testdata/examples/updates/updates.go
@@ -8,8 +8,9 @@ package main
import (
"fmt"
- paconf "github.com/Morganamilo/go-pacmanconf"
"log"
+
+ paconf "github.com/Morganamilo/go-pacmanconf"
)
func human(size int64) string {
0 commit comments