Skip to content

chore(examples): untrack stellar contract target/ and gitignore it#160

Merged
pasevin merged 1 commit into
mainfrom
chore/gitignore-stellar-target
Jun 11, 2026
Merged

chore(examples): untrack stellar contract target/ and gitignore it#160
pasevin merged 1 commit into
mainfrom
chore/gitignore-stellar-target

Conversation

@pasevin

@pasevin pasevin commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • examples/basic-react-app/contracts/stellar-demo-staking/target/ (Cargo build output, ~230 MB / 758 files) was committed by mistake. The example React app does not reference any artifact under target/ — grepping src/, vite.config.ts, package.json, index.html, and public/ for demo-staking, demo_staking, .wasm, or target/ returns zero hits.
  • The sibling Solidity demo (contracts/evm-demo/) treats build output the same way: its Foundry out/ directory is not tracked and is already covered by **/contracts/**/out/ in .gitignore. There was simply no equivalent rule for Cargo's target/.
  • This PR untracks the directory and adds **/contracts/**/target/ to .gitignore to mirror the existing Foundry rules so future Soroban builds don't leak back in.

Anyone building the contract can regenerate target/ locally with cargo build / stellar contract build.

Test plan

  • CI passes (format / lint / typecheck / tests already enforced by pre-commit and pre-push hooks locally)
  • Confirm examples/basic-react-app still builds: pnpm --filter @openzeppelin/ui-example-basic-react-app build
  • Confirm git check-ignore examples/basic-react-app/contracts/stellar-demo-staking/target/CACHEDIR.TAG reports the file as ignored on this branch

🤖 Generated with Claude Code

Cargo build output for examples/basic-react-app/contracts/stellar-demo-staking
was committed by mistake (~230 MB, 758 files). The example React app does not
reference any artifact under target/ — it's regenerated locally by `cargo build`,
matching how the sibling evm-demo's Foundry `out/` directory is handled. Adds
**/contracts/**/target/ to .gitignore to mirror the existing Foundry rules.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@pasevin pasevin requested a review from a team as a code owner June 11, 2026 19:12
@netlify

netlify Bot commented Jun 11, 2026

Copy link
Copy Markdown

Deploy Preview for openzeppelin-ui ready!

Name Link
🔨 Latest commit 9ece84f
🔍 Latest deploy log https://app.netlify.com/projects/openzeppelin-ui/deploys/6a2b0899bac8110008f9fe9d
😎 Deploy Preview https://deploy-preview-160--openzeppelin-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pasevin pasevin merged commit f0b2e47 into main Jun 11, 2026
14 checks passed
@pasevin pasevin deleted the chore/gitignore-stellar-target branch June 11, 2026 19:19
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant