|
1 | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
2 | 2 | # SPDX-License-Identifier: Apache-2.0 |
3 | 3 |
|
4 | | -.PHONY: sync lint format test test-devtools test-plugins validate docs docs-server plugin-docs catalog package-index check-plugin-docs check-catalog check-package-index qa-package-index codeowners check-codeowners check-license-headers update-license-headers check all bump release build-plugin validate-release test-plugin check-owner |
| 4 | +.PHONY: sync lint format test test-devtools test-plugins validate docs docs-server plugin-docs catalog package-index check-plugin-docs check-catalog check-package-index qa-package-index codeowners check-codeowners check-license-headers update-license-headers check all bump release build-plugin validate-release test-plugin |
5 | 5 |
|
6 | 6 | # ββ Setup ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
7 | 7 |
|
@@ -140,23 +140,7 @@ test-plugin: |
140 | 140 | build-plugin: validate-release |
141 | 141 | uv build "$(PLUGIN_DIR)" --out-dir dist/ |
142 | 142 |
|
143 | | -check-owner: |
144 | | - @if [ -z "$(PLUGIN)" ]; then echo "ERROR: Set PLUGIN=<name>"; exit 1; fi |
145 | | - @USER_EMAIL=$$(git config user.email); \ |
146 | | - OWNERS=$$(grep -v '^\s*#' "$(PLUGIN_DIR)/CODEOWNERS" | grep -v '^\s*$$' | awk '{for(i=2;i<=NF;i++) print $$i}'); \ |
147 | | - MATCH=0; \ |
148 | | - for owner in $$OWNERS; do \ |
149 | | - case "$$owner" in *"$$USER_EMAIL"*) MATCH=1;; esac; \ |
150 | | - done; \ |
151 | | - if [ "$$MATCH" -eq 0 ]; then \ |
152 | | - echo "WARNING: $$USER_EMAIL is not listed in $(PLUGIN_DIR)/CODEOWNERS"; \ |
153 | | - echo "Listed owners: $$OWNERS"; \ |
154 | | - echo ""; \ |
155 | | - read -p "Continue anyway? (y/N) " confirm; \ |
156 | | - [ "$$confirm" = "y" ] || [ "$$confirm" = "Y" ] || exit 1; \ |
157 | | - fi |
158 | | - |
159 | | -release: check-owner test-plugin build-plugin |
| 143 | +release: test-plugin build-plugin |
160 | 144 | @PLUGIN_VERSION=$$(uv run python -c "import tomllib; print(tomllib.load(open('$(PLUGIN_DIR)/pyproject.toml','rb'))['project']['version'])"); \ |
161 | 145 | echo "Creating tag: $(PLUGIN)/v$$PLUGIN_VERSION"; \ |
162 | 146 | git tag "$(PLUGIN)/v$$PLUGIN_VERSION"; \ |
|
0 commit comments