Unverified Commit 322a00d3 authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Initial openapi config

parent 0638d107
Loading
Loading
Loading
Loading

.bingo/.gitignore

0 → 100644
+13 −0
Original line number Diff line number Diff line

# Ignore everything
*

# But not these files:
!.gitignore
!*.mod
!*.sum
!README.md
!Variables.mk
!variables.env

*tmp.mod

.bingo/README.md

0 → 100644
+14 −0
Original line number Diff line number Diff line
# Project Development Dependencies.

This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo.

* Run `bingo get` to install all tools having each own module file in this directory.
* Run `bingo get <tool>` to install <tool> that have own module file in this directory.
* 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.
* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool.
* For go: Import `.bingo/variables.go` to for variable names.
* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies.

## Requirements

* Go 1.14+

.bingo/Variables.mk

0 → 100644
+25 −0
Original line number Diff line number Diff line
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.8. DO NOT EDIT.
# All tools are designed to be build inside $GOBIN.
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
GOPATH ?= $(shell go env GOPATH)
GOBIN  ?= $(firstword $(subst :, ,${GOPATH}))/bin
GO     ?= $(shell which go)

# Below generated variables ensure that every time a tool under each variable is invoked, the correct version
# will be used; reinstalling only if needed.
# For example for oapi-codegen variable:
#
# In your main Makefile (for non array binaries):
#
#include .bingo/Variables.mk # Assuming -dir was set to .bingo .
#
#command: $(OAPI_CODEGEN)
#	@echo "Running oapi-codegen"
#	@$(OAPI_CODEGEN) <flags/args..>
#
OAPI_CODEGEN := $(GOBIN)/oapi-codegen-v2.3.0
$(OAPI_CODEGEN): $(BINGO_DIR)/oapi-codegen.mod
	@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
	@echo "(re)installing $(GOBIN)/oapi-codegen-v2.3.0"
	@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=oapi-codegen.mod -o=$(GOBIN)/oapi-codegen-v2.3.0 "github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen"

.bingo/go.mod

0 → 100644
+1 −0
Original line number Diff line number Diff line
module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files.
 No newline at end of file
+5 −0
Original line number Diff line number Diff line
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT

go 1.22.4

require github.com/oapi-codegen/oapi-codegen/v2 v2.3.0 // cmd/oapi-codegen
Loading