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

Not actionable error message on cargo near build in a fresh project without git #230

Open
frol opened this issue Oct 8, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@frol
Copy link
Contributor

frol commented Oct 8, 2024

cargo near build command relies on the project being part of a git repository with at least one commit, which causes confusion and build errors for users unfamiliar with this dependency.

create-near-app creates a project without git, but even after git init it is not enough to understand how to build the project:

image image

If you are unfamiliar with cargo-near, you would never know that you can use --no-docker to build the contract.

I suggest improving the output to hint users to commit the changes and about --no-docker flag to workaround it until they are ready for deployment (using --no-docker should not be encouraged for production use)

@frol frol added bug Something isn't working good first issue Good for newcomers labels Oct 8, 2024
@dj8yfo dj8yfo assigned dj8yfo and unassigned dj8yfo Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants