Commit 63fade2
committed
[ABLD-366] Fix build file for cmd/loader so it can also build for macos. (#54739)
### What does this PR do?
Fix build file for cmd/loader so it can also build for macos.
- Remove unneeded target_compatible_with
- Adjust packaging to include it for macos.
- Fix dd_agent_go_binary so we can select() `exact_gotags`
We are blocked on ABLD-294 for using the loader in the real package, so we just have it named "loader" for now. We can build and verify that it works.
### Describe how you validated your changes
Make sure the loader builds and runs on mac. Running it is subtle.
```
$ bazel build //cmd/trace-agent:trace-agent
Target //cmd/trace-agent:trace-agent up-to-date:
bazel-bin/cmd/trace-agent/trace-agent_/trace-agent
INFO: Build completed successfully, 1 total action
$ cp bazel-bin/cmd/trace-agent/trace-agent_/trace-agent /tmp
$ bazel build //cmd/loader:loader
Target //cmd/loader:loader up-to-date:
bazel-bin/cmd/loader/loader_/loader
$ bazel-bin/cmd/loader/loader_/loader /opt/datadog-agent/etc/datadog.yaml /tmp/trace-agent
...
2026-08-11 14:45:52 EDT | TRACE-LOADER | INFO | (pkg/util/log/log.go:734 in func1) | Starting to load the configuration
2026-08-11 14:45:52 EDT | TRACE-LOADER | ERROR | (pkg/util/log/log.go:815 in func1) | warning reading config
...
### Additional Notes
Co-authored-by: tony.aiuto <tony.aiuto@datadoghq.com> 27fda3f1 parent 2f09833 commit 63fade2
64 files changed
Lines changed: 416 additions & 416 deletions
File tree
- agent-schema
- cli
- examples
- faq
- keywords
- architecture/dogstatsd/internals
- components
- common-patterns
- creating-bundles
- creating-components
- faq
- fx
- jmxfetch
- migration
- overview
- testing
- using-components
- guidelines
- contributing
- conventions/logging
- deprecated-components-documentation
- defining-apps
- defining-bundles
- purpose
- registrations
- subscriptions
- using-components
- docs
- languages
- RUST
- go
- testing/test-categories
- hostname/hostname_force_config_as_canonical
- how-to
- build
- distributions
- standalone
- debug-agents
- linux
- windows
- go/modules
- memory-profiling
- c++
- go
- python
- test
- e2e
- manual-qa
- aws-docker
- aws-ecs
- aws-eks
- aws-kind
- aws-vm
- azure-vm
- gcp-vm
- static-analysis
- unit
- reference
- builds/components
- images
- builders
- dev
- setup
- manual
- optional
- required
- tutorials/dev
- env
- lab
- kind
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4018 | 4018 | | |
4019 | 4019 | | |
4020 | 4020 | | |
4021 | | - | |
| 4021 | + | |
4022 | 4022 | | |
4023 | 4023 | | |
4024 | 4024 | | |
| |||
4027 | 4027 | | |
4028 | 4028 | | |
4029 | 4029 | | |
4030 | | - | |
| 4030 | + | |
4031 | 4031 | | |
4032 | 4032 | | |
4033 | 4033 | | |
| |||
4043 | 4043 | | |
4044 | 4044 | | |
4045 | 4045 | | |
4046 | | - | |
| 4046 | + | |
4047 | 4047 | | |
4048 | 4048 | | |
4049 | 4049 | | |
| |||
4073 | 4073 | | |
4074 | 4074 | | |
4075 | 4075 | | |
4076 | | - | |
| 4076 | + | |
4077 | 4077 | | |
4078 | 4078 | | |
4079 | 4079 | | |
| |||
4103 | 4103 | | |
4104 | 4104 | | |
4105 | 4105 | | |
4106 | | - | |
| 4106 | + | |
4107 | 4107 | | |
4108 | 4108 | | |
4109 | 4109 | | |
| |||
4147 | 4147 | | |
4148 | 4148 | | |
4149 | 4149 | | |
4150 | | - | |
| 4150 | + | |
4151 | 4151 | | |
4152 | 4152 | | |
4153 | 4153 | | |
| |||
4183 | 4183 | | |
4184 | 4184 | | |
4185 | 4185 | | |
4186 | | - | |
| 4186 | + | |
4187 | 4187 | | |
4188 | 4188 | | |
4189 | 4189 | | |
| |||
4211 | 4211 | | |
4212 | 4212 | | |
4213 | 4213 | | |
4214 | | - | |
| 4214 | + | |
4215 | 4215 | | |
4216 | 4216 | | |
4217 | 4217 | | |
| |||
4225 | 4225 | | |
4226 | 4226 | | |
4227 | 4227 | | |
4228 | | - | |
| 4228 | + | |
4229 | 4229 | | |
4230 | 4230 | | |
4231 | 4231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3908 | 3908 | | |
3909 | 3909 | | |
3910 | 3910 | | |
3911 | | - | |
| 3911 | + | |
3912 | 3912 | | |
3913 | 3913 | | |
3914 | 3914 | | |
3915 | 3915 | | |
3916 | | - | |
| 3916 | + | |
3917 | 3917 | | |
3918 | 3918 | | |
3919 | 3919 | | |
| |||
3945 | 3945 | | |
3946 | 3946 | | |
3947 | 3947 | | |
3948 | | - | |
| 3948 | + | |
3949 | 3949 | | |
3950 | 3950 | | |
3951 | 3951 | | |
| |||
4009 | 4009 | | |
4010 | 4010 | | |
4011 | 4011 | | |
4012 | | - | |
| 4012 | + | |
4013 | 4013 | | |
4014 | 4014 | | |
4015 | 4015 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3974 | 3974 | | |
3975 | 3975 | | |
3976 | 3976 | | |
3977 | | - | |
| 3977 | + | |
3978 | 3978 | | |
3979 | | - | |
| 3979 | + | |
3980 | 3980 | | |
3981 | 3981 | | |
3982 | 3982 | | |
| |||
4019 | 4019 | | |
4020 | 4020 | | |
4021 | 4021 | | |
4022 | | - | |
| 4022 | + | |
4023 | 4023 | | |
4024 | 4024 | | |
4025 | 4025 | | |
4026 | 4026 | | |
4027 | | - | |
| 4027 | + | |
4028 | 4028 | | |
4029 | 4029 | | |
4030 | 4030 | | |
| |||
4057 | 4057 | | |
4058 | 4058 | | |
4059 | 4059 | | |
4060 | | - | |
| 4060 | + | |
4061 | 4061 | | |
4062 | 4062 | | |
4063 | 4063 | | |
| |||
4082 | 4082 | | |
4083 | 4083 | | |
4084 | 4084 | | |
4085 | | - | |
| 4085 | + | |
4086 | 4086 | | |
4087 | 4087 | | |
4088 | 4088 | | |
4089 | 4089 | | |
4090 | 4090 | | |
4091 | | - | |
| 4091 | + | |
4092 | 4092 | | |
4093 | 4093 | | |
4094 | 4094 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3870 | 3870 | | |
3871 | 3871 | | |
3872 | 3872 | | |
3873 | | - | |
| 3873 | + | |
3874 | 3874 | | |
3875 | 3875 | | |
3876 | 3876 | | |
3877 | 3877 | | |
3878 | | - | |
| 3878 | + | |
3879 | 3879 | | |
3880 | 3880 | | |
3881 | 3881 | | |
3882 | 3882 | | |
3883 | 3883 | | |
3884 | 3884 | | |
3885 | | - | |
| 3885 | + | |
3886 | 3886 | | |
3887 | 3887 | | |
3888 | 3888 | | |
| |||
3896 | 3896 | | |
3897 | 3897 | | |
3898 | 3898 | | |
3899 | | - | |
| 3899 | + | |
3900 | 3900 | | |
3901 | 3901 | | |
3902 | 3902 | | |
3903 | 3903 | | |
3904 | 3904 | | |
3905 | 3905 | | |
3906 | 3906 | | |
3907 | | - | |
| 3907 | + | |
3908 | 3908 | | |
3909 | 3909 | | |
3910 | 3910 | | |
| |||
3917 | 3917 | | |
3918 | 3918 | | |
3919 | 3919 | | |
3920 | | - | |
| 3920 | + | |
3921 | 3921 | | |
3922 | 3922 | | |
3923 | 3923 | | |
| |||
3938 | 3938 | | |
3939 | 3939 | | |
3940 | 3940 | | |
3941 | | - | |
| 3941 | + | |
3942 | 3942 | | |
3943 | 3943 | | |
3944 | 3944 | | |
3945 | 3945 | | |
3946 | | - | |
| 3946 | + | |
3947 | 3947 | | |
3948 | 3948 | | |
3949 | 3949 | | |
| |||
0 commit comments