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

Rename SearchPath #10539

Closed
Ericson2314 opened this issue Apr 17, 2024 · 4 comments · Fixed by #10573
Closed

Rename SearchPath #10539

Ericson2314 opened this issue Apr 17, 2024 · 4 comments · Fixed by #10573
Labels
good first issue Quick win for first-time contributors windows

Comments

@Ericson2314
Copy link
Member

Ericson2314 commented Apr 17, 2024

As is typical on that platform, Windows defines a SearchPath macro to choose between SearchPathA and SearchPathW. The macro conflicts with our struct name.

Originally posted by @Ericson2314 in #8901 (comment)

@Ericson2314 Ericson2314 added windows good first issue Quick win for first-time contributors labels Apr 17, 2024
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nix-on-windows/1113/109

@roberth
Copy link
Member

roberth commented Apr 19, 2024

NixSearchPath, or do we have an alternate term for this concept?
Doesn't hurt to qualify it anyway. There's other search paths out there, like PATH, etc, and we interact with those too.

@Ericson2314
Copy link
Member Author

LookupPath is an option, since the docs also use that.

I would like to avoid Nix since it is already in the Nix namespace. Similarly, I regret putting Nix in NixStringContext, which was a silly mistake on my part.

@roberth
Copy link
Member

roberth commented Apr 19, 2024

Color me α-indifferent.
I'll take what the PR brings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Quick win for first-time contributors windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants