-
Notifications
You must be signed in to change notification settings - Fork 25
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
Build artefacts cannot be found after successful build #196
Comments
I was able to reproduce, thanks for reporting @bolajahmad |
We seem to be pulling the correct manifest path in
On my tests the manifest was retrieving the one on the expected location ManifestPath { path: "Cargo.toml" }
It seems that when executing the build, cargo contracts just ignores the Including a local cargo configuration for the project when executing |
It's not just cargo contracts though, the same thing happen when I do I think we just need a local configuration file that we can read to determine such values like (the target directory, the root manifest TOML file). This also affects issues like #34 and #176 because there could be a build but we can't find it in the anticipated locations. |
Yeah, I believe my comment above won't really be of any help either, as cargo will take value of |
As Ale mentioned |
Tried to set the |
That sounds like a hack, and also I think the issue also affects the parachain commands too so this route means we have to do the same for the parachain related commands also |
It does affect parachains as well 👍 |
Can you elaborate on this?
I do not think it is a "hack". It is straightforward, for every command that relies upon |
Running the
pop build..
command does not work as expected.Expected result: Assuming I am in my project directory which has a root Cargo.toml file. When I do
pop build..
command, the resulting build artefact(s) should be in the target directory of my project.Observed result: Build is successful but target folder is not created in my project directory. Instead it is located somewhere else entirely, determined by
CARGO_TARGET_DIR
env.To recreate,
pop build contract ..
We should not be depending on the CARGO_TARGET_DIR for the build of the contract, maybe we can try CARGI_MANIFEST_DIR instead? This configuration should also only be project based, it should not be used by the cli everytime I compile some other project because this is also what is currently happening.
The text was updated successfully, but these errors were encountered: