Skip to content

chore(repo): Remove git submodules and switch to forge soldeer #573

@haardikk21

Description

@haardikk21

Summary

The repository currently uses git submodules for managing Foundry contract dependencies located at crates/shared/primitives/contracts/lib/. These submodules add complexity to the development workflow (requiring --recurse-submodules on clone, potential sync issues, etc.).

Current submodules:

Proposal

Replace git submodules with forge soldeer, the native Foundry package manager. This would:

  1. Simplify repository cloning (no --recurse-submodules needed)
  2. Provide better dependency version management
  3. Align with modern Foundry tooling practices
  4. Reduce git complexity and potential submodule sync issues

Tasks

  • Install and configure soldeer in the contracts directory
  • Add dependencies via forge soldeer install
  • Update foundry.toml with soldeer configuration
  • Remove .gitmodules and submodule entries
  • Update any CI workflows that reference submodules
  • Update documentation/README if needed

Metadata

Metadata

Assignees

Labels

A-repoArea: general repository changesK-ktloKind: keep the lights on, general cleanupsM-depsMeta: work related to dependenciesM-good-first-issueMeta: Good for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions