3 Commits
Author SHA1 Message Date
objz 04d809962c added notice to the README 2026-12-03 15:00:12 +01:00
objz 158549f7e4 chore(release): prepare for 0.6.4 2026-10-29 16:38:01 +01:00
objz 66062a6427 fix: avoid spurious warnings during instance installation 2026-10-29 16:37:04 +01:00
6 changed files with 12 additions and 7 deletions

No files matched your search

Generated
+1 -1
View File
@@ -3856,7 +3856,7 @@ dependencies = [
[[package]] [[package]]
name = "rmcl" name = "rmcl"
version = "0.6.3" version = "0.6.4"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"base64", "base64",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "rmcl" name = "rmcl"
version = "0.6.3" version = "0.6.4"
authors = ["objz"] authors = ["objz"]
edition = "2024" edition = "2024"
description = "A fully featured Minecraft TUI launcher" description = "A fully featured Minecraft TUI launcher"
+2
View File
@@ -2,6 +2,8 @@
# rmcl # rmcl
> **Development notice:** This project is not abandoned. I am taking a short break and expect to resume active development within a month at the latest. In the meantime, I will continue to review and merge pull requests and other contributions.
[![Contributors][contributors-shield]][contributors-url] [![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url] [![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url] [![Stargazers][stars-shield]][stars-url]
+1 -1
View File
@@ -632,7 +632,7 @@ impl InstanceManager {
let config_path = self.instances_dir.join(name).join("instance.json"); let config_path = self.instances_dir.join(name).join("instance.json");
if !config_path.exists() { if !config_path.exists() {
tracing::warn!( tracing::debug!(
"Instance '{}' config is missing at {}", "Instance '{}' config is missing at {}",
name, name,
config_path.display() config_path.display()
+2 -2
View File
@@ -522,8 +522,8 @@ pub async fn download_assets_from(
serde_json::from_slice(&bytes).ok() serde_json::from_slice(&bytes).ok()
} }
Ok(_) => { Ok(_) => {
tracing::warn!( tracing::debug!(
"Invalid cached asset index at {}; fetching again", "Cached asset index at {} does not match the requested version; fetching again",
index_path.display() index_path.display()
); );
None None
+5 -2
View File
@@ -411,8 +411,11 @@ async fn download_assets_writes_index_when_objects_is_empty() {
assert!(body.get("objects").is_some()); assert!(body.get("objects").is_some());
} }
#[rstest::rstest]
#[case(b"{\"objects\":{\"fake\":{}}}")]
#[case(b"{\"objects\":{},\"virtual\":false}")]
#[tokio::test] #[tokio::test]
async fn invalid_cached_index_is_refetched() { async fn mismatched_cached_index_is_refetched(#[case] cached: &[u8]) {
let server = MockServer::start().await; let server = MockServer::start().await;
let body = serde_json::to_vec(&json!({"objects": {}})).unwrap(); let body = serde_json::to_vec(&json!({"objects": {}})).unwrap();
Mock::given(method("GET")) Mock::given(method("GET"))
@@ -426,7 +429,7 @@ async fn invalid_cached_index_is_refetched() {
let tmp = tempfile::tempdir().unwrap(); let tmp = tempfile::tempdir().unwrap();
let index_path = tmp.path().join("cache/minecraft/assets/indexes/5.json"); let index_path = tmp.path().join("cache/minecraft/assets/indexes/5.json");
std::fs::create_dir_all(index_path.parent().unwrap()).unwrap(); std::fs::create_dir_all(index_path.parent().unwrap()).unwrap();
std::fs::write(&index_path, b"{\"objects\":{\"fake\":{}}}").unwrap(); std::fs::write(&index_path, cached).unwrap();
download_assets(&HttpClient::new(), &meta, tmp.path()) download_assets(&HttpClient::new(), &meta, tmp.path())
.await .await