summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-07-06 01:44:25 +0000
committerCoprDistGit <infra@openeuler.org>2023-07-06 01:44:25 +0000
commit6b41f4b6c01e0822d60a2985abb87c2f890e3f67 (patch)
tree8b83a2d83f226603c82f2d912137acad178227a8
parent7c690297d572ea09823b5db763aa7a6827c9f831 (diff)
automatic import of bat
-rw-r--r--bat.spec4
-rw-r--r--config21
2 files changed, 5 insertions, 20 deletions
diff --git a/bat.spec b/bat.spec
index 597a9f9..d0dcd3e 100644
--- a/bat.spec
+++ b/bat.spec
@@ -19,9 +19,9 @@ A cat(1) clone with syntax highlighting and Git integration.
mkdir -p ~/.cargo/
cp %{SOURCE1} ~/.cargo/
+cat ~/.cargo/config
-ls -al
-ls ~/.cargo/ -al
+cargo check
%install
cargo install --locked bat
diff --git a/config b/config
index 5616f73..34b5e8d 100644
--- a/config
+++ b/config
@@ -1,28 +1,13 @@
[source.crates-io]
replace-with = 'rsproxy'
-registry = "https://github.com/rust-lang/crates.io-index"
[source.rsproxy]
registry = "https://rsproxy.cn/crates.io-index"
+[source.rsproxy-sparse]
+registry = "sparse+https://rsproxy.cn/index/"
[registries.rsproxy]
index = "https://rsproxy.cn/crates.io-index"
-# 中国科学技术大学
-[source.ustc]
-registry = "git://mirrors.ustc.edu.cn/crates.io-index"
-
-# 上海交通大学
-[source.sjtu]
-registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"
-
-# 清华大学
-[source.tuna]
-registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
-
-# rustcc社区
-[source.rustcc]
-registry = "https://code.aliyun.com/rustcc/crates.io-index.git"
-
[net]
-git-fetch-with-cli = true
+git-fetch-with-cli = true \ No newline at end of file