Skip to content

fix: windows build#1074

Merged
levkk merged 6 commits into
pgdogdev:mainfrom
imor:rs/fix-windows-build
Jun 14, 2026
Merged

fix: windows build#1074
levkk merged 6 commits into
pgdogdev:mainfrom
imor:rs/fix-windows-build

Conversation

@imor

@imor imor commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Latest code did not build on windows.

@codecov

codecov Bot commented Jun 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread pgdog/src/net/tweaks.rs
#[cfg(target_os = "linux")]
if let Some(retries) = config.retries() {
params = params.with_retries(retries);
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

with_retries is not available on Windows.

// Test cases in this file are run only on unix because of missing sighup
// support on Windows.
#![cfg(unix)]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Tests in this file rely on using the sighup signal on unix OSes to reload the config. Since sighup is not available on windows, this test is skipped on windows.

@imor imor marked this pull request as ready for review June 13, 2026 18:14

@levkk levkk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you!

@levkk levkk merged commit 2e42cac into pgdogdev:main Jun 14, 2026
24 checks passed
@imor imor deleted the rs/fix-windows-build branch June 14, 2026 04:26
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