-
Notifications
You must be signed in to change notification settings - Fork 27
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
Pop Build - Parachain/Contract cargo project detection on current working dir #91
Comments
Is a good point, as you mention |
Yes agreed, I think checking for contract / parachain specific files in the root of the project is a start. E.g.:
|
@Daanvdplas I like the approach. I believe that we should do the same as in contracts, i.e. check for substrate linked dependencies, such as |
I have never seen a project where the folders are not called |
@Daanvdplas quick example:
|
Oke, perhaps a dependency like |
Adding a check to detect if the user wants to build a parachain a contract. As discussed here #129 For the pop build command the user won't have to type |
A discussion rather than an issue.
Currently, if
pop build
is invoked without apath
, it builds any cargo project in the current working dir:This is fine if the current working dir is a parachain project, but is unexpected or unintended behaviour when invoked in some other cargo project.
pop build
, for the sake of correctness, should be ideally scoped only to buildcontract
andparachain
cargo projects.I understand that this is not really a problem, but this issue is meant for discussion on if it's worth the additional code or not.
The text was updated successfully, but these errors were encountered: