Skip to content

Fix gomod lint #6938

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

Merged
merged 1 commit into from
May 20, 2025
Merged

Fix gomod lint #6938

merged 1 commit into from
May 20, 2025

Conversation

Groxx
Copy link
Member

@Groxx Groxx commented May 20, 2025

Since I was looking closer at bd127c3 anyway...
The check didn't actually check anything:

❯ go get github.com/uber/cadence/common/archiver/gcloud
...

❯ make .build/gomod-lint
checking for direct submodule dependencies in root go.mod...
✓ No direct dependency on cmd/server
✓ No direct dependency on internal/tools
✓ No direct dependency on common/archiver/gcloud
✓ No direct dependency on service/sharddistributor/leader/leaderstore/etcd

❯ grep common/archiver/gcloud go.mod
        github.com/uber/cadence/common/archiver/gcloud v0.0.0-20250520010807-4b03f0710bac // indirect

You might get a require ... line if you add it by hand, but any go mod tidy will bundle it with others in a

require (
  ...
)

which needs a less-picky regex to catch.
Or go mod why or something, but grep does seem fine here.

The check didn't actually check anything:
```
❯ go get github.com/uber/cadence/common/archiver/gcloud
...

❯ make .build/gomod-lint
checking for direct submodule dependencies in root go.mod...
✓ No direct dependency on cmd/server
✓ No direct dependency on internal/tools
✓ No direct dependency on common/archiver/gcloud
✓ No direct dependency on service/sharddistributor/leader/leaderstore/etcd

❯ grep common/archiver/gcloud go.mod
        github.com/uber/cadence/common/archiver/gcloud v0.0.0-20250520010807-4b03f0710bac // indirect
```

You might get a `require ...` line if you add it by hand, but any `go mod tidy` will bundle it with others in a
```
require (
  ...
)
```
which needs a less-picky regex to catch.
Or `go mod why` or something, but grep does seem fine here.
@Groxx Groxx merged commit 9c53307 into cadence-workflow:master May 20, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants