File tree 3 files changed +14
-1
lines changed
3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
scripts /envbuilder- *
2
- .registry-cache
2
+ .registry-cache
3
+ ** /.gen-golden
Original file line number Diff line number Diff line change 1
1
GOARCH := $(shell go env GOARCH)
2
2
PWD =$(shell pwd)
3
3
4
+ GO_SRC_FILES := $(shell find . -type f -name '* .go' -not -name '* _test.go')
5
+ GO_TEST_FILES := $(shell find . -type f -not -name '* .go' -name '* _test.go')
6
+ GOLDEN_FILES := $(shell find . -type f -name '* .golden')
7
+
4
8
fmt : $(shell find . -type f -name '* .go')
5
9
go run mvdan.cc/
[email protected] -l -w
.
6
10
@@ -10,6 +14,13 @@ develop:
10
14
build : scripts/envbuilder-$(GOARCH )
11
15
./scripts/build.sh
12
16
17
+ .PHONY : update-golden-files
18
+ update-golden-files : .gen-golden
19
+
20
+ .gen-golden : $(GOLDEN_FILES ) $(GO_SRC_FILES ) $(GO_TEST_FILES )
21
+ go test . -update
22
+ @touch " $@ "
23
+
13
24
docs : options.go
14
25
go run ./scripts/docsgen/main.go
15
26
Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ func runCLI() envbuilder.Options {
181
181
}
182
182
183
183
i := cmd .Invoke ().WithOS ()
184
+ i .Args = []string {"--help" }
184
185
fakeIO (i )
185
186
err := i .Run ()
186
187
if err != nil {
You can’t perform that action at this time.
0 commit comments