-
Notifications
You must be signed in to change notification settings - Fork 27
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
Differentiate IP Crate for Windows and Nix #273
Conversation
Codecov Report
@@ Coverage Diff @@
## main #273 +/- ##
==========================================
+ Coverage 74.16% 74.26% +0.10%
==========================================
Files 89 89
Lines 5795 5818 +23
==========================================
+ Hits 4298 4321 +23
Misses 1411 1411
Partials 86 86
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thought and you'll have to make a similar change in imix to support BSD otherwise looks great 🙌
@@ -55,6 +66,27 @@ fn create_dict_from_interface(starlark_heap: &Heap, interface: NetInterface) -> | |||
Ok(tmp_res) | |||
} | |||
|
|||
#[cfg(not(target_os = "windows"))] | |||
fn create_dict_from_interface(starlark_heap: &Heap, interface: NetworkInterface) -> Result<Dict>{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm could we Abstract this type out or just move the function to take the three params. Don't love having two separate dictionary functions.
* Differentiate for Windows and Nix * Conditional Deps * Fix Cargo order
* Differentiate for Windows and Nix * Conditional Deps * Fix Cargo order
* Differentiate for Windows and Nix * Conditional Deps * Fix Cargo order
What type of PR is this?
Add one of the following kinds:
/kind cleanup
/kind api-change
/kind eldritch-function
What this PR does / why we need it:
Limits use of the
network_interface
crate to windows only. Allows realm to be FreeBSD compatible.Which issue(s) this PR fixes:
N/A