Skip to content

ci: block chainlink-deployments-framework imports via depguard#771

Merged
graham-chainlink merged 1 commit into
mainfrom
ggoh/block-cldf-imports
May 28, 2026
Merged

ci: block chainlink-deployments-framework imports via depguard#771
graham-chainlink merged 1 commit into
mainfrom
ggoh/block-cldf-imports

Conversation

@graham-chainlink

Copy link
Copy Markdown
Contributor

Summary

Enables the depguard linter in golangci-lint and denies imports of github.com/smartcontractkit/chainlink-deployments-framework (including subpackages). This keeps mcms from depending on chainlink-deployments-framework, which would introduce a circular dependency.

Why

mcms must not import chainlink-deployments-framework because that module already depends on mcms, so adding the import would create a cycle in the dependency graph.

Prevent importing github.com/smartcontractkit/chainlink-deployments-framework
because it would create a circular dependency with mcms.
@cl-sonarqube-production

Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@graham-chainlink graham-chainlink marked this pull request as ready for review May 28, 2026 04:14
@graham-chainlink graham-chainlink requested a review from a team as a code owner May 28, 2026 04:14
Copilot AI review requested due to automatic review settings May 28, 2026 04:14
@graham-chainlink graham-chainlink enabled auto-merge (squash) May 28, 2026 04:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Go lint configuration to prevent mcms from importing chainlink-deployments-framework, avoiding a circular dependency between the modules.

Changes:

  • Enables the depguard linter.
  • Adds a repository-wide deny rule for github.com/smartcontractkit/chainlink-deployments-framework imports.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@graham-chainlink graham-chainlink merged commit c5e2be5 into main May 28, 2026
27 of 28 checks passed
@graham-chainlink graham-chainlink deleted the ggoh/block-cldf-imports branch May 28, 2026 04:41
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.

3 participants