Skip to content

fix: xdg crate not supporting windows#159

Merged
cococonscious merged 4 commits intomainfrom
fix/windows-builds
Nov 30, 2025
Merged

fix: xdg crate not supporting windows#159
cococonscious merged 4 commits intomainfrom
fix/windows-builds

Conversation

@cococonscious
Copy link
Owner

@cococonscious cococonscious commented Nov 30, 2025

Fixes the failing Windows builds when releasing

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a cross-platform compatibility issue where the xdg crate (which is Unix-specific) was being unconditionally imported and used, causing compilation failures on Windows. The fix adds conditional compilation attributes to restrict the xdg import and usage to Unix and Redox systems only, and updates the documentation to clarify platform-specific configuration paths.

  • Adds conditional compilation directives to restrict xdg::BaseDirectories to Unix/Redox platforms
  • Updates README to document Windows-specific configuration path (%USERPROFILE%\AppData\Roaming\koji\config.toml)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/lib/config.rs Adds #[cfg(any(unix, target_os = "redox"))] attributes to conditionally compile xdg imports and usage
README.md Documents platform-specific configuration file paths for Unix/Redox vs Windows

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Nov 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/lib/config.rs 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cococonscious cococonscious merged commit 22a7f4d into main Nov 30, 2025
4 checks passed
@cococonscious cococonscious deleted the fix/windows-builds branch November 30, 2025 15:55
@github-actions github-actions bot mentioned this pull request Nov 30, 2025
cococonscious pushed a commit that referenced this pull request Nov 30, 2025
## 🤖 New release

* `koji`: 3.3.0 -> 3.3.1 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[3.3.1](v3.3.0...v3.3.1) -
2025-11-30

### Fixed

- xdg crate not supporting windows
([#159](#159))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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