Skip to content

Commit 3cfd54c

Browse files
authored
Disable automatic resolution for builds. (#526)
- Improves build reproducibility by using only the pinned dependencies in Package.resolved. - Closes #299.
1 parent 39aeac3 commit 3cfd54c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Build configuration variables
1616
BUILD_CONFIGURATION ?= debug
1717
WARNINGS_AS_ERRORS ?= true
18-
SWIFT_CONFIGURATION := $(if $(filter-out false,$(WARNINGS_AS_ERRORS)),-Xswiftc -warnings-as-errors)
18+
SWIFT_CONFIGURATION := $(if $(filter-out false,$(WARNINGS_AS_ERRORS)),-Xswiftc -warnings-as-errors) --disable-automatic-resolution
1919

2020
# Commonly used locations
2121
SWIFT := "/usr/bin/swift"

vminitd/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
BUILD_CONFIGURATION ?= debug
1616
WARNINGS_AS_ERRORS ?= true
1717
SWIFT_WARNING_CONFIG := $(if $(filter-out false,$(WARNINGS_AS_ERRORS)),-Xswiftc -warnings-as-errors)
18-
SWIFT_CONFIGURATION := --swift-sdk aarch64-swift-linux-musl $(SWIFT_WARNING_CONFIG) -Xlinker -s
18+
SWIFT_CONFIGURATION := --swift-sdk aarch64-swift-linux-musl $(SWIFT_WARNING_CONFIG) -Xlinker -s --disable-automatic-resolution
1919

2020
SWIFT_VERSION := 6.2.3
2121
SWIFT_SDK_URL := https://download.swift.org/swift-6.2.3-release/static-sdk/swift-6.2.3-RELEASE/swift-6.2.3-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz

0 commit comments

Comments
 (0)