-
Notifications
You must be signed in to change notification settings - Fork 211
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
Path of gdnative-test
lib is different from the one specify in check.sh
#965
Comments
Thanks for the report! If you replace cmds+=("cp target/debug/gdnative_test* test/project/lib/") with cmds+=("cp target/debug/*gdnative_test* test/project/lib/") does it work? We had a pre-commit hook in the past, I'm not a big fan of them to be honest. It's unnecessarily intrusive and can slow down the workflow significantly. We have CI that already checks everything and allows for async workflow (while my previous commit is checking, I can already work on the next thing). The |
Yeah, it works. BTW, this script is not compatible with zsh (and fish). So I suggest that we should add a shebang for it to ensure it's executed by bash. (if execute it directly, i.e. |
Would you like to open a PR that fixes both things? 🙂
Does it have the right chmod permissions for that at the moment? |
Yes. The error message looks like this:
|
opened 👍 |
966: fix(check.sh): make it more portable r=Bromeon a=Bogay adjust the pattern to match output lib path, and add shebang to ensure which shell to use. Fixs #965 Co-authored-by: bogay <[email protected]>
In
check.sh
, it copiestarget/debug/gdnative_test*
totest/project/lib
and then run integration tests.https://github.com/godot-rust/godot-rust/blob/master/check.sh#L77-L82
But the path of
gdnative-test
istarget/debug/ilbgdnative_test*
on my computer. (Ubuntu 20.04 on WSL)Should we change the command to
cp target/debug/*gdnative_test* test/project/lib/
or there is anyway we can find where the output lib goes?BTW, is it reasonable to use some pre-commit tools like rusty-hook to maintain these checks?
I usually use pre-commit in my python projects and husky for js project, not sure whether any popular alternative for rust project.
The text was updated successfully, but these errors were encountered: