Closed boundless-forest closed 2 years ago
Hello @AsceticBear,
srtool
actually hints what the issue is:
!!! The PACKAGE 'pangoro-runtime' does not match the crate name at 'runtime/pangoro'
As you see, srtool
makes the assumption that your runtime lives in runtime/pangoro
but that's not the case.
You need to:
--profile release
, it does not hurt but this is deprecated--runtime-dir
set to the proper location of your runtimeYou may also check srtool build --help
for more details:
srtool-build 0.7.1
chevdor <chevdor@gmail.com>
Start a new srtool container to build your runtime
USAGE:
srtool build [FLAGS] [OPTIONS] --package <package> [path]
ARGS:
<path> By default, srtool will work in the current folder. If your project is located in
another location, you can pass it here [default: .]
...
-r, --runtime-dir <runtime-dir>
If your runtime is not in the standard location runtime/<chain_name> you can pass this
args to help srtool find it [env: RUNTIME_DIR=]
The following will work for you:
srtool build --package pangoro-runtime --runtime-dir node/runtime/pangoro
I am closing this issue since I tested the solution, feel free to re-open if you still run into troubles.
Error Report in the build process:
Looks like the reason is our crate name does not match "xxx-runtime"? How can I fix this case?