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

Complete the soversion granularity #350

Merged
merged 2 commits into from
Oct 11, 2023
Merged

Complete the soversion granularity #350

merged 2 commits into from
Oct 11, 2023

Conversation

lu-zero
Copy link
Owner

@lu-zero lu-zero commented Oct 10, 2023

No description provided.

@lu-zero
Copy link
Owner Author

lu-zero commented Oct 10, 2023

@kpcyrd could you please test and confirm that works for your purpose as well?

src/lib.rs Outdated Show resolved Hide resolved
ln_sf
.arg(&self.with_full_ver)
.arg(install_path_lib.join(&self.with_main_ver));
let _ = ln_sf.status().unwrap();
Copy link
Contributor

@kpcyrd kpcyrd Oct 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This panics if the ln binary couldn't be executed, and ignores the ExitStatus if ln returned an error (below for self.canonical too).

fn links(...) could be changed to fn links(...) -> anyhow::Result<()>, creating the symlink could also be its own function.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's unrelated to this set, but it would be a welcomed change, if you feel like sending a patch for it :)

Co-authored-by: kpcyrd <git@rxv.cc>
@lu-zero lu-zero merged commit 8f78176 into master Oct 11, 2023
28 checks passed
@lu-zero lu-zero deleted the more-soversion branch October 11, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants