Skip to content

Restructure store folders layout#181

Merged
j178 merged 2 commits intomasterfrom
folders
Feb 17, 2025
Merged

Restructure store folders layout#181
j178 merged 2 commits intomasterfrom
folders

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 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

#[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

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant