Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scanning functionality #204

Open
wants to merge 1 commit into
base: scan
Choose a base branch
from
Open

Conversation

tuxinal
Copy link

@tuxinal tuxinal commented Sep 12, 2022

same as #170 but squashed to avoid the mess

@theRookieCoder theRookieCoder changed the base branch from main to scan November 16, 2022 13:20
@tippfehlr
Copy link

tippfehlr commented Mar 14, 2023

What does this do? Scan a folder for importing existing mods into ferium?

@LunarN0v4
Copy link

it's a bit weird since it doesn't seem to build properly

@tippfehlr
Copy link

it's a bit weird since it doesn't seem to build properly

I can confirm that this isn’t building:

error[E0432]: unresolved imports `libium::config::structs::ModPlatform`, `libium::scan`
  --> src/subcommands/scan.rs:9:43
   |
9  |     config::structs::{Mod, ModIdentifier, ModPlatform, Profile},
   |                                           ^^^^^^^^^^^ no `ModPlatform` in `config::structs`
10 |     scan,
   |     ^^^^ no `scan` in the root
   |
   = help: consider importing this module instead:
           crate::subcommands::scan

error[E0433]: failed to resolve: could not find `ModPlatform` in `structs`
   --> src/main.rs:357:71
    |
357 |                 preferred_platform.unwrap_or(libium::config::structs::ModPlatform::Modrinth),
    |                                                                       ^^^^^^^^^^^ could not find `ModPlatform` in `structs`

error[E0412]: cannot find type `ModPlatform` in module `libium::config::structs`
  --> src/cli.rs:90:61
   |
90 |         preferred_platform: Option<libium::config::structs::ModPlatform>
   |                                                             ^^^^^^^^^^^ not found in `libium::config::structs`

error[E0412]: cannot find type `ModPlatform` in module `libium::config::structs`
  --> src/subcommands/scan.rs:18:50
   |
18 |     preferred_platform: libium::config::structs::ModPlatform,
   |                                                  ^^^^^^^^^^^ not found in `libium::config::structs`

error[E0609]: no field `project_id` on type `&_`
  --> src/subcommands/scan.rs:51:69
   |
51 |                         ModIdentifier::ModrinthProject(modrinth_mod.project_id.clone())
   |                                                                     ^^^^^^^^^^

error[E0609]: no field `mod_id` on type `&_`
  --> src/subcommands/scan.rs:54:73
   |
54 |                         ModIdentifier::CurseForgeProject(curseforge_mod.mod_id)
   |                                                                         ^^^^^^

Some errors have detailed explanations: E0412, E0432, E0433, E0609.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `ferium` due to 6 previous errors

@tuxinal
Copy link
Author

tuxinal commented May 17, 2023

you have to change the libium dependency in Cargo.toml to the squash branch of my fork for it to build

What does this do? Scan a folder for importing existing mods into ferium?

Yes exactly that see #57

@LunarN0v4

This comment was marked as off-topic.

@theRookieCoder

This comment was marked as off-topic.

@LunarN0v4

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants