Skip to content
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

Merged
merged 2 commits into from
Feb 17, 2025
Merged

Restructure store folders layout #181

merged 2 commits into from
Feb 17, 2025

Conversation

j178
Copy link
Owner

@j178 j178 commented Feb 17, 2025

Restucture the ~/.cache/prefligit/ directory layout, moving from the pre-commit implementation.

  • No longer use sqlite db
  • Move cloned repositories into HOME/repos
  • No longer create dummy packages for local repos
  • Move installed hooks environment into HOME/hooks

@j178 j178 changed the title Restructure folders layout Restructure store folders layout Feb 17, 2025
@j178 j178 merged commit d5f9a7d into master Feb 17, 2025
15 checks passed
@j178 j178 deleted the folders branch February 17, 2025 12:32
@j178 j178 added enhancement New feature or request diff with upstream Differenment behavior with the original pre-commit labels Feb 17, 2025
rev.hash(state);
}
Repo::Local { .. } => {
"local".hash(state);
Copy link
Owner Author

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 {
Copy link
Owner Author

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 {
Copy link
Owner Author

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),
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove LocalHookNoEnv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diff with upstream Differenment behavior with the original pre-commit enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant