summaryrefslogtreecommitdiffstats
path: root/aclk/aclk-schemas/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:44 +0000
commit836b47cb7e99a977c5a23b059ca1d0b5065d310e (patch)
tree1604da8f482d02effa033c94a84be42bc0c848c3 /aclk/aclk-schemas/Makefile
parentReleasing debian version 1.44.3-2. (diff)
downloadnetdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.tar.xz
netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.zip
Merging upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'aclk/aclk-schemas/Makefile')
-rw-r--r--aclk/aclk-schemas/Makefile74
1 files changed, 0 insertions, 74 deletions
diff --git a/aclk/aclk-schemas/Makefile b/aclk/aclk-schemas/Makefile
deleted file mode 100644
index 8f4003070..000000000
--- a/aclk/aclk-schemas/Makefile
+++ /dev/null
@@ -1,74 +0,0 @@
-SHELL := /usr/bin/env bash -o pipefail
-
-# This controls the location of the cache.
-PROJECT := cloud-schemas
-# This controls the remote HTTPS git location to compare against for breaking changes in CI.
-#
-# Most CI providers only clone the branch under test and to a certain depth, so when
-# running buf check breaking in CI, it is generally preferable to compare against
-# the remote repository directly.
-#
-# Basic authentication is available, see https://buf.build/docs/inputs#https for more details.
-HTTPS_GIT := https://github.com/netdata/cloud-schemas.git
-
-# This controls the version of buf to install and use.
-BUF_VERSION := 0.6.0
-
-### Everything below this line is meant to be static, i.e. only adjust the above variables. ###
-
-UNAME_OS := $(shell uname -s)
-UNAME_ARCH := $(shell uname -m)
-# Buf will be cached to ~/.cache/buf-example.
-CACHE_BASE := $(HOME)/.cache/$(PROJECT)
-# This allows switching between i.e a Docker container and your local setup without overwriting.
-CACHE := $(CACHE_BASE)/$(UNAME_OS)/$(UNAME_ARCH)
-# The location where buf will be installed.
-CACHE_BIN := $(CACHE)/bin
-# Marker files are put into this directory to denote the current version of binaries that are installed.
-CACHE_VERSIONS := $(CACHE)/versions
-
-# Update the $PATH so we can use buf directly
-export PATH := $(abspath $(CACHE_BIN)):$(PATH)
-
-# BUF points to the marker file for the installed version.
-#
-# If BUF_VERSION is changed, the binary will be re-downloaded.
-BUF := $(CACHE_VERSIONS)/buf/$(BUF_VERSION)
-$(BUF):
- @rm -f $(CACHE_BIN)/buf
- @mkdir -p $(CACHE_BIN)
- curl -sSL \
- "https://github.com/bufbuild/buf/releases/download/v$(BUF_VERSION)/buf-$(UNAME_OS)-$(UNAME_ARCH)" \
- -o "$(CACHE_BIN)/buf"
- chmod +x "$(CACHE_BIN)/buf"
- @rm -rf $(dir $(BUF))
- @mkdir -p $(dir $(BUF))
- @touch $(BUF)
-
-.DEFAULT_GOAL := local
-
-# deps allows us to install deps without running any checks.
-
-.PHONY: deps
-deps: $(BUF)
-
-# local is what we run when testing locally.
-# This does breaking change detection against our local git repository.
-
-.PHONY: local
-local: $(BUF)
- buf check lint ./proto
- buf check breaking --against '.git#branch=master'
-
-# https is what we run when testing in most CI providers.
-# This does breaking change detection against our git repository.
-
-.PHONY: CI
-CI: $(BUF)
- buf check lint ./proto
- buf check breaking --against ".git#branch=master"
-
-.PHONY: clean
-clean:
- git clean -xdf
- rm -rf $(CACHE_BASE) \ No newline at end of file