Skip to content

Commit c6c7a1d

Browse files
Replace CaffeineMC/sodium-fabric with CaffeineMC/sodium
1 parent 5691c95 commit c6c7a1d

File tree

5 files changed

+16
-23
lines changed

5 files changed

+16
-23
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ So to add [Terralith](https://www.curseforge.com/minecraft/mc-mods/terralith), y
201201
```bash
202202
ferium add owner/name
203203
```
204-
`owner` is the username of the owner of the repository and `name` is the name of the repository, both are case-insensitive. (e.g. [Sodium's repository](https://github.com/CaffeineMC/sodium-fabric) has the id `CaffeineMC/sodium-fabric`). You can find these at the top left of the repository's page.
205-
So to add [Sodium](https://github.com/CaffeineMC/sodium-fabric), you should run `ferium add CaffeineMC/sodium-fabric` (again, case-insensitive).
204+
`owner` is the username of the owner of the repository and `name` is the name of the repository, both are case-insensitive (e.g. [Sodium's repository](https://github.com/CaffeineMC/sodium) has the id `CaffeineMC/sodium`). You can find these at the top left of the repository's page.
205+
So to add [Sodium](https://github.com/CaffeineMC/sodium), you should run `ferium add CaffeineMC/sodium`.
206206

207207
> [!IMPORTANT]
208208
> The GitHub repository needs to upload JAR files to their _Releases_ for ferium to download, or else it will refuse to be added.

justfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ set windows-powershell := true
55
install:
66
cargo install --force --path .
77

8-
# Install ferium to cargo's binary folder, but with faster compilation (offline, debug, nightly, parallel frontend)
8+
# Install ferium to cargo's binary folder, but with faster compilation (offline & debug)
99
install-dev:
1010
cargo install --offline --debug --force --path .
1111

1212
# Delete test artefacts
1313
clean-test:
14-
rm -rf tests/mods
15-
rm -rf tests/md_modpack
16-
rm -rf tests/cf_modpack
17-
rm -rf tests/configs/running
14+
rm -rf tests/mods \
15+
tests/md_modpack \
16+
tests/cf_modpack \
17+
tests/configs/running

tests/configs/one_profile_full.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
}
2222
},
2323
{
24-
"name": "sodium-fabric",
24+
"name": "sodium",
2525
"identifier": {
2626
"GitHubRepository": [
2727
"CaffeineMC",
28-
"sodium-fabric"
28+
"sodium"
2929
]
3030
}
3131
}

tests/configs/two_profiles_one_empty.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
}
2222
},
2323
{
24-
"name": "sodium-fabric",
24+
"name": "sodium",
2525
"identifier": {
2626
"GitHubRepository": [
2727
"CaffeineMC",
28-
"sodium-fabric"
28+
"sodium"
2929
]
3030
}
3131
}

tests/integration_tests.rs

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,13 @@ fn add_curseforge() -> Result {
133133
#[test]
134134
fn add_github() -> Result {
135135
// Add Sodium to config
136-
run_command(
137-
vec!["add", "CaffeineMC/sodium-fabric"],
138-
Some("empty_profile"),
139-
)
136+
run_command(vec!["add", "CaffeineMC/sodium"], Some("empty_profile"))
140137
}
141138

142139
#[test]
143140
fn add_all() -> Result {
144141
run_command(
145-
vec!["add", "starlight", "591388", "CaffeineMC/sodium-fabric"],
142+
vec!["add", "starlight", "591388", "CaffeineMC/sodium"],
146143
Some("empty_profile"),
147144
)
148145
}
@@ -193,11 +190,7 @@ fn modpack_add_curseforge() -> Result {
193190
fn already_added() {
194191
assert!(run_command(vec!["add", "StArLiGhT"], Some("one_profile_full")).is_ok());
195192
assert!(run_command(vec!["add", "591388"], Some("one_profile_full")).is_ok());
196-
assert!(run_command(
197-
vec!["add", "caffeinemc/Sodium-Fabric"],
198-
Some("one_profile_full")
199-
)
200-
.is_ok());
193+
assert!(run_command(vec!["add", "cAfFeInEmC/SoDiUm"], Some("one_profile_full")).is_ok());
201194
}
202195

203196
#[test]
@@ -295,15 +288,15 @@ fn remove_fail() {
295288
#[test]
296289
fn remove_name() -> Result {
297290
run_command(
298-
vec!["remove", "starlight (fabric)", "incendium", "sodium-fabric"],
291+
vec!["remove", "starlight (fabric)", "incendium", "sodium"],
299292
Some("one_profile_full"),
300293
)
301294
}
302295

303296
#[test]
304297
fn remove_id() -> Result {
305298
run_command(
306-
vec!["remove", "H8CaAYZC", "591388", "caffeinemc/sodium-fabric"],
299+
vec!["remove", "H8CaAYZC", "591388", "caffeinemc/sodium"],
307300
Some("one_profile_full"),
308301
)
309302
}

0 commit comments

Comments
 (0)