Fix docker build
Diff
Dockerfile | 2 +-
src/main.rs | 15 ++++++---------
2 files changed, 5 insertions(+), 12 deletions(-)
@@ -1,6 +1,6 @@
FROM rust:1-slim-bookworm AS builder
RUN apt update && apt install -y make
RUN apt update && apt install -y make pkg-config clang
COPY . /sources
WORKDIR /sources
@@ -585,13 +585,6 @@
match args.next().as_deref() {
Some("git-upload-pack") => {
if args.next().as_deref() != Some("git-upload-pack") {
anyhow::bail!("not git-upload-pack");
}
let arg = args.next();
@@ -603,10 +596,10 @@
self.project = Some(Arc::from(project.to_string()));
} else {
session.extended_data(channel, 1, CryptoVec::from_slice(indoc::indoc! {b"
\r\nNo project was given in the path part of the SSH URI. A GitLab group and project should be defined in your .cargo/config.toml as follows:
[registries]
my-project = {{ index = \"ssh://domain.to.registry.com/my-group/my-project\" }}\r\n
"}));
\r\nNo project was given in the path part of the SSH URI. A GitLab group and project should be defined in your .cargo/config.toml as follows:
[registries]
my-project = {{ index = \"ssh://domain.to.registry.com/my-group/my-project\" }}\r\n
"}));
session.close(channel);
}