Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions collector/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,31 +76,15 @@ goporto: install-tools
golint: install-tools
@$(MAKE) for-all-target TARGET="lint"

.PHONY: goimpi
goimpi: install-tools
@$(MAKE) for-all-target TARGET="impi"

.PHONY: gofmt
gofmt:
@$(MAKE) for-all-target TARGET="fmt"

.PHONY: govulncheck
govulncheck:
cd $(TOOLS_MOD_DIR) && $(GOCMD) install golang.org/x/vuln/cmd/govulncheck
GOOS=linux GOARCH=$(GOARCH) govulncheck$(if ${BUILDTAGS}, -tags "${BUILDTAGS}",) ./...
$(GOCMD) -C $(TOOLS_MOD_DIR) mod download
GOOS=linux GOARCH=$(GOARCH) $(GOCMD) tool govulncheck$(if ${BUILDTAGS}, -tags "${BUILDTAGS}",) ./...

.PHONY: install-tools
install-tools:
cd $(TOOLS_MOD_DIR) && $(GOCMD) install github.com/golangci/golangci-lint/cmd/golangci-lint
cd $(TOOLS_MOD_DIR) && $(GOCMD) install github.com/google/addlicense
cd $(TOOLS_MOD_DIR) && $(GOCMD) install github.com/pavius/impi/cmd/impi
cd $(TOOLS_MOD_DIR) && $(GOCMD) install github.com/tcnksm/ghr
cd $(TOOLS_MOD_DIR) && $(GOCMD) install github.com/wadey/gocovmerge
cd $(TOOLS_MOD_DIR) && $(GOCMD) install go.opentelemetry.io/build-tools/chloggen
cd $(TOOLS_MOD_DIR) && $(GOCMD) install go.opentelemetry.io/build-tools/semconvgen
cd $(TOOLS_MOD_DIR) && $(GOCMD) install golang.org/x/exp/cmd/apidiff
cd $(TOOLS_MOD_DIR) && $(GOCMD) install golang.org/x/tools/cmd/goimports
cd $(TOOLS_MOD_DIR) && $(GOCMD) install github.com/jcchavezs/porto/cmd/porto
cd $(TOOLS_MOD_DIR) && $(GOCMD) install go.opentelemetry.io/build-tools/multimod
cd $(TOOLS_MOD_DIR) && $(GOCMD) install go.opentelemetry.io/build-tools/crosslink
cd $(TOOLS_MOD_DIR) && $(GOCMD) install golang.org/x/vuln/cmd/govulncheck
cd $(TOOLS_MOD_DIR) && $(GOCMD) install tool
5 changes: 0 additions & 5 deletions collector/Makefile.Common
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ GOTEST_OPT?= -race -timeout 120s
GOCMD?= go
GOTEST=$(GOCMD) test
LINT=golangci-lint
IMPI=impi

GOOS := $(shell $(GOCMD) env GOOS)
GOARCH := $(shell $(GOCMD) env GOARCH)
Expand Down Expand Up @@ -38,10 +37,6 @@ lint:
generate:
$(GOCMD) generate ./...

.PHONY: impi
impi:
@$(IMPI) --local github.com/open-telemetry/opentelemetry-lambda/collector --scheme stdThirdPartyLocal ./...

.PHONY: moddownload
moddownload:
$(GOCMD) mod download
Expand Down
11 changes: 11 additions & 0 deletions collector/go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
go 1.26.0

use (
.
./internal/tools
./lambdacomponents
./lambdalifecycle
./processor/coldstartprocessor
./processor/decoupleprocessor
./receiver/telemetryapireceiver
)
17 changes: 12 additions & 5 deletions collector/internal/tools/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,24 @@ module github.com/open-telemetry/opentelemetry-lambda/collector/internal/tools

go 1.26.0

tool (
github.com/golangci/golangci-lint/v2/cmd/golangci-lint
github.com/google/addlicense
github.com/jcchavezs/porto/cmd/porto
go.opentelemetry.io/build-tools/crosslink
go.opentelemetry.io/build-tools/multimod
golang.org/x/exp/cmd/apidiff
golang.org/x/tools/cmd/goimports
golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize
golang.org/x/vuln/cmd/govulncheck
)

require (
github.com/golangci/golangci-lint/v2 v2.15.0
github.com/google/addlicense v1.2.0
github.com/jcchavezs/porto v0.7.0
github.com/pavius/impi v0.0.3
github.com/tcnksm/ghr v0.18.6
github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad
go.opentelemetry.io/build-tools/chloggen v0.30.0
go.opentelemetry.io/build-tools/crosslink v0.30.0
go.opentelemetry.io/build-tools/multimod v0.30.0
go.opentelemetry.io/build-tools/semconvgen v0.24.0
golang.org/x/exp v0.0.0-20261109185158-a52e3aef5920
golang.org/x/tools v0.52.1-0.20261106145633-d407941a339a
golang.org/x/vuln v1.9.0
Expand Down
10 changes: 0 additions & 10 deletions collector/internal/tools/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 0 additions & 34 deletions collector/internal/tools/tools.go

This file was deleted.

Loading