Skip to content

Commit

Permalink
fix: fix lib name issue for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Feb 20, 2021
1 parent 2cfb985 commit 99bfc28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin_manager/src/plugin_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl PluginManager {

#[cfg(target_os = "macos")]
fn get_plugin_path(plugin_name: &str) -> String {
format!("target/{}/libcoco_{}.dylib", BUILD_TYPE, plugin_name)
format!("target/{}/lib{}.dylib", BUILD_TYPE, plugin_name)
}

#[cfg(target_os = "windows")]
Expand All @@ -52,6 +52,6 @@ mod tests {
#[ignore]
#[test]
fn test_plugin_run_in_local() {
PluginManager::run("swagger");
PluginManager::run("coco_swagger");
}
}

0 comments on commit 99bfc28

Please sign in to comment.