-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Makefile.Common] Files under submodule will cause the result of all-pkgs
to be empty.
#31928
Comments
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Component(s)
No response
What happened?
Description
Run
make all-pkgs
in a module which has both.go
files in root directory and submodules, will get an empty result.And when running any target by
make
, many logs will be printed bygo
. The logs look like:This is caused by the command
will return all go files under $(ALL_PKG_DIRS), even if in a submodule. Then
ALL_PKGS := $(shell $(GOCMD) list $(sort $(dir $(ALL_SRC))))
will try to rungo list
with directories in submodules, thengo
runs to failure and the logs will be printed.Steps to Reproduce
make -C extension/storage all-pkgs
.Expected Result
Print packages in stdout.
Actual Result
Print logs in stderr.
Collector version
v0.95.0
Environment information
No response
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: