Skip to content

Conversation

@lnicola
Copy link
Member

@lnicola lnicola commented Dec 21, 2020

Closes #5641

The motivation in #5641 isn't too strong, but /etc/os-release exists on pretty much every Linux distro, while /etc/nixos sounds like an implementation detail.

@lnicola lnicola changed the title Use os-release to check for NixOS Use /etc/os-release to check for NixOS Dec 21, 2020
The motivation in rust-lang#5641 isn't too strong, but /etc/os-release exists on
pretty much every Linux distro, while /etc/nixos sounds like an
implementation detail.
@matklad
Copy link
Contributor

matklad commented Dec 21, 2020 via email

@bors
Copy link
Contributor

bors bot commented Dec 21, 2020

@bors bors bot merged commit e4f922a into rust-lang:master Dec 21, 2020
@lnicola lnicola deleted the os-release branch December 21, 2020 18:34
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.

Having /etc/nixos directory on macOS can cause rust-analyzer to assume the OS is nixOS

2 participants