-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Restructure store folders layout #181
Conversation
rev.hash(state); | ||
} | ||
Repo::Local { .. } => { | ||
"local".hash(state); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use ToString
} | ||
|
||
async fn build_docker_image(hook: &Hook, pull: bool) -> Result<()> { | ||
let Some(src) = hook.repo_path() else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning if additional deps not empty
} | ||
|
||
async fn install(&self, hook: &Hook) -> Result<()> { | ||
let env = hook.environment_dir().expect("No environment dir found"); | ||
let Some(env) = hook.env_path() else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make a type to guarantee this is always Somw
@@ -25,8 +27,6 @@ pub enum Error { | |||
#[error(transparent)] | |||
Fmt(#[from] std::fmt::Error), | |||
#[error(transparent)] | |||
DB(#[from] rusqlite::Error), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove LocalHookNoEnv
Restucture the
~/.cache/prefligit/
directory layout, moving from thepre-commit
implementation.sqlite
dbHOME/repos
HOME/hooks