FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
oapi-codegen/Makefile at main · oapi-codegen/oapi-codegen · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
oapi-codegen
/
oapi-codegen
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
1.1k
Star
8.5k
Code
Issues
250
Pull requests
70
Discussions
Actions
Projects
Security and quality
4
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
oapi-codegen
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
64 lines (52 loc) · 2.51 KB
Breadcrumbs
oapi-codegen
/
Makefile
Copy path
File metadata and controls
64 lines (52 loc) · 2.51 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
GOBASE
=
$(
shell
pwd)
GOBIN
=
$(
GOBASE
)
/bin
help
:
@echo
"
This is a helper makefile for oapi-codegen
"
@echo
"
Targets:
"
@echo
"
generate: regenerate all generated files
"
@echo
"
test: run all tests
"
@echo
"
tidy tidy go mod
"
@echo
"
lint lint the project
"
$(
GOBIN
)
/golangci-lint
:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/main/install.sh
|
sh -s -- -b
$(
GOBIN
)
v2.12.2
.PHONY
: tools
tools
:
$(
GOBIN
)
/golangci-lint
lint
: tools
#
run the root module explicitly, to prevent recursive calls by re-invoking `make ...` top-level
$(
GOBIN
)
/golangci-lint run ./...
#
then, for all child modules, use a module-managed `Makefile`
git ls-files
'
**/*go.mod
'
-z
|
xargs -0 -I{} bash -xc
'
cd $$(dirname {}) && env GOBIN=$(GOBIN) make lint
'
lint-ci
: tools
#
for the root module, explicitly run the step, to prevent recursive calls
$(
GOBIN
)
/golangci-lint run ./... --output.text.path=stdout --timeout=5m
#
then, for all child modules, use a module-managed `Makefile`
git ls-files
'
**/*go.mod
'
-z
|
xargs -0 -I{} bash -xc
'
cd $$(dirname {}) && env GOBIN=$(GOBIN) make lint-ci
'
generate
:
#
for the root module, explicitly run the step, to prevent recursive calls
go generate ./...
#
then, for all child modules, use a module-managed `Makefile`
git ls-files
'
**/*go.mod
'
-z
|
xargs -0 -I{} bash -xc
'
cd $$(dirname {}) && make generate
'
test
:
#
for the root module, explicitly run the step, to prevent recursive calls
go
test
-cover ./...
#
then, for all child modules, use a module-managed `Makefile`
git ls-files
'
**/*go.mod
'
-z
|
xargs -0 -I{} bash -xc
'
cd $$(dirname {}) && make test
'
tidy
:
#
for the root module, explicitly run the step, to prevent recursive calls
go mod tidy
#
then, for all child modules, use a module-managed `Makefile`
git ls-files
'
**/*go.mod
'
-z
|
xargs -0 -I{} bash -xc
'
cd $$(dirname {}) && make tidy
'
$(
GOBIN
)
/mdtoc
:
env GOBIN=
$(
GOBIN
)
go install sigs.k8s.io/mdtoc@v1.4.0
#
Generate/update the Table of Contents in Markdown files.
#
Files must contain <!-- toc --> / <!-- /toc --> sentinel comments.
#
Use "make readme-toc-check" in CI to verify TOCs are up-to-date.
readme-toc
:
$(
GOBIN
)
/mdtoc
$(
GOBIN
)
/mdtoc --inplace README.md
readme-toc-check
:
$(
GOBIN
)
/mdtoc
$(
GOBIN
)
/mdtoc --inplace --dryrun README.md
tidy-ci
:
#
for the root module, explicitly run the step, to prevent recursive calls
go mod tidy -diff
#
then, for all child modules, use a module-managed `Makefile`
git ls-files
'
**/*go.mod
'
-z
|
xargs -0 -I{} bash -xc
'
cd $$(dirname {}) && make tidy-ci
'
Back
|
FazBrowse Home
|
New Git URL