Skip to content
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

swift build: Even changing options which do not affect the build artifacts triggers a rebuild #8253

Open
1 task done
puni073 opened this issue Jan 28, 2025 · 0 comments
Open
1 task done
Labels

Comments

@puni073
Copy link

puni073 commented Jan 28, 2025

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

Changing options which do not affect the build artifacts, such as -v, -j and -no-color-diagnostics triggers a rebuild.

Expected behavior

Changing options which do not affect the build artifacts does not trigger a rebuild.

Actual behavior

Changing options which do not affect the build artifacts triggers a rebuild.

Steps to reproduce

swift package init --name Main --type executable
swift build
swift build -v
swift build -j 1
swift build > build.log (This implies removing -color-diagnostics option)

Swift Package Manager version/commit hash

Swift Package Manager - Swift 6.0.3

Swift & OS version (output of swift --version ; uname -a)

swift --version

Swift version 6.0.3 (swift-6.0.3-RELEASE)
Target: x86_64-unknown-linux-gnu

cat /etc/lsb-release

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
@puni073 puni073 added the bug label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant