Skip to content

Commit c4ed7ab

Browse files
committed
chore: use mdox instead of embedmd
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
1 parent 8095fd5 commit c4ed7ab

File tree

9 files changed

+1027
-38
lines changed

9 files changed

+1027
-38
lines changed

.bingo/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# But not these files:
66
!.gitignore
77
!*.mod
8+
!*.sum
89
!README.md
910
!Variables.mk
1011
!variables.env

.bingo/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ This is directory which stores Go modules with pinned buildable package that is
55
* Run `bingo get` to install all tools having each own module file in this directory.
66
* Run `bingo get <tool>` to install <tool> that have own module file in this directory.
77
* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $(<upper case tool name>) variable where <tool> is the .bingo/<tool>.mod.
8-
* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool
8+
* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool.
9+
* For go: Import `.bingo/variables.go` to for variable names.
910
* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies.
1011

1112
## Requirements

.bingo/Variables.mk

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.3. DO NOT EDIT.
1+
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.9. DO NOT EDIT.
22
# All tools are designed to be build inside $GOBIN.
3+
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
34
GOPATH ?= $(shell go env GOPATH)
45
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
56
GO ?= $(shell which go)
67

7-
# Bellow generated variables ensure that every time a tool under each variable is invoked, the correct version
8+
# Below generated variables ensure that every time a tool under each variable is invoked, the correct version
89
# will be used; reinstalling only if needed.
910
# For example for embedmd variable:
1011
#
@@ -17,38 +18,44 @@ GO ?= $(shell which go)
1718
# @$(EMBEDMD) <flags/args..>
1819
#
1920
EMBEDMD := $(GOBIN)/embedmd-v1.0.0
20-
$(EMBEDMD): .bingo/embedmd.mod
21+
$(EMBEDMD): $(BINGO_DIR)/embedmd.mod
2122
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
2223
@echo "(re)installing $(GOBIN)/embedmd-v1.0.0"
23-
@cd .bingo && $(GO) build -mod=mod -modfile=embedmd.mod -o=$(GOBIN)/embedmd-v1.0.0 "github.com/campoy/embedmd"
24+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=embedmd.mod -o=$(GOBIN)/embedmd-v1.0.0 "github.com/campoy/embedmd"
2425

2526
GOJSONTOYAML := $(GOBIN)/gojsontoyaml-v0.0.0-20200602132005-3697ded27e8c
26-
$(GOJSONTOYAML): .bingo/gojsontoyaml.mod
27+
$(GOJSONTOYAML): $(BINGO_DIR)/gojsontoyaml.mod
2728
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
2829
@echo "(re)installing $(GOBIN)/gojsontoyaml-v0.0.0-20200602132005-3697ded27e8c"
29-
@cd .bingo && $(GO) build -mod=mod -modfile=gojsontoyaml.mod -o=$(GOBIN)/gojsontoyaml-v0.0.0-20200602132005-3697ded27e8c "github.com/brancz/gojsontoyaml"
30+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=gojsontoyaml.mod -o=$(GOBIN)/gojsontoyaml-v0.0.0-20200602132005-3697ded27e8c "github.com/brancz/gojsontoyaml"
3031

3132
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.45.2
32-
$(GOLANGCI_LINT): .bingo/golangci-lint.mod
33+
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
3334
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
3435
@echo "(re)installing $(GOBIN)/golangci-lint-v1.45.2"
35-
@cd .bingo && $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.45.2 "github.com/golangci/golangci-lint/cmd/golangci-lint"
36+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.45.2 "github.com/golangci/golangci-lint/cmd/golangci-lint"
3637

3738
JSONNET := $(GOBIN)/jsonnet-v0.16.0
38-
$(JSONNET): .bingo/jsonnet.mod
39+
$(JSONNET): $(BINGO_DIR)/jsonnet.mod
3940
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
4041
@echo "(re)installing $(GOBIN)/jsonnet-v0.16.0"
41-
@cd .bingo && $(GO) build -mod=mod -modfile=jsonnet.mod -o=$(GOBIN)/jsonnet-v0.16.0 "github.com/google/go-jsonnet/cmd/jsonnet"
42+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=jsonnet.mod -o=$(GOBIN)/jsonnet-v0.16.0 "github.com/google/go-jsonnet/cmd/jsonnet"
4243

4344
JSONNETFMT := $(GOBIN)/jsonnetfmt-v0.16.0
44-
$(JSONNETFMT): .bingo/jsonnetfmt.mod
45+
$(JSONNETFMT): $(BINGO_DIR)/jsonnetfmt.mod
4546
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
4647
@echo "(re)installing $(GOBIN)/jsonnetfmt-v0.16.0"
47-
@cd .bingo && $(GO) build -mod=mod -modfile=jsonnetfmt.mod -o=$(GOBIN)/jsonnetfmt-v0.16.0 "github.com/google/go-jsonnet/cmd/jsonnetfmt"
48+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=jsonnetfmt.mod -o=$(GOBIN)/jsonnetfmt-v0.16.0 "github.com/google/go-jsonnet/cmd/jsonnetfmt"
4849

4950
KUBEVAL := $(GOBIN)/kubeval-v0.0.0-20201005082916-38668c6c5b23
50-
$(KUBEVAL): .bingo/kubeval.mod
51+
$(KUBEVAL): $(BINGO_DIR)/kubeval.mod
5152
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
5253
@echo "(re)installing $(GOBIN)/kubeval-v0.0.0-20201005082916-38668c6c5b23"
53-
@cd .bingo && $(GO) build -mod=mod -modfile=kubeval.mod -o=$(GOBIN)/kubeval-v0.0.0-20201005082916-38668c6c5b23 "github.com/instrumenta/kubeval"
54+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=kubeval.mod -o=$(GOBIN)/kubeval-v0.0.0-20201005082916-38668c6c5b23 "github.com/instrumenta/kubeval"
55+
56+
MDOX := $(GOBIN)/mdox-v0.9.0
57+
$(MDOX): $(BINGO_DIR)/mdox.mod
58+
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
59+
@echo "(re)installing $(GOBIN)/mdox-v0.9.0"
60+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=mdox.mod -o=$(GOBIN)/mdox-v0.9.0 "github.com/bwplotka/mdox"
5461

.bingo/mdox.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
2+
3+
go 1.24.10
4+
5+
require github.com/bwplotka/mdox v0.9.0

0 commit comments

Comments
 (0)