Unable to install from instructions.
justinabrahms opened this issue · comments
Justin Abrahms commented
[abrahms@subconscious-nix:/tmp/action-validator]$ git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
[abrahms@subconscious-nix:/tmp/action-validator]$ git submodule status
-14a055e90e675a7b1ae41fee3bcebcf8790f59de src/schemastore
[abrahms@subconscious-nix:/tmp/action-validator]$ cargo build
Compiling action-validator v0.0.0-git (/tmp/action-validator)
error: couldn't read src/schemastore/src/schemas/json/github-action.json: No such file or directory (os error 2)
--> src/schemas.rs:8:9
|
8 | include_bytes!("schemastore/src/schemas/json/github-action.json"),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)
error: couldn't read src/schemastore/src/schemas/json/github-workflow.json: No such file or directory (os error 2)
--> src/schemas.rs:15:9
|
15 | include_bytes!("schemastore/src/schemas/json/github-workflow.json"),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `action-validator` (lib) due to 2 previous errors
[abrahms@subconscious-nix:/tmp/action-validator]$ cargo --version
cargo 1.70.0 (ec8a8a0ca 2023-04-25)
I'm pretty sure I did the things your instructions suggested.
Matt Palmer commented
Looks like there needs to be a git submodule update
run after git submodule init
. I'll update the instructions in the README.