Skip to content

Commit ab111d2

Browse files
committed
refactor: limit presource checks to single distro
1 parent 1f0fcc7 commit ab111d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci-base.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
run: go mod tidy
6464

6565
- name: Run checks
66-
run: make pre-sourcegen-check
66+
run: make pre-sourcegen-check-${{ inputs.distribution }} DISTRO=${{ inputs.distribution }}
6767

6868
- name: Generate sources cache key
6969
id: sources-cache-key

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ TOOLS_BIN_NAMES := $(addprefix $(TOOLS_BIN_DIR)/, $(notdir $(shell echo $(TOOLS_
1616
GO_LICENCE_DETECTOR := $(TOOLS_BIN_DIR)/go-licence-detector
1717
GO_LICENCE_DETECTOR_CONFIG := $(SRC_ROOT)/internal/assets/license/rules.json
1818

19-
DISTRIBUTION ?= nrdot-collector-host
19+
DISTRO ?= nrdot-collector-host
2020
ALL_DISTROS = nrdot-collector-host nrdot-collector-k8s nrdot-collector
2121

2222
.PHONY: ci
@@ -39,7 +39,7 @@ generate-sources-$(DISTRO)-fips: go ocb
3939
.PHONY: generate-goreleaser
4040
generate-goreleaser:
4141
@for d in $(ALL_DISTROS); do \
42-
make generate-goreleaser-$$d DISTRIBUTION=$$d; \
42+
make generate-goreleaser-$$d DISTRO=$$d; \
4343
done
4444

4545
.PHONY: generate-goreleaser-$(DISTRO)
@@ -166,7 +166,7 @@ NOTICE_OUTPUT?=THIRD_PARTY_NOTICES.md
166166
.PHONY: licenses
167167
licenses:
168168
@for d in $(ALL_DISTROS); do \
169-
make licenses-$$d DISTRIBUTION=$$d; \
169+
make licenses-$$d DISTRO=$$d; \
170170
done
171171

172172
.PHONY: licenses-$(DISTRO)

0 commit comments

Comments
 (0)