Skip to content

Update Swift Package Configuration#327

Merged
vsanthanam merged 1 commit intomainfrom
vsanthanam/package-setting
Mar 23, 2026
Merged

Update Swift Package Configuration#327
vsanthanam merged 1 commit intomainfrom
vsanthanam/package-setting

Conversation

@vsanthanam
Copy link
Copy Markdown
Owner

@vsanthanam vsanthanam commented Mar 23, 2026

Remove treat warnings as errors from Swift package manifest, as this can cause integration issues for some SPM consumers in certain environments. The flag is still enabled in Xcode, and still use to validate CI builds.

@vsanthanam vsanthanam linked an issue Mar 23, 2026 that may be closed by this pull request
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6a4f47b8b4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 95 to +98
swiftSettings: [
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("MemberImportVisibility"),
.treatAllWarnings(as: .error)
.enableUpcomingFeature("MemberImportVisibility")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve warnings-as-errors in SwiftPM CI builds

Removing .treatAllWarnings(as: .error) from the manifest drops this check for every workflow that builds via SwiftPM instead of Xcode. In this repo, the macOS/Linux/Windows/WASM jobs all call swift build directly (.github/workflows/ci.yml:245, 317, 382, 482), and CodeQL does the same in .github/workflows/codeql.yml:95-99, so the Xcode project setting no longer protects those environments. If a warning shows up only in one of those builds, CI will now pass silently and we lose the warning-free guard on shipped package configurations.

Useful? React with 👍 / 👎.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.83%. Comparing base (b1c1662) to head (6a4f47b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #327   +/-   ##
=======================================
  Coverage   95.83%   95.83%           
=======================================
  Files          40       40           
  Lines        3434     3434           
=======================================
  Hits         3291     3291           
  Misses        143      143           
Flag Coverage Δ
llvm-cov 95.83% <ø> (ø)
swiftpm 95.83% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vsanthanam vsanthanam merged commit 0e8ddd2 into main Mar 23, 2026
47 checks passed
@vsanthanam vsanthanam deleted the vsanthanam/package-setting branch March 23, 2026 15:53
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.

Warnings as Errors from SPM can make integration tricky

1 participant