Giter Site home page Giter Site logo

Comments (3)

glfmn avatar glfmn commented on July 17, 2024

Installation

preferred with ln

$ ln -s ../../hooks/pre-commit.sh .git/hooks/pre-commit
$ chmod +x .git/hooks/pre-commit

or with cp

$ cp hooks/pre-commit.sh .git/hooks/pre-commit
$ chmod +x .git/hooks/pre-commit

Using ln vs cp

  • ln: if you happen to checkout a part of the history which does not include the pre-commit hook in the root, it breaks because the file it links to is no longer present, requiring manual testing and --no-verify
  • cp: you will need to manually apply updates by copying updated hooks

from gdnative.

nical avatar nical commented on July 17, 2024

Nice!

Godot can't find libgdnative_test.so

libgdnative_test.so is in target/debug/ after building the test/ directory. Right now it has to be copied into the godot project of the test directory which is begging to be automated.

Godot exits status 0 on failure to find libgdnative_test.so

Oops! that's a mistake and thankfully an easy one to fix, thanks for spotting this. See https://github.com/GodotNativeTools/godot-rust/blob/master/test/project/main.gd#L16 this branch should set the exit code but currently doesn't.

from gdnative.

glfmn avatar glfmn commented on July 17, 2024

Thanks for getting back to me, I have no idea how I didn't notice that it was the file that's mentioned in this line on your CONTRIBUTING.md file!

cp ./target/debug/libgdnative_test.so ./test/project/lib

It's in my script, copied from your CONTRIBUTING.md file, it seems to have been renaming the file lib instead of putting it in the folder test/project/lib/. I updated the line accordingly and it works now.

I've opened a PR: #65.

from gdnative.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.