Skip to content

Release 1.0.1: keep warnings-as-errors out of the manifest - #10

Merged
filipbodor merged 2 commits into
mainfrom
filipbodor/warnings-in-make
Nov 1, 2026
Merged

filipbodor merged 2 commits into
mainfrom
filipbodor/warnings-in-make

Conversation

@filipbodor

Copy link
Copy Markdown
Member

Xcode builds a remote package with -suppress-warnings. With .treatAllWarnings(as: .error) in Package.swift it refuses both flags ("conflicting options '-warnings-as-errors' and '-suppress-warnings'"), so an app could not depend on PassportKit through Xcode 26.4. The flag now lives in the make build / make test targets, so this repository's own builds and CI keep treating warnings as errors; docs/spec.md §2 and the changelog say so.

make check passes, and a deliberately introduced warning still fails make build.

Xcode builds a remote package with -suppress-warnings. Combined with
.treatAllWarnings(as: .error) from Package.swift it refuses to build
("conflicting options '-warnings-as-errors' and
'-suppress-warnings'"), so an app could not depend on PassportKit
through Xcode 26.4. The make targets pass the flag instead, which
keeps warnings as errors for this repository's own builds and CI.
@filipbodor
filipbodor requested a review from a team as a code owner November 1, 2026 21:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T21:16:31.509508Z 49d0d6d PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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: 49d0d6d1ad

ℹ️ 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 thread Makefile
Comment on lines +22 to +25
swift build --build-tests $(WARNINGS_AS_ERRORS)

test:
swift test --parallel
swift test --parallel $(WARNINGS_AS_ERRORS)

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 Keep iOS test warnings fatal

When a warning occurs only in iOS-specific code, the added flags do not catch it: the iOS job in .github/workflows/ci.yml runs make test-ios, which delegates to scripts/test-ios.sh, and its xcodebuild test invocation supplies no warnings-as-errors setting. Removing the manifest setting therefore makes such warnings non-fatal even though they were fatal before this change; pass the equivalent setting through the local iOS test build as well.

Useful? React with 👍 / 👎.

@filipbodor
filipbodor merged commit 8b8127c into main Nov 1, 2026
6 checks passed
@filipbodor
filipbodor deleted the filipbodor/warnings-in-make branch November 1, 2026 21:28
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.

1 participant