Skip to content

Commit

Permalink
Replace CaffeineMC/sodium-fabric with CaffeineMC/sodium
Browse files Browse the repository at this point in the history
  • Loading branch information
theRookieCoder committed Nov 17, 2024
1 parent 5691c95 commit c6c7a1d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 23 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ So to add [Terralith](https://www.curseforge.com/minecraft/mc-mods/terralith), y
```bash
ferium add owner/name
```
`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.
So to add [Sodium](https://github.com/CaffeineMC/sodium-fabric), you should run `ferium add CaffeineMC/sodium-fabric` (again, case-insensitive).
`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.
So to add [Sodium](https://github.com/CaffeineMC/sodium), you should run `ferium add CaffeineMC/sodium`.

> [!IMPORTANT]
> The GitHub repository needs to upload JAR files to their _Releases_ for ferium to download, or else it will refuse to be added.
Expand Down
10 changes: 5 additions & 5 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ set windows-powershell := true
install:
cargo install --force --path .

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

# Delete test artefacts
clean-test:
rm -rf tests/mods
rm -rf tests/md_modpack
rm -rf tests/cf_modpack
rm -rf tests/configs/running
rm -rf tests/mods \
tests/md_modpack \
tests/cf_modpack \
tests/configs/running
4 changes: 2 additions & 2 deletions tests/configs/one_profile_full.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
}
},
{
"name": "sodium-fabric",
"name": "sodium",
"identifier": {
"GitHubRepository": [
"CaffeineMC",
"sodium-fabric"
"sodium"
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/configs/two_profiles_one_empty.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
}
},
{
"name": "sodium-fabric",
"name": "sodium",
"identifier": {
"GitHubRepository": [
"CaffeineMC",
"sodium-fabric"
"sodium"
]
}
}
Expand Down
17 changes: 5 additions & 12 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,13 @@ fn add_curseforge() -> Result {
#[test]
fn add_github() -> Result {
// Add Sodium to config
run_command(
vec!["add", "CaffeineMC/sodium-fabric"],
Some("empty_profile"),
)
run_command(vec!["add", "CaffeineMC/sodium"], Some("empty_profile"))
}

#[test]
fn add_all() -> Result {
run_command(
vec!["add", "starlight", "591388", "CaffeineMC/sodium-fabric"],
vec!["add", "starlight", "591388", "CaffeineMC/sodium"],
Some("empty_profile"),
)
}
Expand Down Expand Up @@ -193,11 +190,7 @@ fn modpack_add_curseforge() -> Result {
fn already_added() {
assert!(run_command(vec!["add", "StArLiGhT"], Some("one_profile_full")).is_ok());
assert!(run_command(vec!["add", "591388"], Some("one_profile_full")).is_ok());
assert!(run_command(
vec!["add", "caffeinemc/Sodium-Fabric"],
Some("one_profile_full")
)
.is_ok());
assert!(run_command(vec!["add", "cAfFeInEmC/SoDiUm"], Some("one_profile_full")).is_ok());
}

#[test]
Expand Down Expand Up @@ -295,15 +288,15 @@ fn remove_fail() {
#[test]
fn remove_name() -> Result {
run_command(
vec!["remove", "starlight (fabric)", "incendium", "sodium-fabric"],
vec!["remove", "starlight (fabric)", "incendium", "sodium"],
Some("one_profile_full"),
)
}

#[test]
fn remove_id() -> Result {
run_command(
vec!["remove", "H8CaAYZC", "591388", "caffeinemc/sodium-fabric"],
vec!["remove", "H8CaAYZC", "591388", "caffeinemc/sodium"],
Some("one_profile_full"),
)
}
Expand Down

0 comments on commit c6c7a1d

Please sign in to comment.