-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[chore] make checkapi a module, adding a metadata.yaml #37945
Conversation
91bd7a1
to
2793fcf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing
go: warning: "./..." matched no packages
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
no Go files in /Users/dehaansa/go/src/github.com/open-telemetry/opentelemetry-collector-contrib
Whenever I run a make task on this branch. Rescinding approval while I take a look.
Edit: Nothing discovered that makes any sense here. Happy to treat this as a "my machine" issue if someone else approves. On macOS sequoia, this behavior doesn't happen for me on other branches, I pulled a few other PRs to check.
I see it too. It's to do with how the checkapi binary is built, probably within the wrong working directory. I will look into this more. |
Let's get #37951 in first, this PR has brought in unexpected issues. |
…up (#37951) This change is brought about by the realization that with #37945 no code is directly under the root module. This has the unexpected impact that some of the Makefile set up started to show warnings. It turns out that we do quite a bit of reading files and go packages in the Makefile. This has a performance impact. We also have incorrect code in there, such as the computation of `ALL_PKG_DIRS` only returns `github.com/open-telemetry/opentelemetry-collector-contrib/cmd/checkapi`.
5dd9687
to
cea322f
Compare
@dehaansa ready for another look |
94a20df
to
8d6b37a
Compare
8d6b37a
to
7105a89
Compare
Co-authored-by: Sam DeHaan <dehaansa@gmail.com>
Description
This PR makes the checkapi tool a go module with a metadata.yaml.