Skip to content

Commit 9d0f3b0

Browse files
Only use Fabric backwards compatibility if a Quilt version can't be found #30
1 parent 1e9eb0f commit 9d0f3b0

File tree

8 files changed

+214
-140
lines changed

8 files changed

+214
-140
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog for Ferium
22

3+
## `v3.24.0`
4+
### 03.05.2022
5+
6+
- Updated to Libium `1.11`
7+
- Quilt -> Fabric backwards compatibility is now handled by Ferium rather than Libium
8+
- Updated the integration tests to use Incendium rather than Terralith because the CF API currently has some problems with Terralith
9+
- Calls to `libium::upgrade` functions no longer provide a `Profile`, the game version and mod loader to check are given instead
10+
- Getting the primary file of a Modrinth `Version` has been moved to the conversion function
11+
- A workaround with vectors is being used to avoid a possible borrow checker bug
12+
- Ferium will now only rely on Fabric backwards compatibility if it can't find a native Quilt version. This fixes [#30](https://github.com/theRookieCoder/ferium/issues/30)
13+
314
## `v3.23.0`
415
### 01.05.2022
516

Cargo.lock

Lines changed: 24 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ferium"
3-
version = "3.23.0"
3+
version = "3.24.0"
44
edition = "2021"
55
authors = ["Ilesh Thiada (theRookieCoder) <[email protected]>", "Daniel Hauck (SolidTux)"]
66
description = "Ferium is a CLI program for managing Minecraft mods from Modrinth, CurseForge, and Github Releases"
@@ -32,7 +32,7 @@ serde_json = "1.0"
3232
itertools = "0.10"
3333
colored = "2.0"
3434
ferinth = "2.1"
35-
libium = "1.10"
35+
libium = "1.11"
3636
anyhow = "1.0"
3737
online = "3.0"
3838
semver = "1.0"

src/subcommands/add.rs

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,15 @@ pub async fn modrinth(
1414
eprint!("Adding mod... ");
1515
let project = add::modrinth(modrinth, project_id, profile).await?;
1616
// Add dependencies
17-
let latest_version =
18-
libium::upgrade::modrinth(modrinth, profile, &project.id, Some(true), Some(true))
19-
.await?
20-
.0;
17+
let latest_version = libium::upgrade::modrinth(
18+
modrinth,
19+
&project.id,
20+
&profile.game_version,
21+
&profile.mod_loader,
22+
Some(true),
23+
Some(true),
24+
)
25+
.await?;
2126
println!("{} ({})", *TICK, project.title);
2227
for dependency in latest_version.dependencies {
2328
let id = if let Some(project_id) = dependency.project_id {
@@ -64,10 +69,15 @@ pub async fn curseforge(
6469
eprint!("Adding mod... ");
6570
let project = add::curseforge(curseforge, project_id, profile).await?;
6671
// Add dependencies
67-
let latest_version =
68-
libium::upgrade::curseforge(curseforge, profile, project.id, Some(true), Some(true))
69-
.await?
70-
.0;
72+
let latest_version = libium::upgrade::curseforge(
73+
curseforge,
74+
project.id,
75+
&profile.game_version,
76+
&profile.mod_loader,
77+
Some(true),
78+
Some(true),
79+
)
80+
.await?;
7181
println!("{} ({})", *TICK, project.name);
7282
for dependency in latest_version.dependencies {
7383
let id = dependency.mod_id;

0 commit comments

Comments
 (0)