From a6609d0d4b877ce35472cd5b6a497add1adc5a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Szab=C3=B3?= Date: Sun, 5 May 2024 18:28:36 +0300 Subject: [PATCH] better to use the repository field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matthias Gatto Signed-off-by: Gábor Szabó --- .../0001-Add-ConfigurationFile-to-parse-.osc-config.json.patch | 2 +- Cargo.toml | 2 +- Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.patches/0001-Add-ConfigurationFile-to-parse-.osc-config.json.patch b/.patches/0001-Add-ConfigurationFile-to-parse-.osc-config.json.patch index 654763fb..1ab827dd 100644 --- a/.patches/0001-Add-ConfigurationFile-to-parse-.osc-config.json.patch +++ b/.patches/0001-Add-ConfigurationFile-to-parse-.osc-config.json.patch @@ -16,7 +16,7 @@ index bd24ec0..548c0c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ description = "Outscale API SDK" - homepage = "https://github.com/outscale/osc-sdk-rust/" + repository = "https://github.com/outscale/osc-sdk-rust/" [dependencies] +home = "0.5.3" diff --git a/Cargo.toml b/Cargo.toml index 1f953c02..5f1aabd5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Outscale SAS "] edition = "2021" license = "BSD-3-Clause" description = "Outscale API SDK" -homepage = "https://github.com/outscale/osc-sdk-rust/" +repository = "https://github.com/outscale/osc-sdk-rust/" [dependencies] home = "0.5.3" diff --git a/Makefile b/Makefile index f5d7e01e..a49a649e 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ gen: clean osc-api/outscale.yaml # Set outscale as author docker run -v $(PWD):/sdk --rm $(OPENAPI_IMAGE) sed -i "s/OpenAPI Generator team and contributors/Outscale SAS /g" /sdk/.sdk/Cargo.toml # Set rust version, licensing, homepage, description, ... - docker run -v $(PWD):/sdk --rm $(OPENAPI_IMAGE) sed -i "s/edition = \"2018\"/edition = \"2021\"\nlicense = \"BSD-3-Clause\"\ndescription = \"Outscale API SDK\"\nhomepage = \"https:\/\/github.com\/outscale\/osc-sdk-rust\/\"/" /sdk/.sdk/Cargo.toml + docker run -v $(PWD):/sdk --rm $(OPENAPI_IMAGE) sed -i "s/edition = \"2018\"/edition = \"2021\"\nlicense = \"BSD-3-Clause\"\ndescription = \"Outscale API SDK\"\nrepository = \"https:\/\/github.com\/outscale\/osc-sdk-rust\/\"/" /sdk/.sdk/Cargo.toml # Add dev-dependencies (used by examples) docker run -v $(PWD):/sdk --rm $(OPENAPI_IMAGE) sed -i "s/\[dev-dependencies\]/\[dev-dependencies\]\nrand = \"0.8.5\"/" /sdk/.sdk/Cargo.toml docker run -v $(PWD):/sdk --rm $(OPENAPI_IMAGE) chown -R $(USER_ID).$(GROUP_ID) /sdk/.sdk