This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-swift.git


The following commit(s) were added to refs/heads/main by this push:
     new b050528  fix: use exact version for FlatBuffers dependency (#143)
b050528 is described below

commit b050528ce8a0c8a9abbfdff9a83832638dabfbf7
Author: Demetrius Albuquerque <[email protected]>
AuthorDate: Thu Mar 12 08:44:27 2026 +0100

    fix: use exact version for FlatBuffers dependency (#143)
    
    ### What changes are included in this PR?
    
    This PR updates the `google/flatbuffers` dependency in `Package.swift`
    to use the `exact` version requirement (`exact: "25.2.10"`) instead of
    the previous `from:` requirement.
    
    ### Why are these changes necessary?
    
    The `from:` parameter allows the Swift Package Manager to automatically
    resolve and fetch newer minor versions. However, FlatBuffers has a known
    history of introducing breaking API changes between minor updates.
    Allowing floating versions can silently break the `*_generated.swift`
    files and disrupt the build process for anyone depending on this
    package.
    
    Pinning the dependency to an exact version acts as a strict contract,
    ensuring build stability, predictable code generation, and preventing
    upstream surprises.
    
    ### Related Issues
    
    Closes #114
---
 Package.swift | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Package.swift b/Package.swift
index d1447e0..8ccb88a 100644
--- a/Package.swift
+++ b/Package.swift
@@ -31,7 +31,7 @@ let package = Package(
             targets: ["Arrow"])
     ],
     dependencies: [
-        .package(url: "https://github.com/google/flatbuffers.git";, from: 
"25.2.10"),
+        .package(url: "https://github.com/google/flatbuffers.git";, exact: 
"25.2.10"),
         .package(url: "https://github.com/grpc/grpc-swift.git";, from: 
"1.25.0"),
         .package(url: "https://github.com/apple/swift-protobuf.git";, from: 
"1.29.0"),
         .package(url: "https://github.com/apple/swift-atomics.git";, from: 
"1.3.0")

Reply via email to