Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit a72b2c7

Browse files
committed
220-generate removed broken 'generate' dependencies and CI step
1 parent d189f4a commit a72b2c7

File tree

6 files changed

+2
-58
lines changed

6 files changed

+2
-58
lines changed

.bingo/Variables.mk

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,9 @@ GO ?= $(shell which go)
2222
# @echo "(re)installing $(GOBIN)/bingo-v0.2.2"
2323
# @cd .bingo && $(GO) build -modfile=bingo.mod -o=$(GOBIN)/bingo-v0.2.2 "github.com/bwplotka/bingo"
2424

25-
EMBEDMD := $(GOBIN)/embedmd
26-
$(EMBEDMD):
27-
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
28-
@echo "(re)installing $(GOBIN)/embedmd-v1.0.0"
29-
@ $(GO) install github.com/campoy/[email protected]
30-
3125
GOTEST := $(GOBIN)/gotest
32-
$(GOTEST):
26+
$(GOTEST):
3327
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
3428
@echo "(re)installing $(GOBIN)/gotest-v0.0.4"
3529
@ $(GO) install github.com/rakyll/[email protected]
3630

37-
LICHE := $(GOBIN)/liche
38-
$(LICHE):
39-
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
40-
@echo "(re)installing $(GOBIN)/liche-v0.0.0-20200229003944-f57a5d1c5be4"
41-
@ $(GO) install github.com/raviqqe/[email protected]
42-

.bingo/embedmd.mod

Lines changed: 0 additions & 5 deletions
This file was deleted.

.bingo/liche.mod

Lines changed: 0 additions & 5 deletions
This file was deleted.

.bingo/variables.env

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ fi
1010

1111
BINGO="${gobin}/bingo-v0.2.2"
1212

13-
EMBEDMD="${gobin}/embedmd-v1.0.0"
14-
1513
GOLANGCI_LINT="${gobin}/golangci-lint-v1.27.0"
1614

1715
GOTEST="${gobin}/gotest-v0.0.4"
1816

19-
LICHE="${gobin}/liche-v0.0.0-20200229003944-f57a5d1c5be4"
20-

.drone.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ steps:
5656
- name: testdata
5757
path: /drone/src/tmp/testdata/cache
5858

59-
- name: generate
60-
image: golang:1.18.4
61-
commands:
62-
# Following environment tricks are because of unintended variable capture by flag library.
63-
# This mitigates contamination happens when generating CLI flag documentation.
64-
- env -i make PATH=$(which go):$PATH HOME=$HOME PWD=$PWD GO=$(which go) GOPATH=$(go env GOPATH) generate
65-
- git diff --exit-code
66-
6759
- name: rebuild-cache
6860
image: meltwater/drone-cache:v1.2.2
6961
pull: always

Makefile

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ all: drone-cache
4141
.PHONY: setup
4242
setup: ## Setups dev environment
4343
setup: vendor ; $(info $(M) running setup for development )
44-
$(Q) make $(GOTEST) $(EMBEDMD) $(LICHE) $(GOLANGCI_LINT)
44+
$(Q) make $(GOTEST) $(GOLANGCI_LINT)
4545

4646
drone-cache: ## Runs drone-cache target
4747
drone-cache: vendor main.go $(wildcard *.go) $(wildcard */*.go) ; $(info $(M) running drone-cache )
@@ -54,32 +54,10 @@ clean: ; $(info $(M) running clean )
5454
$(Q) rm -rf target
5555
$(Q) rm -rf tmp
5656

57-
tmp/help.txt: drone-cache
58-
-mkdir -p tmp
59-
$(ROOT_DIR)/drone-cache --help &> tmp/help.txt
60-
6157
tmp/make_help.txt: Makefile
6258
-mkdir -p tmp
6359
$(Q) awk 'BEGIN {FS = ":.*##"; printf "Usage:\n make <target>\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " %-15s\t %s\n", $$1, $$2 }' $(MAKEFILE_LIST) &> tmp/make_help.txt
6460

65-
README.md: tmp/help.txt tmp/make_help.txt $(EMBEDMD)
66-
$(EMBEDMD) -w README.md
67-
68-
tmp/docs.txt: drone-cache
69-
$(Q) echo "IMPLEMENT ME"
70-
71-
DOCS.md: tmp/docs.txt $(EMBEDMD)
72-
$(EMBEDMD) -w DOCS.md
73-
74-
docs: ## Generates docs
75-
docs: clean README.md DOCS.md $(LICHE)
76-
$(Q) $(LICHE) --recursive docs --document-root .
77-
$(Q) $(LICHE) --exclude "(goreportcard.com)" --document-root . *.md
78-
79-
generate: ## Generate documentation, website and yaml files,
80-
generate: docs # site
81-
$(Q) echo "Generated!"
82-
8361
.PHONY: vendor
8462
vendor: ## Updates vendored copy of dependencies
8563
vendor: ; $(info $(M) running vendor )

0 commit comments

Comments
 (0)