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

Allow users to choose whether to overwrite their existing files with FE template files or not #123

Open
elizabethengelman opened this issue Jul 18, 2024 · 0 comments

Comments

@elizabethengelman
Copy link
Contributor

This came from this conversation: #120 (comment)

In stellar contract init we are currently ignoring the workspace Cargo.toml that is included in the frontend template. We also did not want to blindly overwrite the existing, base Cargo.toml file with the one from the template. This issue is proposing to update stellar contract init so that when a user passes in --frontend-template the CLI will give them an option for any conflicting files if they want to overwrite them with the FE template version or not.

The main motivation for this change is so that loam init can expect that the workspace Cargo.toml file that is in the loam frontend template is the one that will be used. The current stellar contract init implementation does not include the frontend template's Cargo.toml file. We had to do some workaround to replace soroban-sdk with loam-sdk and add loam-subcontract-core in https://github.com/loambuild/loam/pull/120/files so that loam init could use soroban contract init under the hood, and still work in creating a loam project.

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

No branches or pull requests

1 participant