mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-24 14:09:21 -05:00
474c4b848d
* upgrade to go1.19 and set go mem limit * create ocis-pkg memlimit package * use std automemlimit import Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * import automemlimit in every ocis service, drop ocis-pkg/memlimit package Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * bump go to 1.20 Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * drop unused config options and env vars Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * update all version numbers, add doc Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * fix lint Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * update bingo and mockery Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * bump golangci-lint Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * fix selector test Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * Update changelog/unreleased/enhancement-memlimit.md Co-authored-by: kobergj <juliankoberg@googlemail.com> --------- Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> Co-authored-by: Willy Kloucek <wkloucek@owncloud.com> Co-authored-by: kobergj <juliankoberg@googlemail.com>
116 lines
7.6 KiB
Makefile
116 lines
7.6 KiB
Makefile
# 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 bingo variable:
|
|
#
|
|
# In your main Makefile (for non array binaries):
|
|
#
|
|
#include .bingo/Variables.mk # Assuming -dir was set to .bingo .
|
|
#
|
|
#command: $(BINGO)
|
|
# @echo "Running bingo"
|
|
# @$(BINGO) <flags/args..>
|
|
#
|
|
BINGO := $(GOBIN)/bingo-v0.8.0
|
|
$(BINGO): $(BINGO_DIR)/bingo.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)/bingo-v0.8.0"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=bingo.mod -o=$(GOBIN)/bingo-v0.8.0 "github.com/bwplotka/bingo"
|
|
|
|
BUF := $(GOBIN)/buf-v1.3.1
|
|
$(BUF): $(BINGO_DIR)/buf.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)/buf-v1.3.1"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buf.mod -o=$(GOBIN)/buf-v1.3.1 "github.com/bufbuild/buf/cmd/buf"
|
|
|
|
BUILDIFIER := $(GOBIN)/buildifier-v0.0.0-20220323134444-a9f46b2bb3de
|
|
$(BUILDIFIER): $(BINGO_DIR)/buildifier.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)/buildifier-v0.0.0-20220323134444-a9f46b2bb3de"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildifier.mod -o=$(GOBIN)/buildifier-v0.0.0-20220323134444-a9f46b2bb3de "github.com/bazelbuild/buildtools/buildifier"
|
|
|
|
CALENS := $(GOBIN)/calens-v0.2.0
|
|
$(CALENS): $(BINGO_DIR)/calens.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)/calens-v0.2.0"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=calens.mod -o=$(GOBIN)/calens-v0.2.0 "github.com/restic/calens"
|
|
|
|
GO_LICENSES := $(GOBIN)/go-licenses-v1.5.0
|
|
$(GO_LICENSES): $(BINGO_DIR)/go-licenses.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)/go-licenses-v1.5.0"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=go-licenses.mod -o=$(GOBIN)/go-licenses-v1.5.0 "github.com/google/go-licenses"
|
|
|
|
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.51.2
|
|
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.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)/golangci-lint-v1.51.2"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.51.2 "github.com/golangci/golangci-lint/cmd/golangci-lint"
|
|
|
|
HUGO := $(GOBIN)/hugo-v0.94.0
|
|
$(HUGO): $(BINGO_DIR)/hugo.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)/hugo-v0.94.0"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=hugo.mod -o=$(GOBIN)/hugo-v0.94.0 "github.com/gohugoio/hugo"
|
|
|
|
MOCKERY := $(GOBIN)/mockery-v2.22.1
|
|
$(MOCKERY): $(BINGO_DIR)/mockery.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)/mockery-v2.22.1"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=mockery.mod -o=$(GOBIN)/mockery-v2.22.1 "github.com/vektra/mockery/v2"
|
|
|
|
MUTAGEN := $(GOBIN)/mutagen-v0.13.1
|
|
$(MUTAGEN): $(BINGO_DIR)/mutagen.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)/mutagen-v0.13.1"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=mutagen.mod -o=$(GOBIN)/mutagen-v0.13.1 "github.com/mutagen-io/mutagen/cmd/mutagen"
|
|
|
|
PROTOC_GEN_DOC := $(GOBIN)/protoc-gen-doc-v1.5.1
|
|
$(PROTOC_GEN_DOC): $(BINGO_DIR)/protoc-gen-doc.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)/protoc-gen-doc-v1.5.1"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=protoc-gen-doc.mod -o=$(GOBIN)/protoc-gen-doc-v1.5.1 "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc"
|
|
|
|
PROTOC_GEN_GO := $(GOBIN)/protoc-gen-go-v1.28.1
|
|
$(PROTOC_GEN_GO): $(BINGO_DIR)/protoc-gen-go.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)/protoc-gen-go-v1.28.1"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=protoc-gen-go.mod -o=$(GOBIN)/protoc-gen-go-v1.28.1 "google.golang.org/protobuf/cmd/protoc-gen-go"
|
|
|
|
PROTOC_GEN_MICRO := $(GOBIN)/protoc-gen-micro-v1.0.0
|
|
$(PROTOC_GEN_MICRO): $(BINGO_DIR)/protoc-gen-micro.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)/protoc-gen-micro-v1.0.0"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=protoc-gen-micro.mod -o=$(GOBIN)/protoc-gen-micro-v1.0.0 "github.com/go-micro/generator/cmd/protoc-gen-micro"
|
|
|
|
PROTOC_GEN_MICROWEB := $(GOBIN)/protoc-gen-microweb-v0.0.0-20220808092353-b5d6c3960e19
|
|
$(PROTOC_GEN_MICROWEB): $(BINGO_DIR)/protoc-gen-microweb.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)/protoc-gen-microweb-v0.0.0-20220808092353-b5d6c3960e19"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=protoc-gen-microweb.mod -o=$(GOBIN)/protoc-gen-microweb-v0.0.0-20220808092353-b5d6c3960e19 "github.com/owncloud/protoc-gen-microweb"
|
|
|
|
PROTOC_GEN_OPENAPIV2 := $(GOBIN)/protoc-gen-openapiv2-v2.13.0
|
|
$(PROTOC_GEN_OPENAPIV2): $(BINGO_DIR)/protoc-gen-openapiv2.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)/protoc-gen-openapiv2-v2.13.0"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=protoc-gen-openapiv2.mod -o=$(GOBIN)/protoc-gen-openapiv2-v2.13.0 "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2"
|
|
|
|
PROTOC_GO_INJECT_TAG := $(GOBIN)/protoc-go-inject-tag-v1.4.0
|
|
$(PROTOC_GO_INJECT_TAG): $(BINGO_DIR)/protoc-go-inject-tag.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)/protoc-go-inject-tag-v1.4.0"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=protoc-go-inject-tag.mod -o=$(GOBIN)/protoc-go-inject-tag-v1.4.0 "github.com/favadi/protoc-go-inject-tag"
|
|
|
|
REFLEX := $(GOBIN)/reflex-v0.3.1
|
|
$(REFLEX): $(BINGO_DIR)/reflex.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)/reflex-v0.3.1"
|
|
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=reflex.mod -o=$(GOBIN)/reflex-v0.3.1 "github.com/cespare/reflex"
|
|
|