You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've a custom build script that's used to provide a shortcut path for folks that want to make it easy for their users to enable hooks in their local env, and this works by leveraging the internal init function.
That's well and good for the lib cases (added as a dev dep and compiled during a cargo test), but there's no reason to attempt to init when building the bin/cli target (e.g. cargo install rusty-hook)
Should be able to use one of cargo's vars to conditionally run the steps in the build script
We've a custom build script that's used to provide a shortcut path for folks that want to make it easy for their users to enable hooks in their local env, and this works by leveraging the internal init function.
That's well and good for the lib cases (added as a dev dep and compiled during a
cargo test
), but there's no reason to attempt to init when building the bin/cli target (e.g.cargo install rusty-hook
)Should be able to use one of cargo's vars to conditionally run the steps in the build script
https://github.com/swellaby/rusty-hook/blob/master/build.rs
The text was updated successfully, but these errors were encountered: