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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])
# gazelle:exclude comp
# gazelle:exclude internal/remote-agent
# gazelle:exclude internal/third_party
# gazelle:exclude third_party
# gazelle:exclude internal/tools/gotest-custom
# gazelle:exclude internal/tools/independent-lint
# gazelle:exclude internal/tools/modformatter
Expand Down
18 changes: 9 additions & 9 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ The StackState Agent is a monitoring and observability agent forked from Datadog
## Common Development Commands

### Initial Setup
```bash
# 1. Install Python dependencies (use virtual environment recommended)
pip install -r requirements.txt

# 2. Install Go tools
invoke install-tools
Install the `dda` development CLI following [the setup guide](docs/public/setup/required.md). It manages the Python environment used by Invoke tasks.

```bash
# 1. Install Go tools
dda inv install-tools

# 3. Install Go dependencies
invoke deps
# 2. Install Go dependencies
dda inv deps

# 4. Create dev configuration (stackstate.yaml, not datadog.yaml)
# 3. Create dev configuration (stackstate.yaml, not datadog.yaml)
echo "api_key: <API_KEY>" > dev/dist/stackstate.yaml
```

Expand Down Expand Up @@ -64,7 +64,7 @@ invoke test --targets=./pkg/collector/python
### Linting
```bash
# Run Go linters (do this before committing)
invoke lint-go
dda inv linter.go

# Run linters on specific module/targets
invoke linter.go --targets=./pkg/collector/check,./pkg/aggregator
Expand Down
162 changes: 79 additions & 83 deletions MODULE.bazel.lock

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

3 changes: 3 additions & 0 deletions bazel/repo/bazelify_go_work.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def _filter_lines(rctx):
return False

in_use_block, lines, symlinks = 0, [], set()
# Local owner replacements resolve relative to this filtered workspace.
if any(["./third_party/" in line for line in go_work]):
symlinks.add("third_party")
for line in go_work:
stripped = line.strip()
if stripped == "use (":
Expand Down
5 changes: 2 additions & 3 deletions comp/api/api/def/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ go 1.25.0
require go.uber.org/fx v1.24.0

require (
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/stretchr/testify v1.11.1 // indirect
github.com/stretchr/testify v1.12.1 // indirect
go.uber.org/dig v1.19.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.28.0 // indirect
go.yaml.in/yaml/v3 v3.0.5 // indirect
golang.org/x/sys v0.47.0 // indirect
)

Expand Down
14 changes: 4 additions & 10 deletions comp/api/api/def/go.sum

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

2 changes: 1 addition & 1 deletion comp/checks/winregistry/impl/winregistryimpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ import (
"github.com/DataDog/datadog-agent/pkg/metrics"
agentLog "github.com/DataDog/datadog-agent/pkg/util/log"
"github.com/DataDog/datadog-agent/pkg/util/option"
yy "github.com/ghodss/yaml"
"github.com/swaggest/jsonschema-go"
"github.com/xeipuuv/gojsonschema"
"go.yaml.in/yaml/v2"
"golang.org/x/sys/windows/registry"
yy "sigs.k8s.io/yaml"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion comp/core/agenttelemetry/def/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/tklauser/numcpus v0.11.0 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
go.yaml.in/yaml/v3 v3.0.5 // indirect
golang.org/x/sys v0.47.0 // indirect
golang.org/x/time v0.15.0 // indirect
)
Expand Down
Loading
Loading