Skip to content

Commit df35ad5

Browse files
committed
Revert "Add ignore build tags to dev importer"
This reverts commit 28a8b32.
1 parent 28a8b32 commit df35ad5

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,14 @@ See [blog post](https://dev.to/vearutop/peace-of-mind-with-github-actions-for-a-
1010

1111
Run this command in your repo root.
1212
```
13-
curl https://raw.githubusercontent.com/bool64/dev/master/makefiles/base.mk -sLo Makefile && printf "//go:build ignore\n// +build ignore\n\npackage $(go list -f '{{.Name}}' || echo 'mypackage')_test\n\nimport _ \"github.com/bool64/dev\" // Include CI/Dev scripts to project.\n" > dev_test.go && make reset-ci
13+
curl https://raw.githubusercontent.com/bool64/dev/master/makefiles/base.mk -sLo Makefile && printf "package $(go list -f '{{.Name}}' || echo 'mypackage')_test\n\nimport _ \"github.com/bool64/dev\" // Include CI/Dev scripts to project.\n" > dev_test.go && make reset-ci
1414
```
1515

1616
### Manual
1717

1818
Add a test file (e.g. `dev_test.go`) to your module with unused import.
1919

2020
```go
21-
//go:build ignore
22-
// +build ignore
23-
2421
package mymodule_test
2522

2623
import _ "github.com/bool64/dev" // Include development helpers to project.

makefiles/reset-ci.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ reset-ci: github-actions
77
@cp $(DEVGO_PATH)/makefiles/base.mk Makefile; chmod +w Makefile; git add Makefile
88
@cp $(DEVGO_PATH)/scripts/.golangci.yml .golangci.yml; chmod +w .golangci.yml; git add .golangci.yml
99
@cp $(DEVGO_PATH)/scripts/.gitignore .gitignore; chmod +w .gitignore; git add .gitignore
10-
@echo "//go:build ignore" > dev_test.go
11-
@echo "// +build ignore" >> dev_test.go
12-
@echo "" >> dev_test.go
13-
@echo "package $(shell go list -f '{{.Name}}')_test" >> dev_test.go
10+
@echo "package $(shell go list -f '{{.Name}}')_test" > dev_test.go
1411
@echo "" >> dev_test.go
1512
@echo 'import _ "github.com/bool64/dev" // Include CI/Dev scripts to project.' >> dev_test.go
1613
@git add dev_test.go

0 commit comments

Comments
 (0)