diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-01-29 00:34:30 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-01-29 00:34:30 +0100 |
| commit | 05b674190f26e2a58cc7b7288586c031552d50f3 (patch) | |
| tree | 452035e852a7012061c9424a9dc0f56fcad129ee /server/src/githook.rs | |
| parent | 145b93302cbb7cb090c90fd07ed4ebabf742e453 (diff) | |
Add git-server to docker-compose
To make a githook that can run on alpine images (using musl) they
need to be cross-compiled. Then it became apparent that the githook
binary was pulling in all the same dependencies as the server was.
This is not good, but apparently also not something Rust/Cargo has
figured out. RFC:s has been shutdown. workspace might be an option
but then I probably need to also add a "code shared by both githook
and server" library that both can link. Problem for another day.
Diffstat (limited to 'server/src/githook.rs')
| -rw-r--r-- | server/src/githook.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/src/githook.rs b/server/src/githook.rs index 24b4359..2e1de13 100644 --- a/server/src/githook.rs +++ b/server/src/githook.rs @@ -52,7 +52,13 @@ async fn main() -> Result<(), Box<dyn Error>> { receive: Vec::new(), }; - let repo = git::Repository::new(PathBuf::from("."), true, None::<String>, None::<String>); + let repo = git::Repository::new( + PathBuf::from("."), + true, + None::<String>, + None::<String>, + None::<PathBuf>, + ); while let Some(line) = lines.next_line().await? { let data: Vec<&str> = line.split(' ').collect(); |
