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

fix: more robust nixos check #150

Merged
merged 3 commits into from
Jan 17, 2025
Merged

fix: more robust nixos check #150

merged 3 commits into from
Jan 17, 2025

Conversation

DaniPopes
Copy link
Member

Fixes #149.

@@ -43,7 +43,10 @@ impl FromStr for Platform {
}

pub fn is_nixos() -> bool {
std::path::Path::new("/etc/NIXOS").exists()
cfg!(target_os = "linux")
Copy link
Member

Choose a reason for hiding this comment

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

I think it is relatively reasonable to assume this and it would specifically fix the issue for the user in foundry-rs/foundry#9682 (comment)

@DaniPopes DaniPopes merged commit 99f1f8a into master Jan 17, 2025
8 checks passed
@DaniPopes DaniPopes deleted the dani/nixos branch January 17, 2025 11:57
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.

bug: having NixOS installed on the system forces a user to use NixOS to manage the solc installation
2 participants