Skip to content
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

[BUG] Fix committing all files when creating a new template #413

Open
drewstone opened this issue Oct 28, 2024 · 0 comments
Open

[BUG] Fix committing all files when creating a new template #413

drewstone opened this issue Oct 28, 2024 · 0 comments
Assignees

Comments

@drewstone
Copy link
Contributor

Overview

When creating a new blueprint template from the CLI. If you run git add . it immediately commits all the files within the submodules. The submodules are thus not being committed as submodules and instead create an extra step for us when beginning to build blueprints.

Steps to reproduce

  1. cargo tangle blueprint create --name <...>
  2. cd <...>
  3. git add .
	new file:   .github/dependabot.yml
	new file:   .github/workflows/foundry.yml
	new file:   .gitignore
	new file:   .gitmodules
	new file:   Cargo.lock
	new file:   Cargo.toml
	new file:   Dockerfile
	new file:   LICENSE-APACHE
	new file:   LICENSE-MIT
	new file:   README.md
	new file:   build.rs
	new file:   contracts/.gitignore
	new file:   contracts/README.md
	new file:   contracts/lib/forge-std/.gitattributes
	new file:   contracts/lib/forge-std/.github/workflows/ci.yml
	new file:   contracts/lib/forge-std/.github/workflows/sync.yml
	new file:   contracts/lib/forge-std/.gitignore
	new file:   contracts/lib/forge-std/CONTRIBUTING.md
	new file:   contracts/lib/forge-std/LICENSE-APACHE
	new file:   contracts/lib/forge-std/LICENSE-MIT
	new file:   contracts/lib/forge-std/README.md
	new file:   contracts/lib/forge-std/foundry.toml
	new file:   contracts/lib/forge-std/package.json
	new file:   contracts/lib/forge-std/scripts/vm.py
	new file:   contracts/lib/forge-std/src/Base.sol
	new file:   contracts/lib/forge-std/src/Script.sol
	new file:   contracts/lib/forge-std/src/StdAssertions.sol
	new file:   contracts/lib/forge-std/src/StdChains.sol
	new file:   contracts/lib/forge-std/src/StdCheats.sol
	new file:   contracts/lib/forge-std/src/StdError.sol
	new file:   contracts/lib/forge-std/src/StdInvariant.sol
	new file:   contracts/lib/forge-std/src/StdJson.sol
	new file:   contracts/lib/forge-std/src/StdMath.sol
	new file:   contracts/lib/forge-std/src/StdStorage.sol
	new file:   contracts/lib/forge-std/src/StdStyle.sol
	new file:   contracts/lib/forge-std/src/StdToml.sol
	new file:   contracts/lib/forge-std/src/StdUtils.sol
	new file:   contracts/lib/forge-std/src/Test.sol
	new file:   contracts/lib/forge-std/src/Vm.sol
	new file:   contracts/lib/forge-std/src/console.sol
	new file:   contracts/lib/forge-std/src/console2.sol
	new file:   contracts/lib/forge-std/src/interfaces/IERC1155.sol
	new file:   contracts/lib/forge-std/src/interfaces/IERC165.sol
	new file:   contracts/lib/forge-std/src/interfaces/IERC20.sol
	new file:   contracts/lib/forge-std/src/interfaces/IERC4626.sol
	new file:   contracts/lib/forge-std/src/interfaces/IERC721.sol
	new file:   contracts/lib/forge-std/src/interfaces/IMulticall3.sol
	new file:   contracts/lib/forge-std/src/mocks/MockERC20.sol
	new file:   contracts/lib/forge-std/src/mocks/MockERC721.sol
	new file:   contracts/lib/forge-std/src/safeconsole.sol
	new file:   contracts/lib/forge-std/test/StdAssertions.t.sol
	new file:   contracts/lib/forge-std/test/StdChains.t.sol
	new file:   contracts/lib/forge-std/test/StdCheats.t.sol
	new file:   contracts/lib/forge-std/test/StdError.t.sol
	new file:   contracts/lib/forge-std/test/StdJson.t.sol
	new file:   contracts/lib/forge-std/test/StdMath.t.sol
	new file:   contracts/lib/forge-std/test/StdStorage.t.sol
	new file:   contracts/lib/forge-std/test/StdStyle.t.sol
	new file:   contracts/lib/forge-std/test/StdToml.t.sol
	new file:   contracts/lib/forge-std/test/StdUtils.t.sol
	new file:   contracts/lib/forge-std/test/Vm.t.sol
	new file:   contracts/lib/forge-std/test/compilation/CompilationScript.sol
	new file:   contracts/lib/forge-std/test/compilation/CompilationScriptBase.sol
	new file:   contracts/lib/forge-std/test/compilation/CompilationTest.sol
	new file:   contracts/lib/forge-std/test/compilation/CompilationTestBase.sol
	new file:   contracts/lib/forge-std/test/fixtures/broadcast.log.json
	new file:   contracts/lib/forge-std/test/fixtures/test.json
	new file:   contracts/lib/forge-std/test/fixtures/test.toml
	new file:   contracts/lib/forge-std/test/mocks/MockERC20.t.sol
	new file:   contracts/lib/forge-std/test/mocks/MockERC721.t.sol
	new file:   contracts/lib/tnt-core/.envrc
	new file:   contracts/lib/tnt-core/.github/workflows/test.yml
	new file:   contracts/lib/tnt-core/.gitignore
	new file:   contracts/lib/tnt-core/.gitmodules
	new file:   contracts/lib/tnt-core/README.md
	new file:   contracts/lib/tnt-core/examples/IncredibleSquaringBlueprint.sol
	new file:   contracts/lib/tnt-core/flake.lock
	new file:   contracts/lib/tnt-core/flake.nix
	new file:   contracts/lib/tnt-core/foundry.toml
	new file:   contracts/lib/tnt-core/remappings.txt
	new file:   contracts/lib/tnt-core/src/BlueprintServiceManagerBase.sol
	new file:   contracts/lib/tnt-core/src/IBlueprintServiceManager.sol
	new file:   contracts/lib/tnt-core/src/Permissions.sol
	new file:   contracts/lib/tnt-core/src/services/MetricsPrecompile.sol
	new file:   contracts/lib/tnt-core/src/services/MetricsSystem.sol
	new file:   contracts/lib/tnt-core/src/services/metrics/Averages.sol
	new file:   contracts/lib/tnt-core/src/services/metrics/IMetricComputation.sol
	new file:   contracts/lib/tnt-core/test/services/MetricsSystemAveragesTest.t.sol
	new file:   contracts/lib/tnt-core/test/services/MetricsSystemEMATest.t.sol
	new file:   contracts/lib/tnt-core/test/services/MetricsSystemTest.t.sol
	new file:   contracts/src/HelloBlueprint.sol
	new file:   foundry.toml
	new file:   rust-toolchain.toml
	new file:   src/lib.rs
	new file:   src/main.rs
	new file:   taplo.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Planning 🗺️
Development

No branches or pull requests

2 participants