diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3cb2893edcf..dac7abde50f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: path: ~/.tools key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('./internal/tools/**') }} - name: Run linters - run: make dependabot-check license-check lint vanity-import-check + run: make dependabot-check license-check lint vanity-import-check crosslink - name: Build run: make build - name: Check clean repository diff --git a/Makefile b/Makefile index b085561dbaa..8d6ae3c5a6e 100644 --- a/Makefile +++ b/Makefile @@ -79,7 +79,7 @@ generate/%: | $(STRINGER) $(PORTO) && cd $(DIR) \ && PATH="$(TOOLS):$${PATH}" $(GO) generate ./... && $(PORTO) -w . -build: generate $(OTEL_GO_MOD_DIRS:%=build/%) $(OTEL_GO_MOD_DIRS:%=build-tests/%) +build: crosslink generate $(OTEL_GO_MOD_DIRS:%=build/%) $(OTEL_GO_MOD_DIRS:%=build-tests/%) build/%: DIR=$* build/%: @echo "$(GO) build $(DIR)/..." \