Skip to content

Commit b67e4e0

Browse files
committed
Fix index build
1 parent a58074c commit b67e4e0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/build-index.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
RUST_BACKTRACE=full cargo run --target-dir /tmp --manifest-path=rust/Cargo.toml rustc -d /tmp/rustc.js
1919
RUST_BACKTRACE=full cargo run --target-dir /tmp --manifest-path=rust/Cargo.toml targets -d /tmp/targets.js
2020
git clone --depth 1 https://github.com/jplatte/caniuse.rs.git /tmp/caniuse
21-
RUST_BACKTRACE=full cargo run --target-dir /tmp --manifest-path=rust/Cargo.toml caniuse -r /tmp/caniuse -d /tmp/caniuse.js
21+
RUST_BACKTRACE=full cargo run --target-dir /tmp --manifest-path=rust/Cargo.toml caniuse -p /tmp/caniuse -d /tmp/caniuse.js
2222
git clone --depth 1 https://github.com/nrc/rfc-index.git /tmp/rfc-index
23-
RUST_BACKTRACE=full cargo run --target-dir /tmp --manifest-path=rust/Cargo.toml rfcs -r /tmp/rfc-index -d /tmp/rfcs.js
23+
RUST_BACKTRACE=full cargo run --target-dir /tmp --manifest-path=rust/Cargo.toml rfcs -p /tmp/rfc-index -d /tmp/rfcs.js
2424
wget https://static.crates.io/db-dump.tar.gz -O /tmp/db-dump.tar.gz
25-
RUST_BACKTRACE=full cargo run --target-dir /tmp --manifest-path=rust/Cargo.toml --release crates -r /tmp/db-dump.tar.gz -d /tmp/crates.js
25+
RUST_BACKTRACE=full cargo run --target-dir /tmp --manifest-path=rust/Cargo.toml --release crates -p /tmp/db-dump.tar.gz -d /tmp/crates.js
2626
mv /tmp/*.js lib/index
2727
- name: Build website
2828
run: |

rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "rust-search-extension"
2+
name = "build-index"
33
version = "0.1.0"
44
authors = ["Folyd <[email protected]>"]
55
edition = "2021"

rust/src/tasks/caniuse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const INDEX_PATH: &str = "../lib/index/caniuse.js";
1616
#[argh(subcommand, name = "caniuse")]
1717
pub struct CaniuseTask {
1818
/// caniuse.rs repository path
19-
#[argh(option, short = 'r')]
19+
#[argh(option, short = 'p')]
2020
repo_path: String,
2121
/// destination path
2222
#[argh(option, short = 'd', default = "INDEX_PATH.to_string()")]

rust/src/tasks/rfcs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const INDEX_PATH: &str = "../lib/index/rfcs.js";
1212
#[argh(subcommand, name = "rfcs")]
1313
pub struct RfcsTask {
1414
/// rfc-index repository path
15-
#[argh(option, short = 'r')]
15+
#[argh(option, short = 'p')]
1616
repo_path: String,
1717
/// destination path
1818
#[argh(option, short = 'd', default = "INDEX_PATH.to_string()")]

0 commit comments

Comments
 (0)